Bot won't respond to Twillo

Having trouble getting Programmable SMS integrated with my bot.

I have the credentials file filled out, with the appropriate information, and try to run with the command mentioned in the docs;

python -m -d models/dialogue -u models/nlu/current
    --port 5002 --credentials credentials.yml

How does this command treat previously setup endpoints? I have actions and core endpoints setup in my endpoints.yml. Should “–endpoints endpoints.yml” be included in the run command above if I want to use my custom actions?

Also, should my core endpoint is on 5005, actions on 5055, and twillo 5002, should they all exist at the same time, or am I misunderstanding how connecting the chatbot to another platform’s architecture works?

This is the error I get;

ConnectionError: HTTPConnectionPool(host='localhost', port=5005): Max retries exceeded with url: /webhooks/rest/webhook?stream=true&token= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x11d751650>: Failed to establish a new connection: [Errno 61] Connection refused',))

Would be grateful for any direction, thanks guys :slight_smile:

resolved, was able to port forward with ngrok as explained in the docs

Is authenticating with an endpoint enough to start using the chatbot with something like twillo? Does the chatbot automatically process XML/json structured requests, and then send back the correct response from intents/stories/domain training in the appropriate format? Or do you need to manually parse/ translate the response/ request

I keep getting this error from Twillo…

[ **12200**  The provided XML does not conform to the Twilio Markup XML schema. Please refer to the specific error and correct the problem.](

Resolved, need to use Twillo callback channel

Hi @ahson, do you have any code up on linking Rasa and Twilio? I’m attempting to do this for a project and am running into a mental roadblock as to how to approach it.