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

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.

Related

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 can i send a message to whatsapp group?

I need to send a message to WhatsApp group, Is it possible with Twilio? Thanks for the help
No I don't think they do
one of the faq here
Can I send messages to WhatsApp groups or manage groups?
WhatsApp deprecated the Groups API in April 2020. Twilio offers a group messaging solution using the Conversations API. You may reference this sample code in CodeExchange: WhatsApp Group Messaging. For more info, please refer to Twilio Conversations.
But with Twilio's Conversations API, you can implement group chats in WhatsApp, a feature that is not offered natively in WhatsApp's API.

How can I reply to a specific message with Twillio API?

I am developing an integration service with twillio api and i need to have the lability to replay to a specific message, same as sliding the message to the left on the app.
thanks.
Twilio developer evangelist here.
As far as I can see, the WhatsApp messaging API does not support responding to a particular message. You can check their messaging API reference here. Consequently, the Twilio API for WhatsApp also does not support replying to a specific message.

Twilio integrate whatsapp using conversation

Is it possible to use conversation provided by twilio and add whatsapp number as an SMS participant? I tried using conversation to integrate slack but not sure how to replicate for whatsapp.
There is documentation showing how to add a WhatsApp user into a Twilio Conversation.
Conversation Participant Resource
https://www.twilio.com/docs/conversations/api/conversation-participant-resource
The WhatsApp syntax is to prefix the number with whatsapp:, such as shown here.
https://www.twilio.com/docs/sms/whatsapp/api

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