Unable to link the bot built from bot composer with twilio - twilio

We have built a bot using bot composer, and deployed it as azure function and the web app, the URL looks like https://xyzbot.azurewebsites.net/api/messages
We tested it using bot emulator and the web chat, worked fine.
Facing some challenges while registering the bot with twilio channel.
When we used the same link in twilio webhook, it is giving following bad request error.

Related

How to programmatically send a message to a Teams BOT

I have a BOT running which reponds to api/messages URL from the BOT Framework Emulator, and I can send text to it.
However what I need to do is write an application which sends text to the BOT over this URL. That is basically does what the BOT Framework Emulator does when I enter text and send it, probably over the graph API.
I am aware of information which demonstrates sending to a chat in a channel, but I just need to send to the BOT itself.
Can anyone advise how I can do this, or is there a suitable sample which demonstrates it.
Thanks
At the end of the day, your bot is really just a web api endpoint. If you set up a tunneling service like ngrok, you can use it's built-in web viewer to see the traffic that is sent to you bot, e.g. via the emulator or even via the azure bot registration page (there is a similar emulator built into the page in Azure). Once you've seen that traffic, you can essentially just mirror it from whatever you want to call from - it's essentially a json payload.
However, considering your bot is just a web api, I'm not sure why you want to "call" your bot from another app. Why not just make another endpoint that you can use for app-to-app communication (like a normal api endpoint). You can then refactor your code so that whatever you need to do can be done either via a bot message OR via the API call.

How to build Conversational IVR with microsoftbot framework using Twilio

I want to connect Microsoft chatbot to twilio , whenever user makes a call to twilio number it internally needs to connect to Chat bot and return response to user via twilio .
How can i achieve this ?
I tried this link but it only works for SMS but I want IVR bot
bot details - Deployed in Azure ,.net core(v4)

"Twilio could not find a Channel with the specified From address"

I have integrated rasa assistant with twilio to show chat in watsaap messenger.
Currently, when i send the message to the bot this error is coming up.
I faced this issue while trying the Twilio WhatsApp API with test credentials (expecting it to work).
You need to use the LIVE Credentials instead of the Test Credentials. The test credentials do not support WhatsApp at time of writing. It will cost you some money per successful API call (because it is a real API call to WhatsApp).
This error indicates the destination (To:) number is not WhatsApp enabled. If that is not the case, you should open a ticket with Twilio via the Twilio console to have them further investigate.
Twilio could not find a Channel with the From address

Twilio Android QuickStart app for Programmable Voice - No incoming calls

I have followed the guide that says "Get Started with Android" for Twilio Android Programmable Voice SDK.
I have done everything right, from using the correct Account Sid, API Key, API Secret to giving Voice Grant to the access token generated.
I have also added the GCM push SID in order to receive incoming calls in the Quickstart Android App.
However, I am not able to receive calls in my Android app (though it's working fine in the browser)
Based on the code in this app, I have to release an update to my users.

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
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.
Created a TwiML application here and set its messaging url to https://sms.botframework.com/api/sms
Purchased a phone number and changed the messaging section to use my TwiML app.
Added my twilio credentials and twilio phone number to the SMS config section as follows:
One thing I noticed is that when Twilio makes a request to this URL to send an SMS, the url returns a 502.
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.

Resources