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
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: