Doubt in sending images in whatsapp

i created same post again because i didn’t get any solution or replay for my first post
Hi I can send images in web channel using message node its working perfectly

but in whatsApp its only sending URL only

i want to display the image in whatsApp chat window, how to do that?

Hello Vignesh,

Thank you for reaching out to Kore.ai Community.

Please note,if you’re using JavaScript to send messages (whether plain text or templates), We need to include the endpoint in the payload.

As per the infobip documentation we can find the outbound API templates for WhatsApp here.

Payload given in the documentation for WhatsApp image:{"from": "441134960000","to": "441134960001","messageId": "a28dd97c-1ffb-4fcf-99f1-0b557ed381da","content": {"mediaUrl": "http://example.com/image"},"callbackData": "Callback data","notifyUrl": "https://www.example.com/whatsapp"} 

To implement this functionality using advanced JavaScript, we need to extract the content section from the above payload and include it in the below provided code snippet. Please ensure that you provide the infobipWhatsAppMessageEndpoint.

var msg = {"infobipWhatsAppMessageEndpoint": "/whatsapp/1/message/image","mediaUrl": "https://virtualassistant-koreai-prd.s3.us-east-1.amazonaws.com/publico/MAVI.png","caption": "¡Hola! Soy Jésika, tu asistente virtual. Estoy aquí para ayudarte a crear tu negocio propio de belleza 😊."}print(JSON.stringify(msg));

Attaching the screenshot of the results below for your reference:

Input code given in the message node:

Output/Result:

Hope this information and helps and resolves your query.

please let me what went wrong here, i did the same what you said but i am not getting any response from in the whats please refer to my screenshot

this is infobip whatsapp chat log snapshot

Hi @srujan.madderla, could you please tell me what i did wrong here

Hello Vignesh,

Please allow me sometime.
i will check and revert back to you.

Thank you,
Srujan Madderla

1 Like