Dialogflow Twilio Integration for SMS allows you to easily create Twilio bots with natural language understanding based on the Dialogflow technology.
Setting Up Twilio
In order to set up the Twilio integration for your agent, you'll need the following:
Creating a Messaging Service in Twilio
Login to Twilio, click on the three horizontal dots, and then Programmable SMS.
Click on Messaging Services and then Create new Messaging Service.
In the resulting window, enter a Friendly Name for your Messaging Service and choose your Use Case.
Setting Up Dialogflow
- In Dialogflow, go to Integrations in the left hand menu.
- Click on the Twilio (Text Messaging) tile.
- Copy the Request URL.
- Click the Start button.
Continuing Twilio Setup
To continue the setup you need to enable a number to use for the SMS messaging service. Once you have a number, you need to link it to Dialogflow.
Adding a number
Click on Numbers then Buy a Number or Add an Existing Number.
Set your search criteria, then click the Search button.
Click the Buy button for the number you want to use and then click the Buy This Number to confirm.
Link to Dialogflow
- Under the setting for your messaging service, check the box under Inbound Settings for Process Inbound Messages.
- Paste the Request URL from Dialogflow, into the Request URL field.
Navigate back to your Dashboard and make note of your Account SID, Auth Token, and Service Phone Number.
Continuing Dialogflow Setup
Under your Twilio integration settings, enter the following information:
- Account SID
- Auth Token
- Phone Number
You can test your bot by sending a text message to the messaging service number.
The following events are invoked by this integration:
||Triggered when the integration receives an MMS message for your agent.|