File Attachment on Whatsapp

Hello,

I want to the bot to receive file attachments from the user through the whatsapp channel.
As for my understanding, the attachment entity is not supported on Whatsapp.

Is anyone aware of a solution/workaround to this?

Thanks

Hello Ahmed,

Approach1:

  • WhatsApp supports media files like images, documents, audio, etc., via its Media API.
  • You can capture the media ID when the user sends a file, and then retrieve the file by calling the WhatsApp Media API through a webhook from Kore.ai.
  • This way, the bot receives the media file indirectly, even though the attachment entity itself isn’t supported.

Approach 2:

  • When the user sends an attachment, you can configure your WhatsApp API provider (Infobip, Gupshup, etc.) to call a webhook to your bot with the file metadata (like URL or media ID).
  • Using a script node in your bot, fetch the file from the media URL and process it as needed.

Please try the above mentioned two approaches and let us know if that works for your requirement.

Thank you,
Srujan Madderla
Kore.ai Community Team

1 Like

Thank you @srujan.madderla for your reply.

Pointing to Approach1, where can I find/fetch the media ID of a whatsapp message recieved from a user through a flow node?

@srujan.madderla

Hello Srujan. I would much appreciate your response.

Thanks