SlideShare uma empresa Scribd logo
1 de 53
Baixar para ler offline
Nader Khaled
Solution Developer at Link Development - GDG Alexandria Organizer
Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
Building Conversational
Experiences
Action
{ conversation api request }
{ conversation api response }
user input
Action response
Ready to
help across
500M+ devices
Devices with the Google
Assistant built-in
These include voice
activated speakers like
Google Home, Android
phones, iPhones etc.
The Google Assistant
A conversation between
you and Google that helps
you get things done in
your world.
Actions on Google
How developers can
extend the assistant
A growing audience:
devices
JapaneseGerman
FR French
CA French
KoreanUK English
AU English
CA English
US English
Italian
Spanish BR Portuguese
LATAM Spanish
Hindi & IN English
A growing audience:
languages
Swedish
Danish
Norwegian Indonesian
Russian
Thai
Dutch
Hey Google, talk
to __________.
Hey Google, connect
me with __________.
Hey Google,
get __________.
Ok Google, talk
to Personal Chef
Sure, here’s
Personal Chef
What are you
in the mood
for?
What protein
would you like
to use?
Speech to Text
NLP
Knowledge Graph
ML Ranking
User Profile
Text to Speech
Speech to Text
Text to Speech
...
Invoke Personal
Chef action
Parse query and
generate
response
Well, it’s kind of
cold outside, so
I’d like...
Well, it’s kind of cold outside, so I'd like
something to warm me up, like a hot
soup, and I want it fast.
“
Intent Matching — Match and categorize user
utterances to an intent.
Entity Extraction — Identify key words and
phrases spoken by the user.@
Ok Google, talk
to Personal
Chef
Sure, here’s
Personal Chef
What are you
in the mood
for?
What protein
would you like
to use?
Speech to Text
NLP
Knowledge Graph
ML Ranking
User Profile
Speech to Text
Text to Speech
...
...
...
Trigger
WELCOME event
...
NLP:
Intent Matching
Entity Extraction
Well, it’s kind of
cold outside, so
I’d like...
Entities:
homemade
cannoli
“Find me a recipe
for homemade
cannoli”
User Says
Response Webhook
“Find me a recipe
for homemade
cannoli”
“Here’s the best
one I can find”
A Magical Experience
g.co/dev/ActionsDesign
AUDIO_OUTPUT SCREEN_OUTPUT
Support different surface capabilities
developers.google.com/actions/assistant/surface-capabilities
Support speech and display text
developers.google.com/actions/assistant/responses
conv.ask(new SimpleRespone({
speech: 'Howdy! I can tell you fun facts about ' +
'almost any number, like 42. What do you have in mind?',
text: 'Howdy! I can tell you fun facts about ' +
'almost any number. What do you have in mind?'
}));
Display basic cards
developers.google.com/actions/assistant/responses
conv.ask('Math and prime numbers it is!')
conv.ask(new BasicCard({
text: '42 is an even composite number. It is composed of three distinct prime ' +
'numbers multiplied together. It has a total of eight divisors. 42 is an ' +
'abundant number, because the sum of its proper divisors 54 is greater ' +
'than itself. To count from 1 to 42 would take you about twenty-one…',
title: 'Math & prime numbers',
buttons: new Button({
title: 'Read more',
url: 'https://example.com',
}),
image: new Image({
url: 'https://example.google.com/42.png',
alt: 'Image alternate text',
}),
}));
Account Linking
https://developers.google.com/actions/identity/
Multi platform
Google Sign In + OAuth linking
Assistant only
Google Sign In only
Google Sign In for Assistant configurable in two modes
More ways to connect!
Sample Actions
developers.google.com/actions/samples/actions
Smart Home Device Integration
developers.google.com/actions/smarthome/
Dim the lights in the living
room a little bit.
What lights are on in the
living room?
Make it warmer.
Turn off all the lights.
What is the temperature
inside?
How many lights are on?
Reach Users
Ok Google, ask Personal Chef for a hot soup recipe
Trigger Phrase Action Name
Developer Specified
Action
Preposition
Action Phrase
Developer Specified
Working Examples: Let’s speak to Domino’s
Ask Dr. Doggy if dogs can eat chocolate
Ok Google, let’s talk to Personal Chef
Trigger Phrase Action Name
Developer Specified
In Dialogue Discovery: Explicit Triggering
In Dialogue Discovery: Implicit Triggering
Hey Google, I
want to work out.
Hey Google, I want
to play a game.
Hey Google, what’s
the surf report?
Hey Google, tell
me a joke.
Conversational Design Intro
GUI : VUI
What’s the difference?
Top 3 Design Tips
[1] Create a Persona
A Persona is conveyed through:
• Tone
• Word and phrase choices
• Functional design
• Style
• Technique
• Voice
And it is based on:
• Your user population
• Their needs
• The imagery &
qualities associated
with your brand
Cowabunga, dude!
What flavors do you crave?
The bus is approaching your stop now.
Your trip will take 45 minutes.
Buy a pizza
Getting there soon
Purchase a ticket
Arriving soon
Look at your order Review your schedule
[2] Think outside the box.
Literally!
code code code code code
code code code code
code code “ dialog string” code
code code code
code code code code code
code “dialog string” code code
code code code code code code code
code code code
code code
code
code code
code
code
code code code
code “dialog string” code code code
code code
code code code
code code code code code code code code
code code code code code code code code
code
STRUCTURE CODE
code code code code code
code code code code
code code “ dialog string” code
code code code
code code code code code
code “dialog string” code code
code code code code code code code
code code code
code code
code
code code
code
code
code code code
code “dialog string” code code code
code code
code code code
code code code code code code code code
code code code code code code code code
code
STRUCTURE CODE
DIALOG STRUCTURE
[3] In a conversation,
there are no “errors”
real life
user
conditions {
Give users credit
They know how to talk
Avoid force feeding commands.
(such as “to reply to a message,
say ‘reply’” or “to hear that
again, say ‘repeat’”.)
People hardly ever say
nonsense. They just weren’t
parsed correctly. There was a
misalignment in meaning.
They know what they want
There’s no such thing as a query with
no intent. The user wanted to do
something, even if they didn’t say so.
They want to help
Don’t create dead ends when
something doesn’t work.
If you ask for them to say
something again, they will, but
rarely exactly the same way.
Honor that they’re invested in
outcome of a repair attempt.
Use the context
Environmental
Where is the user?
What are they doing?
What type of device
are they using?
Situational
What’s their intent?
Where is the user’s
frame of mind?
Temporal
What happened right before?
What’s happening next?
How is the experience
influenced over time?
Behavioral
What do users know
going in?
What data can you use to
enrich the experience
predictively or to cut out
unnecessary steps?
Codelab: Build Actions (Level 1)
codelabs.developers.google.com → Assistant
Create either a specific project ID or share
your individual project ID via Google Forms to
have your Action recognized as part of the event
series:
1. Share your Project ID via
bit.ly/buildactions-projects
OR
1. Go to the console:
bit.ly/buildactions-console
2. Start a new project beginning with BAFYC
followed by the planned Action name
Start creating your Action - get recognized
Console
bit.ly/buildactions-console
Build with Templates
developers.google.com/actions/templates
Build with Dialogflow
developers.google.com/actions/dialogflow
Build with Actions SDK
developers.google.com/actions/sdk
Resources to get started and support
Documentation
developers.google.com/actions
Codelabs
codelabs.developers.google.com
Write and Deploy Functions
bit.ly/firebase-get-started
Deploy your fulfillment webhook using
Cloud Functions for Firebase
bit.ly/aog-cloud-functions
Wait… there’s more
1. Check out the recording of one webinar with the Assistant team for all
bit.ly/buildactions-webinarvideo
2. Your Actions listed on the Google Assistant event series page:
developers.google.com/events/buildactions
3. Be part of the Actions on Google Community with publishing you Action
developers.google.com/actions/community (and get a shirt + cloud credits for a year)
Actions on Google Community Program
developers.google.com/actions/community
You are automatically invited to the program with publishing
your first Action and will receive a
Cool T Shirt + $200 Cloud Credits per month for a year
The Assistant team also recognizes milestones:
Traction Engagements Globalization
Have a great evening!
#GoogleAssistant #ActionsOnGoogle #AOGDevs #DialogFlow

Mais conteúdo relacionado

Semelhante a Building Conversational Experiences for Google Assistant

Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017Ido Green
 
Building your actions for Google Assistant
Building your actions for Google AssistantBuilding your actions for Google Assistant
Building your actions for Google AssistantAhmed Abu Eldahab
 
Get on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdfGet on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdfSumirVats
 
Customer Development Power-Ups
Customer Development Power-UpsCustomer Development Power-Ups
Customer Development Power-UpsLean Startup Co.
 
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)Synerzip
 
resolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bddresolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bddRodrigo Urubatan
 
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali Smit Jethwa
 
Info Session GDSC USICT
Info Session GDSC USICTInfo Session GDSC USICT
Info Session GDSC USICTDSCUSICT
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsocdhoss
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Francisco S. Barralaga
 
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In SoftwareLuke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In SoftwareEnthiosys Inc
 
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...HostedbyConfluent
 
What's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots PartnershipWhat's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots PartnershipOgilvy Consulting
 
Digital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice SearchDigital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice SearchClark Boyd
 
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDDRubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDDRodrigo Urubatan
 
Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"Christian Heilmann
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdfKINGSHUKGHOSH20
 

Semelhante a Building Conversational Experiences for Google Assistant (20)

Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017Actions On Google - GDD Europe 2017
Actions On Google - GDD Europe 2017
 
Building your actions for Google Assistant
Building your actions for Google AssistantBuilding your actions for Google Assistant
Building your actions for Google Assistant
 
Action on Google
Action on GoogleAction on Google
Action on Google
 
Get on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdfGet on-board with gdsc(amu+zhcet).pdf
Get on-board with gdsc(amu+zhcet).pdf
 
Customer Development Power-Ups
Customer Development Power-UpsCustomer Development Power-Ups
Customer Development Power-Ups
 
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
 
resolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bddresolvendo problemas de comunicação em equipes distribuídas com bdd
resolvendo problemas de comunicação em equipes distribuídas com bdd
 
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
Hey hubballi! - Talk on "Actions on Google" #DevFestHubali
 
Info Session GDSC USICT
Info Session GDSC USICTInfo Session GDSC USICT
Info Session GDSC USICT
 
Orientation session
Orientation sessionOrientation session
Orientation session
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsoc
 
Google+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdfGoogle+Bard+-+Slide+deck1.pdf
Google+Bard+-+Slide+deck1.pdf
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
 
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In SoftwareLuke Hohmann's Software Guru 2009 Keynote: Innovation In Software
Luke Hohmann's Software Guru 2009 Keynote: Innovation In Software
 
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
You Put *What* in Your Stream?! Patterns and Practices for Event Design with ...
 
What's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots PartnershipWhat's Next: Ogilvy x Google Chatbots Partnership
What's Next: Ogilvy x Google Chatbots Partnership
 
Digital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice SearchDigital Assistants: Creating Consumer Connections through Voice Search
Digital Assistants: Creating Consumer Connections through Voice Search
 
Rubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDDRubyconf2016 - Solving communication problems in distributed teams with BDD
Rubyconf2016 - Solving communication problems in distributed teams with BDD
 
Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"Sacrificing the golden calf of "coding"
Sacrificing the golden calf of "coding"
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdf
 

