Twilio: can't get Studio Flow to respond to message

70 Views Asked by At

I'm trying to get my Flow to respond to the following

def flow_twilio(first_name,repeats_left):
    # Find your Account SID and Auth Token at twilio.com/console
    # and set the environment variables. See http://twil.io/secure
    account_sid = 'AC7XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 
    auth_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 
    client = Client(account_sid, auth_token)

    execution = client.studio \
                  .v1 \
                  .flows('FW8057d9d1f84b19286bd466253ab86cad') \
                  .executions \
                  .create(parameters={
                     'f_name' : first_name, 'rpts': repeats_left, 
                   }, from_='+12763888591', to='+353876201920') 
    print(execution.sid)

Here's my Studio Flow: The confirm_repeat widget is not doing anything, is there something obvious I'm not seeing. I've looked at the logs and can't figure out whats wrong with it. Any input or advice greatly appreciated, tks, Ian Studio Flow

Here's the log from the Flow enter image description here

1

There are 1 best solutions below

1
IObert On

Sounds like you were able to figure it out, that's great! I'll leave this answer here for others who might come along this issue.

Check which international long codes you’re using to send messages to Ireland in Twilio Console. Refer to our How Can I Check If I Am Using International Senders to Send Traffic To A Specific Destination? guide and follow the steps below:

Log into Twilio Console and select Messaging Insights using the filters “From Country + Does not Equal + Ireland" and "To Country + Equals + Ireland".

Check the message volume by clicking the tab "Delivery and Errors" and going to "Outgoing Messages by Top 20 Twilio Numbers".