Could someone point me to documentation or an example of how to retrieve images sent in a WhatsApp message? The message arrives as an “albumMessage,” meaning it contains multiple images, but the “Base64” field is missing for all of them. An AI query indicates that this type of message triggers webhook events based on the number of images. However, in my tests, even in production, only one webhook execution is received by n8n when the message is sent. Could someone tell me if there’s an example or any extra configuration that needs to be done? I want to retrieve all the sent images along with their descriptions.
welcome @Kelcyo
WhatsApp never sends image data directly in the webhook, you’ll always have to retrieve them apart. first one is to extract the media IDs from the webhook payload, each image in the album has its own image.id field and the second one is to fetch each image using two HTTP Request calls, first get the temporary download URL from graph.facebook.com/v18.0/{MEDIA_ID}, then download the actual image from that URL, both calls need your Bearer token.
The lack of the Base64 and that one webhook is all normal as well, that is how the WhatsApp Cloud API is working.
@Kelcyo Welcome to the community.
WhatsApp usually does not send image base64 directly in the webhook.
For albumMessage, you typically receive one webhook with multiple media references/IDs, then you must download each image separately via API.
Check the official media docs for your provider/API:
So the flow is usually:
Webhook → extract media IDs → loop → download each image
albumMessage = Evolution API/Baileys, not WA Cloud API. Albums fire one parent event + child messages.upsert events ms apart, so n8n’s webhook only catches the first when dedupe is on.
Fix: query children via /chat/findMessages/{instance} filtering where:{key:{id: parentId}}, then loop and POST each to /chat/getBase64FromMediaMessage/{instance}.
Flow: Webhook → HTTP (findMessages) → SplitInBatches → HTTP (getBase64). Caption lives on the first child’s message.imageMessage.caption.
I am currently using the Evolution API, and I have also used Evolution Go, but I haven’t tested the WA Cloud API yet.Could you provide me with a sample, as I am a beginner and want to understand this workflow?I would also appreciate it if you could recommend the best API (Evolution API/ Evolution Go/ WA Cloud API) that could make my life easier for this.Thank you in advance for your attention.
Hey @Kelcyo Just to clarify, the advice about fetching images from `graph.facebook.com` applies to the WhatsApp Cloud API, which you’re not using. Since you’re on Evolution API, the setup is a bit different.
(post deleted by author)