SlideShare a Scribd company logo
Building High-Quality Apps for
Google Assistant
Peter Friese

Developer Advocate, Google

@peterfriese
Building High-Quality Apps for Google Assistant
Hello and welcome to this
session on "Building high
quality apps for the Google
Assistant"!
Building High-Quality Apps for Google Assistant
Hello and welcome to this
session on "Building high
quality apps for the Google
Assistant"!
I am the Google Assistant, and I could not be more
excited to be here with you today to tell you
everything about Actions on Google and Dialogflow.
Building High-Quality Apps for Google Assistant
I am the Google Assistant, and I could not be more
excited to be here with you today to tell you
everything about Actions on Google and Dialogflow.
But first, let me introduce my assistant: Peter
Friese!
Peter, why don't you introduce yourself?
Building High-Quality Apps for Google Assistant
But first, let me introduce my assistant: Peter
Friese!
Let’s give him a warm round of applause!
Peter, why don't you introduce yourself?
Building High-Quality Apps for Google Assistant
…
Peter, why don't you introduce yourself?
Building High-Quality Apps for Google Assistant
…
Ich spreche viele verschiedene Sprachen!
Meet the Assistant
Ask it questions. Tell it to do things. It’s your own
personal Google, always ready to help
Ready to 

help across 

400M+ devices
Built on cutting edge Google tech
Payments
Location & Context awareness
Knowledge Graph
Identity
Structured Data Markup
Natural Language Understanding
Machine Learning
Individual speech recognition
Voice Typing Tap Google Lens
A growing
audience:

Devices
A growing
audience:

Languages
JapaneseGerman
FR French CA French
Korean
UK English AU English CA English
US English
Italian Spanish BR Portuguese
LATAM Spanish IN English
Russian
Hindi Thai
Indonesian
Danish
Norwegian
Swedish Dutch
UI options
enable new
use cases
Building for the Google Assistant
Building an app in less than 5 minutes
Demo!
How does it work?
Step 1: Create a new project
Step 1: Create a new project
Step 1: Create a new project
Step 2: Define Intents
Step 2: Define Intents
Step 2: Define Intents
Step 2: Define Intents
Step 3: Test in simulator
Step 3: Test in Dialogflow simulator
Step 4: Set up Actions on Google Integration
Step 4: Set up Actions on Google Integration
Step 5: Test in Actions on Google Simulator
Step 5: Test on Device
Demo!
• New Intent: “I am hungry”

• Return predefined answers

• Add Entities for kinds of food
Demo!
Antipatterns
Building High-Quality Apps for Google Assistant
How can we avoid antipatterns?
^

KEEP

CALM

AND

READ THE

FANTASTIC

MANUAL
Design Resources: g.co/dev/ActionsDesign
Focus on the user and all
else will follow.
Ten Things

https://www.google.com/about/philosophy.html
Think outside the box
✘ ✔
Think outside the box … literally
Best Practices
Best Practices
for Google
Assistant
apps
Must-do
Recommended
Additional
• Invocation Name

• Greeting / Exit

• Error Handling

• Repeating

• The open mic issue
Best Practices - Must Do
Invocation Name
OK Google, talk to …
OK Google, speak to …
OK Google, ask … to …
Explicit triggers
OK Google, order a … Implicit triggers
Invocation Name - Explicit triggers
Invocation name
At least two words
Invocation Name - Implicit triggers
Choose intents
Greetings - Don’t be a bore!
Hello, and welcome to …
Hello! This is … ! Glad to see you.
Welcome to …
These will be
cycled
Greetings - Return Visitors
Hello, and welcome to Do It Already. I can tell you about your
due tasks or add a new task to the list. What would you like to
do?
Welcome back to Do It Already! You’ve got three due tasks
today. Here is the first one:

“Deliver a kick-ass talk at MobileTechCon.”

Now get cracking!
Greetings - Return Visitors
function welcome(app: DialogflowApp) {
if (app.getLastSeen()) {
app.ask("Welcome back to Do It Already!")
}
else {
app.ask(strings.welcome())
}
}
Exit / Farewell
Goodbye!
Goodbye, come back soon!
actions_intent_CANCEL
Error Handling
What’s the priority for this task?
…
⚡ No input
What’s the priority for this task?
Gobbledygook
⚡ No match
Error Handling
What’s the priority for this task?
…
What’s the priority for this task?
Gobbledygook
• Always be helpful

