Let’s talk about star wars with Dialog Flow

27
Let’s talk about Using DialogFlow

Transcript of Let’s talk about star wars with Dialog Flow

Let’s talk about

Using DialogFlow

About me

Sergi Martínez@sergiandreplace

Android GDE & dev at Schibsted Spain

Introducing DialogFlowFKA api.ai

What we want to achieve?

How it works

Step 1

Some concepts

AgentBasically, a DialogFlow application

IntentA mapping between what user says and the

action to take

IntentUser 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 VaderHow 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 contextVs

Output context

Adding intelligence

Step 2

Webhook implementation

In Node JS

https://github.com/sergiandreplace/swbothook-node

In Java

https://github.com/sergiandreplace/swbothook

AdviceUse ngrok & Postman

Code Review!