SlideShare a Scribd company logo
Building Google Home Applications
Using DialogFlow
Alex Austin
November 2017
2
Overview
• Computer interaction via natural language (voice, chatbot) is growing
– U.S.: 20% use phone voice assistants; 10% use stand-alone devices (Home, Echo)
• Machine learning drives success & growth in this space
– Free tools exist to learn & build, with no programming experience required
• Google Home and Amazon echo have two types of voice applications:
– Built in: Check the weather, set a timer, play music, etc.
– 3rd Party Applications:
• Check my bank balance
• Order an Uber
• Anything else you come up with – We’ll learn how today !
3
Tools to get started
• Go to DialogFlow, create an account, and log in - https://dialogflow.com/
• We’ll cover the basics today, and this video is also a great walkthrough
https://www.youtube.com/watch?v=9SUAuy9OJg4
• Basic Terminology:
– Agent – Voice applications are known as ‘Agents’ in API.AI
– Intent – A certain thing you want your agent to do
– Entity – A list of objects that your agent will recognize as inputs from the user
• Example: For this tutorial, we’ll create an Agent that tells you what
meeting rooms are near your team
– Agent Name: “example_rooms_near_me”
– Intent example: “list rooms near 3500 block”
– Entity example: “teams_in_3500”
• e.g. Marketing, Operations, Design, etc.
4
Create Agent: Click the drop down in top left, create new agent, give
it a name and description, then save
5
Create an entity: Give it a name, list a few values, and hit save
6
Create an intent request: Give it a name, and type an example user
request. Note that API.AI recognizes and defines the entity from user
7
Create the intent response: Scroll down and define how you want
your agent to respond when this intent is requested. You can call the
user’s input parameter using the dollar sign “$”
8
Push live & test: You can push your agent live across many
applications. Click “actions on google” and follow prompts to test on
the Google Home simulator
9
Your Agent is working! Now you can enhance it with training, pre-
built intent additions, and backend fulfillment
10
Training: Constantly improve your agent by assigning the right
intent or entity when it encounters a question it can’t answer
11
Prebuilt Agents: Instantly add functionality to your agent with
API.AI’s suit of pre-built intents – add weather, small talk, and more
12
Backend Fulfillment: Connect your agent to a database, website, or anything
accessible via API. You can use the ‘webhook’ feature to make an API call
for additional info (aka ‘connect the backend’)
**I recommend getting your first agent running and tested without using a webhook (focus of this training).
After that, connecting to backend via webhook is a great step 2 – we’ll tackle this in a separate training session.
• Or, check out this link for a detailed tutorial: https://docs.api.ai/docs/webhook#webhook-example
13
As we’ve seen, you can create an agent in less than an hour;
Try creating one of these and impress your family & friends
• Chores agent:
– Intent: “Who should take out the trash?”
– Text Response: Return a random family members name
• Office agent:
– Intent: “When does the morning bus run?”
– Intent: “Which cafeteria should we go to for lunch?”
• Fun fact:
– Intent: “Tell me a fun fact about $family_members_name”
– Text Response: Return a random fact about the family member requested
• Other ideas for work, home, fun ??
14
Appendix
15
User Request
Interaction Model
(for your Application)
Backend
How does it work?
• Voice (Echo, Home)
• Chat-bot
– Facebook
– Slack
• Intent
– What user wants to do
• Sample Utterances
– How they request it
• Execution Logic
– Code to fulfill request
• Database
• Website
• Anything connected to
the internet..
16
User Request Interaction Model Backend
How do we do it?
• Voice
• Chat-bot
• Intent
• Sample Utterances
• Execution Logic
• Anything on the
internet
Machine Learning API ConnectionsKeys to success:
API.AI Web InterfaceTools for this demo: “Webhook” API call
17
20% of Americans leverage voice on mobile phone, while 10%
leverage in-home voice devices; large YoY growth seen for in-home
Mobile Phone: https://www.emarketer.com/Article/Alexa-Say-What-Voice-Enabled-Speaker-Usage-Grow-Nearly-130-This-Year/1015812
Mobile Search: 20% of Mobile Queries are generated by Voice.
Echo / Home Users: http://www.businessinsider.com/amazon-echo-vs-google-home-sales-estimates-chart-2017-5
Echo Growth: http://www.geekwire.com/2016/amazon-holiday-sales-numbers/ ; http://www.geekwire.com/2016/amazon-echo-sales-reach-5m-two-
years-research-firm-says-google-competitor-enters-market/

