SendToFlexWidget is not supported for this channel/trigger combination - twilio

I'm trying to integrate incoming SMS messages to Flex, I have a trigger that uses Incoming Message transition to send the data to a Send To Flex Widget, I can see in the logs that its able to get the message, however when it tries to direct the message data to Flex, I see the following error in the logs.
Note that I'm using the Programmable Chat Channel in the Send To Flex Widget
LOG
Send interaction to Flex via TaskRouter
DETAIL
SendToFlexWidget is not supported for this channel/trigger combination
I'd appreciate any help, Thanks.

I had the exact same situation when I was first setting up a new Flex Project. Turns out I had not registered the phone number with the project. From the console Flex>Messaging

Related

How to consume typing indicator from twilio chat channel via webhook

I'm using twilio chat service to integrate my inhouse chat platform with twilio flex. when creating the channel via the node SDK, I register a webhook to to consume messages sent over the channel and pass them on to our chat clients.
Does the flex chat widget for agents sends a typing indicator?
Are the typing indicator messages consumable via the webhook integration?
I think typing indicator is enabled default in flex UI and can not sent over Webhooks.
Please check this Flex
Also there is few links for typing indicator. Js code document
Twilio developer evangelist here.
Typing indicator messages are not sent over webhooks, only through the Chat SDKs.
Sohail is also correct that the Flex UI will send typing indicator messages that can be consumed from the Chat SDK on the user side (for example, the Flex Web Chat UI can use the typing indicator).

How can we track the message status ( like queued,sent,delivered etc ) using twilio studio workflow

I was using Twilio's sms api to send sms and i was able to track the delivery status using status call back url.But currently am planning to switch my implementation to twilio studio workflow but i didn't find a status call back functionality in it.
please help?
Twilio developer evangelist here.
The Twilio Studio send message widget has two transitions, one for if the message was sent successfully and one if the message failed to send. It's not quite as nuanced as the statuses you can get callbacks for, but that is what is available. The send and wait for reply widget also has a transition for delivery failed.
Are these enough for your application?

Cannot receive media attachment file in Twilio Flex

Project description:
Currently we have our customers using various chat platforms such as whatsapp , and slack where our contact center is forced to use the same. However, we would like to give Twilio flex platform to our contact service team so that they can reply messages coming from whatsapp, slack.
Query regarding media messages:
I use Javascript Client SDK for front end and connect Twilio Flex as an agent. Chat is working fine. I can send / Receive messages. But, when I send media files through SDK, 'Media messages are not supported' is displaying in Twilio Flex. When I use get All Messages from API able to get that media file as message with type = media. Also media SID is created for the uploaded file. But not able to view the same file in twilio flex.
This is a very old OLD question, but there's a bit better answer now.
https://github.com/jprix/mms2FlexChat/tree/master/function
Twilio Flex Plugin SAMPLE that shows media use with Flex and WhatsApp. Caveat: even the sample is somewhat old at this point, but should at least be educational.
HTH
You are correct, Flex does not support media attachments. You could possibly work on some logic to pass in the media URL to the agent via chat, but I have not seen any code examples to share.

Showing Read At for Twilio Programmable chat

I'm using Programmable chat. I'm trying to show ReadAt meta data to users. I know when the user is getting the message on the frontend since I'm listening to messageAdded on the current Channel in the Twilio Javascript SDK. I'm storing the message by listening to Webhook on the preMessageSend to make sure that the message is saved in DB. When I get this message, the problem is I'm not getting the messageId which I'm getting on the Javascript SDK message. Can someone help me in understanding how to correlate both the messages?
According to the Twilio developer docs:
Pre-Event Webhooks will fire before an action has been committed to the Chat instance, blocking publication until a response is received. This gives your backend (or Function) the opportunity to intercept, modify, or reject any action across the instance, making these hooks useful for spam/language filtering, complex permission schemes, or other business logic. Pre-event webhooks are fired only for actions from the Chat SDK; the REST API actions will never fire them.
So I suspect the messageId is not created until after this webhook.

Send mass texts with iOS

Is there anyway to send the same text to multiple contacts not as a group text. I have been told that it would need a server to accomplish this. If that is the case I would like to be able to still send texts from my current number not a new number. I have checked out Twilio but have not gotten very far.
Twilio developer evangelist here.
You cannot send mass text messages using Twilio and your existing phone number.
One option you might have is, if you have a Mac you can control the SMS app programmatically to send lots of SMS messages. Here's a blog post with some example code to do that: https://www.twilio.com/blog/2017/06/drawing-pixel-art-text-messages-signal-video-wall.html
That might not be of much help, but while you can send lots of SMS messages with Twilio, you cannot do so using your existing number.
Yes you could send mass texts out to different numbers using twilio. No you could not use your current number.
You would have to purchase a new twilio number that has SMS messaging enabled.
Look at the Twilio documentation and their get started guide, figure out the language you want to create your server in and you will be sending texts in no time. https://www.twilio.com/docs/quickstart/node/programmable-sms You would run the webserver. Twilio does not offer a swift or ios based SMS solution.
https://www.twilio.com/docs/quickstart?filter-language=swift

Resources