Posts under category Meta & Facebook

I am currently writing a chatbot for WhatsApp. I use the 360dialog platform, which makes it possible to work with the WhatsApp Business API.

When the client sends a message, I see the following JSON object in the logs of my application:

{     "messages": [         {             "from": "77773336633",             "id": "ABGGd3c1cGY_Ago61ytHsZknvtLv",             "image": {                 "id": "ffd23134-2dae-4fed-b5f8-0ce7867b6ddd",                 "mime_type": "image/jpeg",                 "sha256": "bd02100d961b5a1dbaae1dd645485ebbfeda77b44e82c015f1cf29b05654ccb9"             },             "timestamp": "1605703542",             "type": "image"         }     ],     "contacts": [         {             "profile": {                 "name": "Nurzhan Nogerbek"             },             "wa_id": "77773336633"         }     ] } 

I can't find any information in the documentation about how to download this file. In my case, I want to upload this image file that the client sends to my file storage. Please tell me which URL method from the WhatsApp API is responsible for this mechanism?

P.S. At the same time, I can send files to clients. This information is available on the official documentation.

We are building a e-retail bot on WhatsApp platform. I would like to understand if there is a possibility to integrate the Whatsapp Business Api with the product catalog option they provide in the WhatsApp for Business App.


WhatsApp Business API - https://www.whatsapp.com/business/api/?lang=en

WhatsApp for Business - https://www.whatsapp.com/business


The flow that I am looking for is

  1. We will list all the products available on the WhatsApp for Business App
  2. Build a conversation bot which uses WhatsApp Business API
  3. Using API from WhatsApp Business API, open a product catalog or send a message with a call to button which will open product description or cart.

Is this something that is possible?

I am trying to send a pdf through WhatsApp Business API that is stored in google drive, but I am receiving an error " 12300 - Invalid Content-Type " can you help me where am I going wrong also, I want to know how to send a pdf in MediaUrl from my local storage. I tried using Twilio Assets but it's also not working. Here is my code:

 static void Main(string[] args) {     var accountSid = " ";     var authToken = " ";     TwilioClient.Init(accountSid, authToken);     ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;     var mediaUrl = new[] {         new Uri("google drive link")     }.ToList();          var messageOptions = new CreateMessageOptions(         new PhoneNumber("whatsapp:+91XXXXXX"));     messageOptions.From = new PhoneNumber("whatsapp:+XXXXXXXX");     messageOptions.Body = "Hello how are you?";     messageOptions.MediaUrl = mediaUrl;     var message = MessageResource.Create(messageOptions);     Console.WriteLine(message.Body);     Console.ReadLine(); } 

I've been checking the documentation about WhatsApp Business API and Twilio Sandbox for Whatsapp and the only way I see to receive messages configuring URL for my application endpoints.

The thing is management and sec won't approve publishing an endpoint on our network to this matter. The acceptable way for them would be consuming messages from a client in the same way one connects to a mail server or any other service.

Is there any documented alternative to using endpoints to MY application?

Thx

Very newbie here and with Wix, it's the first time a client ask me for Wix and he has a special need.

Do you know if it's possible to send a whatsApp or Messenger to the owner of the shop when a new order is coming ? I need this message contain the order item and the address to deliver.

Thanks in advance for your answers.

Have a good day