More Related Content

Similar to Building google home applications tutorial

Web And App Design
Web And App DesignWeb And App Design
Web And App Design
Outreach Digital
 
Web & Mobile App Design for Non-Coders with Bubble.is
Web & Mobile App Design for Non-Coders with Bubble.isWeb & Mobile App Design for Non-Coders with Bubble.is
Web & Mobile App Design for Non-Coders with Bubble.is
James Eckhardt
 
Agencies Developer Products
Agencies Developer ProductsAgencies Developer Products
Agencies Developer Products
Jeff Eddings
 
Designing Voice Applications - Create For Voice
Designing Voice Applications - Create For VoiceDesigning Voice Applications - Create For Voice
Designing Voice Applications - Create For Voice
Kasia Ryniak
 
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Google Assistant Actions – Codelab and Hackathon - 2018.06.06Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Marius Florian Mailat
 
How to build and publish a google home app with dialogflow
How to build and publish a google home app with dialogflowHow to build and publish a google home app with dialogflow
How to build and publish a google home app with dialogflow
Moses Sam Paul Johnraj
 
Best Of SEJ Summit: Duane Forrester on the Future of Voice Search
Best Of SEJ Summit: Duane Forrester on the Future of Voice SearchBest Of SEJ Summit: Duane Forrester on the Future of Voice Search
Best Of SEJ Summit: Duane Forrester on the Future of Voice Search
Search Engine Journal
 
Building poollie wk 2014 for ios android and windows phone using xamarin and ...
Building poollie wk 2014 for ios android and windows phone using xamarin and ...Building poollie wk 2014 for ios android and windows phone using xamarin and ...
Building poollie wk 2014 for ios android and windows phone using xamarin and ...
Vincent Hoogendoorn
 
Nysae tech institute 4 13-11
Nysae tech institute 4 13-11Nysae tech institute 4 13-11
Nysae tech institute 4 13-11
Lee_Hornstein
 
Nysae tech institute 4 13-11
Nysae tech institute 4 13-11Nysae tech institute 4 13-11
Nysae tech institute 4 13-11
Lee_Hornstein
 
IT Resources for Your Business
IT Resources for Your BusinessIT Resources for Your Business
IT Resources for Your Business
asuarea48
 
How to Build a Dialogflow App by using Actions on Google.
How to Build a Dialogflow App by using Actions on Google.How to Build a Dialogflow App by using Actions on Google.
How to Build a Dialogflow App by using Actions on Google.
Yuting Liu
 
Driving App Success Part II
Driving App Success Part IIDriving App Success Part II
Driving App Success Part II
Nathan Mellor
 
Finding Anything: Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTankFinding Anything: Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTank
YogiWanKenobi
 
Finding Anything: Real-time Search with IndexTank
Finding Anything:  Real-time Search with IndexTankFinding Anything:  Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTank
YogiWanKenobi
 
Chatbot development workshop with the Microsoft Bot Framework
Chatbot development workshop with the Microsoft Bot FrameworkChatbot development workshop with the Microsoft Bot Framework
Chatbot development workshop with the Microsoft Bot Framework
gjuljo
 
API Workshop Series Part 2: The Future of Intelligent User Interactions
API Workshop Series Part 2: The Future of Intelligent User InteractionsAPI Workshop Series Part 2: The Future of Intelligent User Interactions
API Workshop Series Part 2: The Future of Intelligent User Interactions
Caitlin Zucal
 
10 Digital Marketing Trends for 2017
10 Digital Marketing Trends for 201710 Digital Marketing Trends for 2017
10 Digital Marketing Trends for 2017
DragonSearch
 
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.comPhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
PhoenixGMN WebAndAppsDevelopment
 
Actions On Google - How? Why?
Actions On Google - How? Why?Actions On Google - How? Why?
Actions On Google - How? Why?
Ido Green
 