Último

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Último (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Building Conversational Experiences for Google Assistant

  • 1. Nader Khaled Solution Developer at Link Development - GDG Alexandria Organizer Twitter : @naderkhaled92 | Email : nadermousa92@gmail.com
  • 2.
  • 3.
  • 5. Action { conversation api request } { conversation api response } user input Action response
  • 7. Devices with the Google Assistant built-in These include voice activated speakers like Google Home, Android phones, iPhones etc. The Google Assistant A conversation between you and Google that helps you get things done in your world. Actions on Google How developers can extend the assistant
  • 9. JapaneseGerman FR French CA French KoreanUK English AU English CA English US English Italian Spanish BR Portuguese LATAM Spanish Hindi & IN English A growing audience: languages Swedish Danish Norwegian Indonesian Russian Thai Dutch
  • 10. Hey Google, talk to __________. Hey Google, connect me with __________. Hey Google, get __________.
  • 11.
  • 12. Ok Google, talk to Personal Chef Sure, here’s Personal Chef What are you in the mood for? What protein would you like to use? Speech to Text NLP Knowledge Graph ML Ranking User Profile Text to Speech Speech to Text Text to Speech ... Invoke Personal Chef action Parse query and generate response Well, it’s kind of cold outside, so I’d like...
  • 13. Well, it’s kind of cold outside, so I'd like something to warm me up, like a hot soup, and I want it fast.
  • 14. “ Intent Matching — Match and categorize user utterances to an intent. Entity Extraction — Identify key words and phrases spoken by the user.@
  • 15.
  • 16. Ok Google, talk to Personal Chef Sure, here’s Personal Chef What are you in the mood for? What protein would you like to use? Speech to Text NLP Knowledge Graph ML Ranking User Profile Speech to Text Text to Speech ... ... ... Trigger WELCOME event ... NLP: Intent Matching Entity Extraction Well, it’s kind of cold outside, so I’d like...
  • 17. Entities: homemade cannoli “Find me a recipe for homemade cannoli” User Says Response Webhook “Find me a recipe for homemade cannoli” “Here’s the best one I can find”
  • 20. AUDIO_OUTPUT SCREEN_OUTPUT Support different surface capabilities developers.google.com/actions/assistant/surface-capabilities
  • 21. Support speech and display text developers.google.com/actions/assistant/responses conv.ask(new SimpleRespone({ speech: 'Howdy! I can tell you fun facts about ' + 'almost any number, like 42. What do you have in mind?', text: 'Howdy! I can tell you fun facts about ' + 'almost any number. What do you have in mind?' }));
  • 22. Display basic cards developers.google.com/actions/assistant/responses conv.ask('Math and prime numbers it is!') conv.ask(new BasicCard({ text: '42 is an even composite number. It is composed of three distinct prime ' + 'numbers multiplied together. It has a total of eight divisors. 42 is an ' + 'abundant number, because the sum of its proper divisors 54 is greater ' + 'than itself. To count from 1 to 42 would take you about twenty-one…', title: 'Math & prime numbers', buttons: new Button({ title: 'Read more', url: 'https://example.com', }), image: new Image({ url: 'https://example.google.com/42.png', alt: 'Image alternate text', }), }));
  • 23. Account Linking https://developers.google.com/actions/identity/ Multi platform Google Sign In + OAuth linking Assistant only Google Sign In only Google Sign In for Assistant configurable in two modes
  • 24. More ways to connect!
  • 26. Smart Home Device Integration developers.google.com/actions/smarthome/ Dim the lights in the living room a little bit. What lights are on in the living room? Make it warmer. Turn off all the lights. What is the temperature inside? How many lights are on?
  • 28. Ok Google, ask Personal Chef for a hot soup recipe Trigger Phrase Action Name Developer Specified Action Preposition Action Phrase Developer Specified Working Examples: Let’s speak to Domino’s Ask Dr. Doggy if dogs can eat chocolate Ok Google, let’s talk to Personal Chef Trigger Phrase Action Name Developer Specified In Dialogue Discovery: Explicit Triggering
  • 29. In Dialogue Discovery: Implicit Triggering Hey Google, I want to work out. Hey Google, I want to play a game. Hey Google, what’s the surf report? Hey Google, tell me a joke.
  • 31.
  • 32. GUI : VUI What’s the difference?
  • 33. Top 3 Design Tips
  • 34. [1] Create a Persona
  • 35. A Persona is conveyed through: • Tone • Word and phrase choices • Functional design • Style • Technique • Voice And it is based on: • Your user population • Their needs • The imagery & qualities associated with your brand
  • 36.
  • 37. Cowabunga, dude! What flavors do you crave? The bus is approaching your stop now. Your trip will take 45 minutes.
  • 38. Buy a pizza Getting there soon Purchase a ticket Arriving soon Look at your order Review your schedule
  • 39. [2] Think outside the box. Literally!
  • 40. code code code code code code code code code code code “ dialog string” code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code code code STRUCTURE CODE
  • 41. code code code code code code code code code code code “ dialog string” code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code “dialog string” code code code code code code code code code code code code code code code code code code code code code code code code code STRUCTURE CODE
  • 43. [3] In a conversation, there are no “errors”
  • 45. Give users credit They know how to talk Avoid force feeding commands. (such as “to reply to a message, say ‘reply’” or “to hear that again, say ‘repeat’”.) People hardly ever say nonsense. They just weren’t parsed correctly. There was a misalignment in meaning. They know what they want There’s no such thing as a query with no intent. The user wanted to do something, even if they didn’t say so. They want to help Don’t create dead ends when something doesn’t work. If you ask for them to say something again, they will, but rarely exactly the same way. Honor that they’re invested in outcome of a repair attempt.
  • 46. Use the context Environmental Where is the user? What are they doing? What type of device are they using? Situational What’s their intent? Where is the user’s frame of mind? Temporal What happened right before? What’s happening next? How is the experience influenced over time? Behavioral What do users know going in? What data can you use to enrich the experience predictively or to cut out unnecessary steps?
  • 49. Create either a specific project ID or share your individual project ID via Google Forms to have your Action recognized as part of the event series: 1. Share your Project ID via bit.ly/buildactions-projects OR 1. Go to the console: bit.ly/buildactions-console 2. Start a new project beginning with BAFYC followed by the planned Action name Start creating your Action - get recognized
  • 50. Console bit.ly/buildactions-console Build with Templates developers.google.com/actions/templates Build with Dialogflow developers.google.com/actions/dialogflow Build with Actions SDK developers.google.com/actions/sdk Resources to get started and support Documentation developers.google.com/actions Codelabs codelabs.developers.google.com Write and Deploy Functions bit.ly/firebase-get-started Deploy your fulfillment webhook using Cloud Functions for Firebase bit.ly/aog-cloud-functions
  • 51. Wait… there’s more 1. Check out the recording of one webinar with the Assistant team for all bit.ly/buildactions-webinarvideo 2. Your Actions listed on the Google Assistant event series page: developers.google.com/events/buildactions 3. Be part of the Actions on Google Community with publishing you Action developers.google.com/actions/community (and get a shirt + cloud credits for a year)
  • 52. Actions on Google Community Program developers.google.com/actions/community You are automatically invited to the program with publishing your first Action and will receive a Cool T Shirt + $200 Cloud Credits per month for a year The Assistant team also recognizes milestones: Traction Engagements Globalization
  • 53. Have a great evening! #GoogleAssistant #ActionsOnGoogle #AOGDevs #DialogFlow