Let’s talk about
Using DialogFlow
About me
Sergi Martínez
@sergiandreplace
Android GDE & dev at Schibsted Spain
Introducing DialogFlow
FKA api.ai
What we want to achieve?
How it works
Step 1
Some concepts
Agent
Basically, a DialogFlow application
Intent
A mapping between what user says and the
action to take
Intent
User says Intent Parameters
Hello Salute
I want to know how tall is
Darth Vader
Get Darth Vader Height
I want to talk about Darth
Vader
Set character Character = Darth Vader
I want to know how tall is
Darth Vader
Get Height Character = Darth Vader
I want to talk about Darth
Vader
How tall is he?
Set character
Get Height
Character = Darth Vader
Character = Darth Vader
Step 1
Step 1
Show me!
What happens if we want more
characters?
Entities
Entities are a set of terms that
can be identified as parameter
Creating a character entity
Using entities on intents
Show me!
Context
Context is the information
transported during the
conversation
Input context
Vs
Output context
Adding intelligence
Step 2
Webhook implementation
In Node JS
https://github.com/sergiandreplace/swbothook-node
In Java
https://github.com/sergiandreplace/swbothook
Advice
Use ngrok & Postman
Code Review!

Let’s talk about star wars with Dialog Flow