Similar to Building google home applications tutorial (20)

Web And App Design
Web And App DesignWeb And App Design
Web And App Design
 
Web & Mobile App Design for Non-Coders with Bubble.is
Web & Mobile App Design for Non-Coders with Bubble.isWeb & Mobile App Design for Non-Coders with Bubble.is
Web & Mobile App Design for Non-Coders with Bubble.is
 
Agencies Developer Products
Agencies Developer ProductsAgencies Developer Products
Agencies Developer Products
 
Designing Voice Applications - Create For Voice
Designing Voice Applications - Create For VoiceDesigning Voice Applications - Create For Voice
Designing Voice Applications - Create For Voice
 
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Google Assistant Actions – Codelab and Hackathon - 2018.06.06Google Assistant Actions – Codelab and Hackathon - 2018.06.06
Google Assistant Actions – Codelab and Hackathon - 2018.06.06
 
How to build and publish a google home app with dialogflow
How to build and publish a google home app with dialogflowHow to build and publish a google home app with dialogflow
How to build and publish a google home app with dialogflow
 
Best Of SEJ Summit: Duane Forrester on the Future of Voice Search
Best Of SEJ Summit: Duane Forrester on the Future of Voice SearchBest Of SEJ Summit: Duane Forrester on the Future of Voice Search
Best Of SEJ Summit: Duane Forrester on the Future of Voice Search
 
Building poollie wk 2014 for ios android and windows phone using xamarin and ...
Building poollie wk 2014 for ios android and windows phone using xamarin and ...Building poollie wk 2014 for ios android and windows phone using xamarin and ...
Building poollie wk 2014 for ios android and windows phone using xamarin and ...
 
Nysae tech institute 4 13-11
Nysae tech institute 4 13-11Nysae tech institute 4 13-11
Nysae tech institute 4 13-11
 
Nysae tech institute 4 13-11
Nysae tech institute 4 13-11Nysae tech institute 4 13-11
Nysae tech institute 4 13-11
 
IT Resources for Your Business
IT Resources for Your BusinessIT Resources for Your Business
IT Resources for Your Business
 
How to Build a Dialogflow App by using Actions on Google.
How to Build a Dialogflow App by using Actions on Google.How to Build a Dialogflow App by using Actions on Google.
How to Build a Dialogflow App by using Actions on Google.
 
Driving App Success Part II
Driving App Success Part IIDriving App Success Part II
Driving App Success Part II
 
Finding Anything: Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTankFinding Anything: Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTank
 
Finding Anything: Real-time Search with IndexTank
Finding Anything:  Real-time Search with IndexTankFinding Anything:  Real-time Search with IndexTank
Finding Anything: Real-time Search with IndexTank
 
Chatbot development workshop with the Microsoft Bot Framework
Chatbot development workshop with the Microsoft Bot FrameworkChatbot development workshop with the Microsoft Bot Framework
Chatbot development workshop with the Microsoft Bot Framework
 
API Workshop Series Part 2: The Future of Intelligent User Interactions
API Workshop Series Part 2: The Future of Intelligent User InteractionsAPI Workshop Series Part 2: The Future of Intelligent User Interactions
API Workshop Series Part 2: The Future of Intelligent User Interactions
 
10 Digital Marketing Trends for 2017
10 Digital Marketing Trends for 201710 Digital Marketing Trends for 2017
10 Digital Marketing Trends for 2017
 
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.comPhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
PhoenixGMN - How To Go About An App Idea - Guide by SuperHitApps.com
 
Actions On Google - How? Why?
Actions On Google - How? Why?Actions On Google - How? Why?
Actions On Google - How? Why?
 

Recently uploaded

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 

Recently uploaded (20)

clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 

