How to separate Test and Prod environment for WhatsApp Studio Flow? - twilio

I have bought two Twilio phone numbers which are validate and configured by Twilio and WhatsApp.
I created two Conversation Services ("Main Conversation Service" (SID:IS1234) and "Dev Conversation Service" (SID:IS4321)
Both are configured as "Engage in a discussion" Use case configuration.
Both are configured as "Autocreate a Conversation" in the Integration configuration.
Each service has a different phone number configured in the Sender Pool
Each WhatsApp Sender number Endpoint Configuration is configured a "Use Messaging Service (recomended)" with its respective Conversation Service
I have 2 Studio Flows ("WA_MAIN" and "WA_DEV"). In Flex > Manage > Messaging I have 2 WhatsApp addresses pointing each phone number to its respective Studio Flow.
This is the complete configuration, if something important is missing please ask me in the comments.
When I send a whatsapp message to each number the conversation is routed to the correct Studio Flow, but it is managed by the Main Conversation Service (IS1234), which is the older one. I have zero conversations in Dev Conversation Service (IS4321). All previous conversations with my phone number are in "closed" state.
Why is this happening? How can I build to independent environments to work with Conversations API without risking the SLA of Production environment?

This happens because of a Conversation Configuration where you configure the default messaging service that will handle the inbound conversations, you can see it on Conversations > Manager > Defaults.
The Twilio Team advises creating a new account to Homolog or Staging, so it's can be a solution to not affect your production environment.
I hope that it can help you.

Related

Triggering text-to-speech Teams outbound call via Microsoft PowerAutomate

I have a dynamically created text which I need to be "translated" into speech (via Azure Cognitive service or a different one, whatever works) and a specific number being called. If someone picks up, they should confirm by pressing # or whatever, if they do not pick up or voicemail is on, the call should end and a different phone number should be called.
I want to build all this via a Microsoft PowerAutomate flow.
Is this possible with PowerAutomate and Teams or do I need external tools such as Twilio?
The out of the box Teams connector does not seem to allow automated outbound calls: https://learn.microsoft.com/en-us/connectors/teams/#actions
I also checked the Twilio connector in PowerAutomate and it only supports sending SMS: https://learn.microsoft.com/en-us/connectors/twilio/#actions

Twilio Studio AND Twilio Messaging Service SAME number

https://gyazo.com/63cde836b15f181ab0d1cfa6e353d35c
I have two separate API's. One API I'm using the messaging service to bulk send messages to 1k users. Recently I've been experimenting with Twilio Studio and created another API to send a survey flow to customers where they could also reply to the incoming message and its get recorded in my db.
The issue here is, twilio studio wont read the customer's message if I have messaging service. If I remove the phone number from the messenging service, then twilio studio starts reading messages again. Is there anything in the config of messenging service that I can change so that I could have both concurrently?
Twilio developer evangelist here.
It sounds like you have this incorrectly configured such that you need to be using the Messaging Service when you send out the bulk messages as Studio will trigger and create a User based on Messaging Service + User as the To-From pair.
This tutorial from my former teammate Tilde on Using Twilio Studio and Conversations with SMS may be helpful.
Let me know if this helps at all!

Twilio Conversations - Scoped Conversations and Messaging Services - how to connect?

I'm trying to make sure a phone number attached to a Messaging Service auto create a conversation in a specific conversation service not the default one. From the Conversations > Default screen on the console I can read this:
What steps do I have to follow here to "specify another Messaging Service" in my request when the conversations are being auto created by twilio?
Requirements are:
I need a specific phone number creating a conversation in a specific Conversation Service as these are scoped to individual customers.
Twilio developer evangelist here.
Currently it is not possible to choose the conversation service for a messaging service to autocreate conversations in. The default conversation service is the only one that will be used to autocreate conversations.
An alternative approach here would be to create a new subaccount for each of your individual customers. You can then host your numbers, messaging service and conversation service for that customer within the subaccount and handle this use-case.

Twilio - Register Campaign Use Case for A2P 10DLC - Messaging Services

We have 560 different Messaging Services for our customers in Twilio. We are trying to register one of these for an A2P 10DLC Campaign Use Case so that we can do some discovery and perhaps build a PoC.
We have:
Created our business profile in TrustHub
Registered our US A2P brand
Attempted to "Setup Messaging Service" by checking "Use an existing Messaging Service"
Only the first 20 Messaging Services are shown. There is no way to paginate, filter, or sort. I can't find anything about Campaigns in the API documentation or I would do this with the SDK or Postman.
I am still waiting on a response to my support ticket and emails to our account representative. Two million SMS messages a month seems like we would be eligible for a response in under a week, but we're currently blocked.
Is there anyone who has encountered this problem and can offer some suggestions while we wait to hear back? Thank you for any assistance.
Campaign Registration Console Screen

Flex integration with SMS not working when switched from Proxy Service directly to Studio Flow

I am experimenting with Twilio Flex. I have setup project from Flex template to get started and it worked fine.
When I go to Flex Phone Number configuration I can see incoming messages are routed to Flex Proxy Service.
I don't understand quite well how Flex Proxy Service is integrated with Studio Messaging Flow. I can see my SMS messages in Messaging Flow log's but I do not know where exactly Proxy Service is configured to route messages to this flow
When I tried to change Flex Phone Number configuration so that when new message comes in Studio Flow (Messaging Flow) is called directly it stopped working and I could not see my messages popping up in Flex agent dashboard any more.
Obviously proxy service is doing something else in the background (other than routing to respective studio flow). Any suggestions here?
Twilio Proxy is used to orchestrate messages from multiple channels to the Flex agent UI. In the background it bridges messages from a messaging channel like SMS to a chat session. It is not necessary to configure the Proxy service manually, Flex automatically does it for you. You can configure a phone number for Flex on the Flex Management Console. On the same page you can link a messaging channel to a Studio flow. This flow is triggered whenever a new conversation is created.
You cannot configure a phone number directly with a Studio Flow to use it with Flex. The Flow for a channel is always configured (selected from the drop-down) on the Flex Management Console.

Resources