How to send message with image in chatwoot

Hey , i want to send the message with image for order confirmation in chatwoot ,

now customer number will be new so now will i need to create a contact and also how can i send the message with image ? , cannot find possible attachment body ?

I would normally need to first have a contact and an existing conversation associated with that inbox, and in the case of WhatsApp with an image, the documented Chatwoot approach is to use a template message with template_params, including header.media_url and header.media_type: “image”; additionally, those templates must be pre-approved in WhatsApp Business Manager.

can you share the example payload?

{
“content”: “Hi, your order xxxxx is confirmed. Please wait for further updates.”,
“template_params”: {
“name”: “order_confirmation”,
“category”: “MARKETING”,
“language”: “en”,
“processed_params”: {
“body”: {
“1”: “xxxxx”
},
“header”: {
“media_url”: “https://example.com/order-image.jpg”,
“media_type”: “image”
}
}
}
}

@Burhan_Nathdwara tamy’s payload is right but you need to hit the Chatwoot API directly with an HTTP Request node since the built-in Chatwoot node doesn’t support attachments. POST to /api/v1/accounts/{account_id}/conversations/{conversation_id}/messages with content type multipart/form-data, pass the image as attachments[] and your message as content. create the contact first via /api/v1/accounts/{account_id}/contacts if the number doesn’t exist yet.

The payload doesn’t lie. Like if I’m right :rofl: