The document discusses building apps for the Google Assistant using Google Cloud Functions and Actions on Google. It provides an overview of the architecture, development workflow, and ways for users to discover apps. Key points include using Cloud Functions as a serverless environment to handle requests, the Actions Console for configuration, and in-dialogue discovery or the Assistant Directory as ways for users to find actions.
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Google Home and Google Assistant Workshop: Build your own serverless Action on Google app
1. @bretmcg
Building apps for Google Home
and the Google Assistant
And other chatbots too!
Bret McGowen
Developer Advocate, Google
@bretmcg
Workshop: bit.ly/home-workshop
6. @bretmcg
Connect with new users wherever the
Google Assistant is available
Actions on Google
How you can extend
the Google Assistant
Help users get things done
with your service
Innovate with
Conversational Interface
7.
8. @bretmcg
The next session about Kubernetes is “CI/CD for Node.js
and Kubernetes in room Fisher West on Thursday at
3:20. Is there another topic you’re interested in?
Sure! Here’s Node Summit
Ok Google, let’s talk to Node Summit
Enter Earcon
Exit Earcon
Hi, I’ll be your guide to Node Summit. I can help you
explore topics or pick a session to attend. What would
you like to know?
When is the next Kubernetes talk?
14. @bretmcg
- Define Intents and Entities
- Writing responses
- Use Training to improve
Actions Use API.AI (or other tools) to handle natural language
ListSessions (session_tags.KUBERNETES);
“What Kubernetes sessions are there?”
17. @bretmcg
Cloud Functions
A serverless environment to build and
connect cloud services with code
● No managing servers
● Auto-scaling
● Pay only when invoked
● Node 6.11.1
● Local ephemeral disk at /tmp
● Auto-authed to other Google Cloud services
● Auto-compilation of native addon modules
19. const App =
require('actions-on-google').ApiAiApp;
function listTopicsIntent(app) {
ConferenceAPI.getCategories().then(
categories =>
app.ask("The topics covered are: ${topics}." +
"What do you want to learn?")
)
}
exports.myApp = function(request, response) {
var app = new App({ request, response });
app.handleRequest(listTopicsIntent);
};
Node.js app connected to API.AI
npm install actions-on-google
20. @bretmcg
Google Home app architecture
Google Cloud Functions
Your app's logicExtract entities and
intents from text
phrases
Assistant answers
user or routes to a
custom Action
{ JSON }
require('actions-on-google');
31. Link to account
Link FoodBot to your
Google Account
Jane Doe
jane.doe@gmail.com
Use another account
Proposed order
1
1
Classic burger
Add cheese
Large fries
$8.00
$0.50
$1.50
Pay with Google
Visa ••••1234
Subtotal
Tax
Total
$10.00
$0.75
$10.75
Confirmed
2 items • $10.75
Delivery
123 Castro St, Mountain View
Confirm orderBuild basket Ask for address
Jane Smith
1600 Amphitheater Rd
Mountain View, CA 94043
Delivery address
Jane Smith
12345 Castro St
Mountain View, CA 94043
1 2 3
Payments Identity Receipts
33. @bretmcg
Create a project on the
Actions Console
2
Test In our web simulator
or on device
Enhance your app for
mobile phones
Integrate your app with
our Transactions API
Use API.AI (or other tools) to
handle natural language
Connect a webhook
(we like Node.js)
1
3
4
5
6
Building our app
34.
35. @bretmcg
Fast feedback loop: Ngrok + Functions emulator
Google Cloud Functions emulator Ngrok secure internet tunnels to localhost
LIVE
RELOADING
DEBUG IN
CHROME
39. In Dialogue Discovery:
Explicit Triggering
Ok Google, ask YodaBot to translate I'm from Texas
Trigger Phrase App Name
Developer Specified
Action
Preposition
Action Phrase
Developer Specified
Partner Examples: Let’s speak to Domino’s
At Akinator
Ask Dr. Doggy if dogs can eat chocolate
Ok Google, let’s talk to YodaBot
Trigger Phrase App Name
Developer Specified
40. @bretmcg
Hey Google, I want to play a game.Hey Google, tell me a joke.
In Dialogue Discovery:
Implicit Triggering
Hey Google, I want to work out. Hey Google, what’s the surf report
42. @bretmcg
Link to your
Assistant App
From anywhere
Share through social media.
Promote through your own site or apps.
Encourage press to drive traffic
to your Assistant app.
43. @bretmcg
Thank you! Resources
Actions on Google
● developers.google.com/actions
Designing your Actions
● g.co/dev/ActionsDesign
Google Cloud Functions
● cloud.google.com/functions
Bret McGowen
Developer Advocate, Google
@bretmcg
Workshop: bit.ly/home-workshop