Shahar
Shahar

Reputation: 159

When connecting Twillio to my Bot, the Twilio device gets 404 when trying to post received sms

I connected Twilio connector to my registered Bot. Whenever I send a sms to my Twilio number, I can see in the logs that Twilio service gets 404 when trying to post a message to https://sms.botframework.com/api/sms

The bot itself works well. I can test it with the webchat iframe or through the test console. But it seems that the Twilio integration to the bot framework is broken

enter image description here

Upvotes: 1

Views: 287

Answers (1)

Marcos Placona
Marcos Placona

Reputation: 21720

Twilio developer evangelist here. I've just been through the process and was able to get my messages sent to & from my bot.

The fact that your unable to do that suggests you missed a step in the configuration, so I will try and describe what I did here to see if it helps you out.

  1. Created a TwiML application here and set its messaging url to https://sms.botframework.com/api/sms
  2. Purchased a phone number and changed the messaging section to use my TwiML app.
  3. Added my twilio credentials and twilio phone number to the SMS config section as follows:

enter image description here

One thing I noticed is that when Twilio makes a request to this URL to send an SMS, the url returns a 502.

enter image description here

But according to a Microsoft employee this is "harmless".

Let me know if this helps you at all, or if you still need any help.

Upvotes: 1

Related Questions