Building google home applications tutorial

  • 1. Building Google Home Applications Using DialogFlow Alex Austin November 2017
  • 2. 2 Overview • Computer interaction via natural language (voice, chatbot) is growing – U.S.: 20% use phone voice assistants; 10% use stand-alone devices (Home, Echo) • Machine learning drives success & growth in this space – Free tools exist to learn & build, with no programming experience required • Google Home and Amazon echo have two types of voice applications: – Built in: Check the weather, set a timer, play music, etc. – 3rd Party Applications: • Check my bank balance • Order an Uber • Anything else you come up with – We’ll learn how today !
  • 3. 3 Tools to get started • Go to DialogFlow, create an account, and log in - https://dialogflow.com/ • We’ll cover the basics today, and this video is also a great walkthrough https://www.youtube.com/watch?v=9SUAuy9OJg4 • Basic Terminology: – Agent – Voice applications are known as ‘Agents’ in API.AI – Intent – A certain thing you want your agent to do – Entity – A list of objects that your agent will recognize as inputs from the user • Example: For this tutorial, we’ll create an Agent that tells you what meeting rooms are near your team – Agent Name: “example_rooms_near_me” – Intent example: “list rooms near 3500 block” – Entity example: “teams_in_3500” • e.g. Marketing, Operations, Design, etc.
  • 4. 4 Create Agent: Click the drop down in top left, create new agent, give it a name and description, then save
  • 5. 5 Create an entity: Give it a name, list a few values, and hit save
  • 6. 6 Create an intent request: Give it a name, and type an example user request. Note that API.AI recognizes and defines the entity from user
  • 7. 7 Create the intent response: Scroll down and define how you want your agent to respond when this intent is requested. You can call the user’s input parameter using the dollar sign “$”
  • 8. 8 Push live & test: You can push your agent live across many applications. Click “actions on google” and follow prompts to test on the Google Home simulator
  • 9. 9 Your Agent is working! Now you can enhance it with training, pre- built intent additions, and backend fulfillment
  • 10. 10 Training: Constantly improve your agent by assigning the right intent or entity when it encounters a question it can’t answer
  • 11. 11 Prebuilt Agents: Instantly add functionality to your agent with API.AI’s suit of pre-built intents – add weather, small talk, and more
  • 12. 12 Backend Fulfillment: Connect your agent to a database, website, or anything accessible via API. You can use the ‘webhook’ feature to make an API call for additional info (aka ‘connect the backend’) **I recommend getting your first agent running and tested without using a webhook (focus of this training). After that, connecting to backend via webhook is a great step 2 – we’ll tackle this in a separate training session. • Or, check out this link for a detailed tutorial: https://docs.api.ai/docs/webhook#webhook-example
  • 13. 13 As we’ve seen, you can create an agent in less than an hour; Try creating one of these and impress your family & friends • Chores agent: – Intent: “Who should take out the trash?” – Text Response: Return a random family members name • Office agent: – Intent: “When does the morning bus run?” – Intent: “Which cafeteria should we go to for lunch?” • Fun fact: – Intent: “Tell me a fun fact about $family_members_name” – Text Response: Return a random fact about the family member requested • Other ideas for work, home, fun ??
  • 15. 15 User Request Interaction Model (for your Application) Backend How does it work? • Voice (Echo, Home) • Chat-bot – Facebook – Slack • Intent – What user wants to do • Sample Utterances – How they request it • Execution Logic – Code to fulfill request • Database • Website • Anything connected to the internet..
  • 16. 16 User Request Interaction Model Backend How do we do it? • Voice • Chat-bot • Intent • Sample Utterances • Execution Logic • Anything on the internet Machine Learning API ConnectionsKeys to success: API.AI Web InterfaceTools for this demo: “Webhook” API call
  • 17. 17 20% of Americans leverage voice on mobile phone, while 10% leverage in-home voice devices; large YoY growth seen for in-home Mobile Phone: https://www.emarketer.com/Article/Alexa-Say-What-Voice-Enabled-Speaker-Usage-Grow-Nearly-130-This-Year/1015812 Mobile Search: 20% of Mobile Queries are generated by Voice. Echo / Home Users: http://www.businessinsider.com/amazon-echo-vs-google-home-sales-estimates-chart-2017-5 Echo Growth: http://www.geekwire.com/2016/amazon-holiday-sales-numbers/ ; http://www.geekwire.com/2016/amazon-echo-sales-reach-5m-two- years-research-firm-says-google-competitor-enters-market/