[earlier versions of this tutorial reference api.ai. Google acquired api.ai and renamed it dialogflow]
-
On your Burner account, enable the Developer Connection from the Developer Console.
-
Generate an incoming webhook
-
Make a note of your agent's token, obtainable from the settings button.
-
Deploy the api.ai+burner bot to your Heroku account by tapping the button below. This will install the bot as an app running on your heroku account.
-
When prompted, enter the Copy and paste the incoming webhook url that was generated above into the
incomingwebhookurl
field, and your API agent's client access token into theaccesstoken
of the Heroku form. -
Tap "Manage" after the app has finished deploying to heroku.
-
Find your heroku url under
Settings -> Domains
and paste it into the Outgoing webhook field on the Burner developer console with/listen
appended to it. e.g. if your heroku url ismyapp.herokuapp.com
you would usehttps://myapp.herokuapp.com/listen
as the outgoing webhook url. Make sure you addhttp
as well. __you must append /listen to the url in order for the app to hear the texts it is being sent. -
That's it, you're done! Send your newly configured Burner number a text and it should reply back. The first time you send a message it might take a few seconds to reply, so if it doesn't reply immediately be patient.