I've been attempting to create a two-way conversation using SMS forwarding in Twilio Studio flow. I know there are multiple ways to set up SMS forwarding in Twilio, and I have been successful in doing so using functions on their own, TwiML and Studio Flow SMS on the send message widget. However, I am struggling with creating a flow that extends beyond one message. I've added the function for SMS forwarding into my flow, but every time a response is received it displays as "undefined:undefined" as opposed to "+15555555555:Hello SMS", Am i missing something?
You might want to use the CHAT product from Twilio instead which would manage all of the sessions, conversations and everything else.
Related
I using twilio flow to create simple chatbot that sends user a whatsapp message with link to provide some details and once user has provided the required details on web page, chat bot must reply with a THANKS message.
Is there anything like postback using rest api on active execution based on which a thank you message can sent.
Please have look on diagram as well.
Twilio developer evangelist here.
When you say you are using Twilio flow, I guess you are using Twilio Studio to send the messages. In this case, I don't think you can achieve what you want with Studio. You can't move an execution on with the REST API.
However, it should be fairly straightforward to send the thank you message from your application using the Twilio Messaging API instead.
What you will need to do is, when the user submits the form, in your back-end code as well as saving the data to your database, make a call to the Twilio API to send the WhatsApp message. I'm not sure what your application is built in, so I've just linked to the relevant documentation.
I am using Twilio to communicate with my users via SMS. I have my own web application that reads the incoming Twilio message. I use a web hook for that purpose. I am able to read the incoming message and process it in my web application.
I would like to send out survey questions periodically during the day to the same number. I researched the Studio flow for this purpose. It looks like a good option to write a survey.
I have a doubt though. In twilio console I added my url as a web hook to receive all sms messages. If I build a studio flow then how do I use that. I already have a web hook but I also want to do a survey using the same twilio phone number. Is there a way to do this in Twilio.
What I want to achieve is I receive SMS from a twilio number all through the day using a web hook. Every 2 hours or so I would like to send out a survey question to the same twilio number and process the answer in my end. What is the best approach to do this? I use c# and .net core to write my web app.
Thank you
you can do this.
You would use the REST API path of the Studio Trigger widget of your Studio Flow, to kick off this outbound SMS. You can find more details below. The scheduling logic, every 2 hours, would be handled by your application logic.
Trigger a Twilio Studio Flow Execution via the REST API
Execution
We use the REST API trigger for the Appointment Reminder Studio example.
We have the need to open an SMS conversion between clients and service providers. The thought is to send an initial request to the provider with a message from the client and then have the provider reply (and converse) directly with the client.
I've looked in the quick starts and the API docs but I don't see any clear pathway.
Am I missing some thing?
You can use a product like Twilio Conversations for that purpose. You add both as participants into a conversation. They communicate to each other via their assigned Twilio Proxy numbers.
Introducing Twilio Conversations: Now, every message becomes an invitation for a conversation
Using Twilio Conversations (Using Conversation You Tube Video - Signal 2019)
Hi im relatively new to Twilio, and love Twilio Studio.
However, Can someone clarify whether this is possible.
I have built a simple Welcome flow in studio receiving SMS messages no problem. An Autopilot widget processes the incoming messages to which i then send the reply to a specific Flow in Studio.
This all works amazingly well...until the user is in this specific Flow (let's say Flow A). Once in this Flow A, at some point I ask for input to redirect to another Flow B.
But when I test the response (via a Send and Wait for Reply widget) to get to Flow B (using a redirect) nothing happens.
Can Twilio not process or pass users between different Flows from SMS (or any messaging app)?
Twilio developer evangelist here.
Twilio Studio does not currently support passing users between flows. Currently the best thing to do is include all of your flow logic within the one flow and make decisions using the split widget.
I'm very new at using Twilio. I just created my first flow using Studio, which forwards SMS and calls to my personal phone. Is there a way to differentiate forwarded inbound calls (business) from regular direct calls (personal)?
Thank you!
Twilio developer evangelist here.
I would edit the caller ID in the Connect Call To widget in Studio to be a different validated outgoing number so you know if it is that number, it is for business, as mentioned in this tutorial on call-forwarding with Studio.
You could also trigger the sending of a SMS message from Studio before forwarding the call or SMS message saying that the incoming message/call is for business.
We also offer the Lookup API in your console to find information like location, caller name, and carrier.
Hope this helps!