• Try to get the conversation
back on track

• Be progressively more
helpful and provide more
detail / hints

• Give up after 3 attempts
Error Handling - Strategies
Rapid reprompt • “What was that?”

• “Say that again?”
Reframe the question • “What time is this for” —> “Sorry, what time?”

• “For when?” —> “What time would you like to
book this for?
Ask another way • “If it helps, we can do this one piece at a time.”
Be ready for questions
about the question
• “I have your name and email from your account,
so now all I need is your phone number.”
Be proactive • I could put you down for 6 for now, does that
work?

• Do you want to finish this later?
Replay information at the user’s request
It seems like the flight to San
Francisco is the 7:05am flight via
London Heathrow. Would you like
to book it now?
Sorry, can you say that again?
Replay information
It seems like the flight to San
Francisco is the 7:05am flight via
London Heathrow. Would you like
to book it now?
Sorry, can you say that again?
• Keep track of the last
messages the app sent

• Implement a repeat intent

• Prefix the last message
with a randomised repeat
string
Replay information
const REPEAT_PREFIX: [
“Sorry, I said “,
“Let me repeat that.”
];
function repeat (app) {
let repeatPrefix = promptFetch.getRepeatPrefix();
app.ask(repeatPrefix + app.data.lastPrompt,
app.data.lastNoInputPrompts);
}
The open microphone issue
The open microphone issue
function areWeThereYet(app) {
const response = “We will arrive very soon. Promised.”

app.ask(response);
}
function quit(app) {
const response = “It has been nice talking with you.”

app.tell(response);
}
Microphone closed
Microphone open No prompt 😱
The open microphone issue
app.ask();
app.tell();
The conversation will go on, and your
message needs to end with a prompt
The conversation will end after
this turn. Don’t include a prompt.
• Support multiple languages

• Use Rich Responses
Best practices - Recommended
Support multiple languages
Use Rich Responses
Speech bubble
Use Rich Responses
Suggestion chips
Use Rich Responses
Basic cards
Use Rich Responses
Carousel
Use Rich Responses
List
• Use follow-up intents

• Check out the sample agents
Dialogflow-specific
Title TextDo not misuse Entities
✘
✘
Title TextUse Follow-up Intents instead
✔
Title TextRe-use ready solutions
Key take-aways
Google Assistant is more
than just smart speakers
Building Assistant Actions is
really easy with Dialogflow
Close the mic, Dude!
Read the docs and follow
our guidelines
Thank you!
Peter Friese

Developer Advocate, Google

@peterfriese
How to stay in touch
dialogflow.com/
github.com/dialogflow
tag: dialogflow
Actions on Google actions.google.com
github.com/actions-on-google
tag: actions-on-google
Peter Friese

Developer Advocate, Google

@peterfriese
The End.

More Related Content

Similar to Building High-Quality Apps for Google Assistant (20)

PDF
Final getting started with google actions
AjaySingh1938
 
PDF
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Marius Florian Mailat
 
PPTX
How to Build a Dialogflow App by using Actions on Google.
Yuting Liu
 
PPTX
Building google home applications tutorial
Alex Austin
 
PDF
DrupalCon Austin: UX Bootcamp workshop
Perfetti Media
 
PDF
UX 101: User Research methods to kickstart your project
Charlotte Breton Schreiner
 
PDF
How To Pitch Your Startup
Anthony Frasier
 
PDF
E4IT STARTER - MODULE 15.pdf
Anna Gandrabura
 
PDF
Mobile App Feature Configuration and A/B Experiments
lacyrhoades
 
PDF
E4IT STARTER - MODULE 14.pdf
Anna Gandrabura
 
PDF
Module_4 English For IT Starter.pdf.pdf
Anna Gandrabura
 
PDF
Build an Application from Idea to Release
ideatoipo
 
PDF
E4IT STARTER - MODULE 6.pdf
Anna Gandrabura
 
PDF
Bavp sd
Shannon Gallagher
 
PDF
Den bavp
Shannon Gallagher
 
PDF
Tf bavp
Shannon Gallagher
 
PDF
JAZOON'13 - Sven Peters - How to do Kick-Ass Software Development
jazoon13
 
PDF
Voice usability testing with WOZ methodology - UX SCOT 2019
Abi Reynolds
 
