A very simple step by step, 11:06 minutes demo (see video at the end of read me) of implementing an echo service using webhook. Whatever user asks Google Assistant will be sent to your API and then same text will be sent back as speech text.
This simple app will help you understand
- How to write an API in node
- How to integrate your node JS app with DialogFlow (API.AI) as webhook
- Push this app to Heroku
- Test the API https://webhook-echo-sample.herokuapp.com/echo - use www.hurl.it to test it
Open DialogFlow portal - https://dialogflow.com/
- Create an account and login
Watch this video to learn the steps to create sample application.