Extract phone number of whatsapp message by means of Twilio integration a Dialogflow - twilio

I have a chatbot in Dialogflow integrated with Twilio that can be accessed through WhatsApp.
I need extract the number of the user who communicates with the bot, to search the database if it is registered.

Related

Can i directly send message to recipient using Twilio WhatsApp api without using join [key-word]. Is it because of Twilio Sandbox?

Can I directly send message to recipient using Twilio WhatsApp api without using join [key-word].
Is it because of Twilio Sandbox?
If I send request to enable my Twilio number of WhatsApp, issue will get resolved and I can send messages directly?
The join [key-word] system is just for the Twilio Sandbox for WhatsApp. It allows Twilio to use one WhatsApp number for all accounts that are testing with the Sandbox.
Once you have connected your Twilio number to your WhatsApp business profile you will be able to send messages to your users without requiring them to message you first. Note that WhatsApp does still require an explicit opt-in from your users before you can send to them. Also, for initiating conversations you will need to get template messages approved and then use the template as the first message. But the technical barrier of the join message will not be in your way.

Twilio WhatsApp - Already bought phone number and creating messages

To send an SMS we can do:
await twilio.messages.create({
to: "07888888888",
from: twilioMessagingServiceSid,
body: "Body of message",
});
When using Whatsapp is it possible to do the same in the from parameter as in passing the twilio messaging service sid?
I would like to be able to support both SMS and WhatsApp for our customers using the same phone number that is already in use for SMS messaging.
Twilio developer evangelist here.
You can enable your Twilio number to send WhatsApp messages as well as SMS messages. There are a few steps to go through, at a high level they look like this:
Request access to enable your Twilio numbers for WhatsApp
Submit a WhatsApp Sender request in the Twilio console
Approve Twilio to message on your behalf in the Facebook Business Manager console
Submit your Facebook Business Manager account for Business Verification
(Twilio completes your WhatsApp Sender registration)
The full instructions to connect your Twilio number to your WhatsApp Business Profile are available in the documentation here.
Once you have done that, you can add your WhatsApp enabled number to the messaging service. Then, when you send a message to a WhatsApp number you can use the messaging service as the from and a WhatsApp number as the to.

How to build Conversational IVR with microsoftbot framework using Twilio

I want to connect Microsoft chatbot to twilio , whenever user makes a call to twilio number it internally needs to connect to Chat bot and return response to user via twilio .
How can i achieve this ?
I tried this link but it only works for SMS but I want IVR bot
bot details - Deployed in Azure ,.net core(v4)

How to send hero card from bot framework to WhatsApp by Twilio WhatsApp API

I'm currently using Twilio WhatsApp API and Bot Framework Direct Line channel to try integrating my chatbot to WhatsApp.
Since my chatbot conversation is guided, a lot of PromptDialog.Choices messages are used (which is a hero cards). Is there a way to send these messages as their expected form (meaning with buttons for clicking) to Whatsapp using Twilio WhatsApp API ?
Twilio developer evangelist here.
Currently the Twilio API for WhatsApp doesn't support media. This is being developed.
However, the WhatsApp API itself doesn't support the concept of a hero card or buttons for responding to messages.

Twilio whatsapp integration

Is it possible to send/receive SMS from whatsapp using twilio number? Anybody tried twilio with whatsapp? I asked customer care, if it is possible, he said, not sure but many people asked about that.
In case anyone else lands here, Twilio just released a WhatsApp integration via their new Business API
https://www.twilio.com/whatsapp
Twilio developer evangelist here.
Whatsapp do not have an API, so it is not possible to send or receive messages to Whatsapp using the Twilio API either.
If you are looking to send and receive messages to services like Whatsapp, then you might be interested in Twilio Channels. Channels are the various APIs that we are integrating into the one Twilio API so it's easy for you to send to all these third party services.
Channels lets you send and receive messages to services like:
Facebook
Slack
HipChat
Line
SendGrid (for email)
Twitter
Amazon Alexa
Viber
And will be supporting the following soon:
WeChat
Kik
BBM
You can sign up for early access to Channels here: https://www.twilio.com/marketplace/channels

Resources