About
This is a simple voice app to demonstrate a way to use Dialogflow contexts in conversation.
Setup
- Register an account and setup
ngrok
from: https://ngrok.com/ - Run
ngrok http 8080
, copy forwarding URLhttps://******.ngrok.io
and replacehttps://PLACEHOLDER.ngrok.io
inagent/agent.json
- Compress folder
agent
asagent.zip
- Create a new Dialogflow agent: https://dialogflow.cloud.google.com/
- In Dialogflow console, Click ⚙️ icon, select
Export and Import
,RESTORE FROM ZIP
and then follow the steps to restore agent by usingagent.zip
- Run
npm install
andnpm start
- In Dialogflow console, click
Integrations
and then click the link in...Continue with the integration
to open simulator
Test
Scenario 1(ask):
- Drinks
- Coffee
Scenario 2(ask):
- I want to order a 12 inches moonpie pizza
- Coke
Scenario 3(ask):
- Pizza
- Moonpie
- 18 inches
- Coffee