PDF
Rapid Prototyping with Keynote
M Rezaur Rahman
 
PPTX
Cloud foundry, Lessons Learned at The Home Depot
James Watters
 
Final getting started with google actions
AjaySingh1938
 
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Marius Florian Mailat
 
How to Build a Dialogflow App by using Actions on Google.
Yuting Liu
 
Building google home applications tutorial
Alex Austin
 
DrupalCon Austin: UX Bootcamp workshop
Perfetti Media
 
UX 101: User Research methods to kickstart your project
Charlotte Breton Schreiner
 
How To Pitch Your Startup
Anthony Frasier
 
E4IT STARTER - MODULE 15.pdf
Anna Gandrabura
 
Mobile App Feature Configuration and A/B Experiments
lacyrhoades
 
E4IT STARTER - MODULE 14.pdf
Anna Gandrabura
 
Module_4 English For IT Starter.pdf.pdf
Anna Gandrabura
 
Build an Application from Idea to Release
ideatoipo
 
E4IT STARTER - MODULE 6.pdf
Anna Gandrabura
 
JAZOON'13 - Sven Peters - How to do Kick-Ass Software Development
jazoon13
 
Voice usability testing with WOZ methodology - UX SCOT 2019
Abi Reynolds
 
Rapid Prototyping with Keynote
M Rezaur Rahman
 
Cloud foundry, Lessons Learned at The Home Depot
James Watters
 

More from Peter Friese (20)

PDF
Building Reusable SwiftUI Components
Peter Friese
 
PDF
Firebase & SwiftUI Workshop
Peter Friese
 
PDF
Building Reusable SwiftUI Components
Peter Friese
 
PDF
Firebase for Apple Developers - SwiftHeroes
Peter Friese
 
PDF
 +  = ❤️ (Firebase for Apple Developers) at Swift Leeds
Peter Friese
 
PDF
async/await in Swift
Peter Friese
 
PDF
Firebase for Apple Developers
Peter Friese
 
PDF
Building Apps with SwiftUI and Firebase
Peter Friese
 
PDF
Rapid Application Development with SwiftUI and Firebase
Peter Friese
 
PDF
Rapid Application Development with SwiftUI and Firebase
Peter Friese
 
PDF
6 Things You Didn't Know About Firebase Auth
Peter Friese
 
PDF
Five Things You Didn't Know About Firebase Auth
Peter Friese
 
PDF
Building Conversational Experiences with Actions on Google
Peter Friese
 
PDF
Building Conversational Experiences with Actions on Google
Peter Friese
 
PDF
What's new in Android Wear 2.0
Peter Friese
 
PDF
Google Fit, Android Wear & Xamarin
Peter Friese
 
PDF
Introduction to Android Wear
Peter Friese
 
PDF
Google Play Services Rock
Peter Friese
 
PDF
Introduction to Android Wear
Peter Friese
 
PDF
Google+ for Mobile Apps on iOS and Android
Peter Friese
 
Building Reusable SwiftUI Components
Peter Friese
 
Firebase & SwiftUI Workshop
Peter Friese
 
Building Reusable SwiftUI Components
Peter Friese
 
Firebase for Apple Developers - SwiftHeroes
Peter Friese
 
 +  = ❤️ (Firebase for Apple Developers) at Swift Leeds
Peter Friese
 
async/await in Swift
Peter Friese
 
Firebase for Apple Developers
Peter Friese
 
Building Apps with SwiftUI and Firebase
Peter Friese
 
Rapid Application Development with SwiftUI and Firebase
Peter Friese
 
Rapid Application Development with SwiftUI and Firebase
Peter Friese
 
6 Things You Didn't Know About Firebase Auth
Peter Friese
 
Five Things You Didn't Know About Firebase Auth
Peter Friese
 
Building Conversational Experiences with Actions on Google
Peter Friese
 
Building Conversational Experiences with Actions on Google
Peter Friese
 
What's new in Android Wear 2.0
Peter Friese
 
Google Fit, Android Wear & Xamarin
Peter Friese
 
Introduction to Android Wear
Peter Friese
 
Google Play Services Rock
Peter Friese
 
Introduction to Android Wear
Peter Friese
 
Google+ for Mobile Apps on iOS and Android
Peter Friese
 
Ad

Recently uploaded (20)

PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Ad

Building High-Quality Apps for Google Assistant