Many people have built insurtech bots in the way that you're currently going about it. This is a collection of things that others have been caught up on before, which may waste some of your time too. As you go, please add anything that you pick up too.
- We highly, highly suggest reading this about designing conversations and writing out a script for your bot.
- Check out this example of how previous Make Day Alumni have set up their bots
- Remember to push
ENTER
to save rows of information in DialogFlow - Remember to
SAVE
things before testing your changes - Use the testing dialogue in the top right of the screen to test your conversation, and view the JSON in the bottom right to see a preview of the payload it sends.
- For testing, use the “Try it now” input box in the top right of your screen. This allows you to debug the context of the conversation piece, as well as view the JSON created. Stay away from testing with the Google Assistant test bed as this seems to be buggy
- There is an agnostic chat emulator called "Web Demo" that you can turn on in the integrations section in Dialogflow which is useful to test conversation with your bot.
- Dialogflow Webhook Format here (JSON structures)
- If you're getting errors about being in testing mode when trying to hit endpoints, make sure you're using
sandbox.root
and notapi.root
in your url requests - You’ll auth your requests with the Basic auth using your
API Key
as username and a blank password - If you need to generate ID numbers for life insurance, you can use this link
- For those using
Postman
, if you receive a 400 Bad Request error while doing a POST change the body type to x-www-form-urlencoded.
- Use Ngrok to expose your local code via endpoints
- Ngrok fails to start on Windows10 --> Try using serveo
- Firebase requires you to be on pay as you go plan to make external HTTP requests
- For those coding in Node.js®, you can use glitch to host and deploy your code instantly instead of exposing from localhost.