We are building a voice calling application ie (https://github.com/twilio/voice-quickstart-ios#11-make-client-to-client-call), calling working good with great sound quality. We have a new requirement to schedule a call outside of the application, ie instead of the call occurring through the application, it will occur by a normal dial-in number.
Our use case as follows
Caller clicks on agents profile.
The caller sees a list of available dates/times that agents are available. Let's say April 10th at 1 pm PST is available.
Caller selects April 10th at 1 pm and presses "Schedule".
The caller is prompted to pay $100 for a 1-hour call at the selected time.
The caller enters credit card information and presses "Pay".
The caller sees a confirmation message:
Your call is now booked with John Smith! Please call (555-555-5555 -
Twilio number) at 1 pm on April 10th, 2020.
We want to know the following
If a user calls to a Twilio number, can we redirect that call to our agents(ie we have several registered agents in our application)
When users calling, we want to know who is calling and where to redirect this call.
I think we can manage scheduling with our application logic. Let us know, what all services Twilio provides for executing such a scenario, we would love to know is there is any other way around. Your help is much appreciated.
Thank you.
You can look at products such as Twilio Studio. Studio allows you to easily set-up a call forwarding scenario, but the hyperlinked article has many way to accomplish this task. It sounds like you have already built out the agent assignment functionality.
Related
I'd like to get an email notification from Twilio anytime a subaccount has used over 1,000 message units in a month. Is there a way to create a Twilio notification trigger that would do this? Currently, I have to go into the subaccount usage report in the console, run through about 15 pages of info looking for users that have run up a bill over $15 and check their individual usage to see if I need to up their pay tier.
From the Twilio console, click the Billing (upper right corner) -> Usage -> Triggers. I can take some amount of time before the usage trigger fires, but it will fire.
Create a Usage Trigger
There is also an API so you can programmatically create the triggers in each sub-account.
REST API: UsageTrigger
Is it possible to maintain both group text messages and single text messages with users and keep them separate? I understand there is no concept of a group message per se, but wanted to see if any recent advances in tech has made this possible with Twilio or other providers.
In short, I am creating a POC where a user inside an iOS App can send invoke an API call to my backend application. This application receives a phone number from someone's contact list, and then connects to Twilio to send the SMS message to that target user.
When the user replies, I was researching Twilio Web hooks to receive the message, and then save it in the database. The originating user, then, would be able to see the message on a screen.
I would guess that when a user responds to the twilio message, the only metadata that comes in is their message and phone number, so the "foreign key" is the phone number.. Thus when I save it in my database, I have their phone number and message.
This works up until someone decides to target two or more people in an SMS message using my API, and then target one of those people individually. For example they select me as a sole recipient, and then select me and someone else as a group text message.
In this case, how could my system/Twilio differentiate between if I was responding to the group message, or to the single message?
Any ideas or work arounds? Maybe another technology? Thanks!
I wanted to provide an answer to this in case anyone else was looking into this.
Essentially you pay 3 cents (0.03) per month per active user in each group. Basically you buy phone numbers for each group chat you need.
https://www.twilio.com/conversations/pricing
So if you're doing a million group chats obviously it can get costly, but for simple POCs this isn't the end of the world.
Enjoy!
We have Microsoft Virtual Assistant built it Typescript and we are planning to add Timeout capability. What this means is VA should end the conversation with its Skill if user is not engaged for certain amount of time.
There is botbuilder-timeout module to do this in V3 SDK which says,
"Module for Microsoft Bot Framework to enable your bot to prompt the user if the bot detects inactivity and ultimately end the conversation if no user activity after a defined period of time."
Is there anything in V4 or Virtual Assistant that offers similar capability ? If yes any ideas/pointers to document is appreciated.
There isn't anything official for V4 bots like this. I don't believe I've seen anything unofficial, either.
That being said, we generally recommend something like:
On each message, start a synchronous timer. You can do this in the bot, but it would be better to do outside of the bot, like with Azure Functions or something. The rest of this answer will assume the timer is outside of the bot. Ensure the timer also keeps track of the conversationReference related to the timer.
Restart the timer each time the user matching that conversationReference sends a message
Once the timer expires, send an event to the bot with the user and conversation information (maybe through ChannelData), letting the bot know the timer has expired. You could also create a separate endpoint and monitor there, so you don't need the activity scheme; instead of /api/messages, you could use something like /api/expiredTimers.
Once the expired timer event is received, send a proactive message to the user to either 1) see if they're still there, or 2) end the conversation.
I'm looking to have a user type something like
/makemeeting today # 4:00pm
this fires a outgoing webhook, which stores the info, then it fires a incoming webhook which would display a message in a channel saying meeting scheduled, and have two links
yes | no
Here's where I'm stuck. I can do everything up till this point. I'd love for any user to be able to click on one of those links and have it perform another outgoing webhook with the proper response.
I know I can just make those links point to a website, but I'd love to keep it all within slack without having to open a browser.
Is this possible? I swear I've seen yes|no, true|false replies before in other commands and bots, but I might be imagining that.
Any help would be appreciated...
thanks
This isn't supported yet but is on Slack's roadmap for the "near term".
https://trello.com/c/DVrJLbxX/12-interactive-messages
A work around is to add reactions to your message. When the user clicks the reaction (to bump up its count), an RTM event will be dispatched for you to handle: https://api.slack.com/events/reaction_added
An live example can be seen with the Meekan calendar app: https://meekan.com/slack/
So you could have two reactions: thumbs up and a thumbs down. And handle which reaction the user clicked.
I am building a ruby on rails project. it is a portal. I have a situation as follows:
the user browses around. Suddenly he gets a doubt.
I want to keep a small text box and a button that says "call me".
To clarify the doubt the user can enter his phone number in the "call me" box.
now the back office personnel should get an alert or a notification about this.
I tried implementing juggernaut, but became a nightmare since the site is in a shared host and i couldn't configure the port.
a. An ugly solution, with pooling:
Why not make a page that autorefreshes every 1 sec (for the backoffice staff) that just pools the table with customer requests for new data? So, one controller that stores that phone request (the telefone number, etc) and one admin controller that displays unread phone requests from the DB.
It is simple to implement, does not consume too many resources.
b. if you really want something that should 'ring', you can integrate a SMS gateway and send a message to a backoffice phone number.
SO thread about SMS GW
Why not just sending an email to the backoffice?