send_conversation_media sends an image, video, or PDF inside an open customer service window. The assistant does not generate the file. You provide a file you already have. A closed window returns WINDOW_CLOSED before WhatsApp is called, and the assistant uses an approved template instead. A PDF caption is stored with the message and sent to WhatsApp.
Ask this
What the assistant calls
1
Read the file rules
get_media_guidelines runs before the upload. HTML, SVG, scripts, and executables are rejected. A partial or cut-off file is rejected and is not a media id.2
Upload
upload_media hosts the file. Pass a public https URL or one complete base64 value up to 5 MB, plus mimeType and filename when you have them.3
Send in the thread
send_conversation_media takes the conversation id, mediaType of image, video, or document, and mediaUrl from the upload or a complete mediaBase64. A public URL is sent as a link. The caption is optional for an image, a video, and a PDF. A closed window is refused before the file is sent. The assistant sends it only after you ask.
