Is it possible to use Copilot sticky sender with a Flow - twilio

I would like to use a flow created in Studio with some Copilot features like Scaler and Sticky sender.
I've a flow created already using Studio, as well as few numbers added to a messaging service, Sticky sender and Scaler are enabled on this service.
I would like to use this messaging service with the created flow, so i don't have to worry about balancing the usage of those assigned phone numbers myself.
When I configure a number I can only assign a messaging service (which i prefer) or a work flow, but not both at the same time. Although it would make sense if I can assign the flow to a messaging service.
Looking at Twilio Client for C#, i see that ExecutionResource.CreateAsync takes a from phone number as required parameter, so it doesn't seem like this is a possible options to have a flow linked to a messaging service.
I'm wondering if there is any workarounds, like having a function maybe to pass a phone number from the messaging service to the flow? or any other way?

Malek, you can also set the From to a messaging service using the From.
Executions
from:
"The Twilio phone number to send messages or initiate calls from during the Flow Execution, available as variable {{flow.channel.address}}"
Should have the added sentence: "You can also use a Messaging Service SID."

Twilio developer evangelist here.
What you want to do in this instance is to configure the number with a messaging service, then set the messaging service Inbound request URL to the flow's REST API trigger URL, which should look a bit like:
https://webhooks.twilio.com/v1/Accounts/<account_sid>/Flows/<flow_sid>

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

Provision for creation of functions in Twilio autopilot from our backend

I want to configure the Twilio autopilot functions to persist the user inputs and use them across the chatbot application. Is there any provision for creating functions from our backend application or are there any other provisions for getting the values in the memory so that I can use them thoroughly across my client-side chatbot application?
Have you taken a look at Twilio Sync? You could persist some information in there, json format, and retrieve it from any other Twilio validated app or function. You can subscribe to the different item events as well, to show up-to-date information if you'd need it to change.
https://www.twilio.com/sync

How to programmatically send a message to a Teams BOT

I have a BOT running which reponds to api/messages URL from the BOT Framework Emulator, and I can send text to it.
However what I need to do is write an application which sends text to the BOT over this URL. That is basically does what the BOT Framework Emulator does when I enter text and send it, probably over the graph API.
I am aware of information which demonstrates sending to a chat in a channel, but I just need to send to the BOT itself.
Can anyone advise how I can do this, or is there a suitable sample which demonstrates it.
Thanks
At the end of the day, your bot is really just a web api endpoint. If you set up a tunneling service like ngrok, you can use it's built-in web viewer to see the traffic that is sent to you bot, e.g. via the emulator or even via the azure bot registration page (there is a similar emulator built into the page in Azure). Once you've seen that traffic, you can essentially just mirror it from whatever you want to call from - it's essentially a json payload.
However, considering your bot is just a web api, I'm not sure why you want to "call" your bot from another app. Why not just make another endpoint that you can use for app-to-app communication (like a normal api endpoint). You can then refactor your code so that whatever you need to do can be done either via a bot message OR via the API call.

How to retrive 3rd party reques's hostname/dns in API Request in C#

in my application i had implimented twilio SMS Send and Receive function, which is working well, now i When twilio Send me sms i need to take from which domain name or host name twilio call my api. i want to enable cors for perticular server.
I tried following code but it's provide me my own Machine name.
var addlist = Dns.GetHostEntry(Dns.GetHostName());
string GetHostName = addlist.HostName.ToString();
This code give me my server Name like - myPc-xx.com
But i want the API call from www.Twilio.com/sds
can any one help me for the same.
Thank you
You will want to reference the Twilio Security webpage, which provides two ways to authenticate the inbound webhooks to your web application. Twilio uses dynamic based infrastructure, so there is not a fixed FQDN webhooks originate from.

Twilio Client (Skype Like) Without Building One - Where Can I Find It?

Twilio is cool and has great prices for calls and toll-free. I have used it with Zoho CRM, but I would like to use it without being tied to a CRM.
Is there some service or place where you can just download or use ready-made web or windows clients? I want to use Twilio similar to how I would use Skype - and have it automatically / easily connect to my Twilio account. My Google searches have not returned any results.
The closest (already built client) I can think of is a SIP client, something like Zoiper.
Take a look at my answer in the link (it only describes the setup for voice but you could add messaging too):
How do I forward a Twilio number to a VoIP phone?

Resources