CRM Grape icon

CRM Grape

Integração completa com CRM Grape - Envie mensagens, gerencie contatos, tickets, tags, kanban e consultas. Compatível com Agentes IA (Tool).

Mensagem → Enviar Mídia

AI-generated

Summary

Sends a media file (image, document, audio, voice note or video) from a URL into a CRM Grape ticket conversation by posting a send_media action to the CRM's n8n webhook.

Inputs

  • ticketId (required) — ID of the Grape ticket that will receive the media.
  • mediaUrl (required) — URL of the media file to send (image, document, audio or video).
  • mediaType — One of image, document (default), audio (sent as an audio file, appears as forwarded), voice (PTT voice message with waveform) or video.
  • caption — Optional caption for the media. Sent as an empty string if left blank.
  • filename — Optional file name. Sent as an empty string if left blank.

Output shape

One output item per input item, containing the JSON response returned by the Grape webhook (normalized to an array of items, each linked to its input item).

The response structure depends on the Grape API and is not defined in the node. Requires grapeApi credentials (baseUrl and webhookToken). Errors are mapped to readable Portuguese messages (401 invalid token, 403 not allowed, 400 invalid data, 404 not found, 500 server error). With Continue On Fail enabled, a failing item returns {error: message} instead of stopping the workflow.

Examples

Example 1: Send a PDF invoice to a customer's ticket after generating it.

ticketId = {{$json.ticket_id}}, mediaUrl = invoice URL, mediaType = Documento, filename = invoice.pdf, caption = 'Segue sua fatura'.

Example 2: Reply with a pre-recorded voice message that appears as a live recording.

ticketId = ticket ID, mediaUrl = audio file URL, mediaType = Voz (PTT).

Example 3: Send a product image with a caption.

ticketId = ticket ID, mediaUrl = image URL, mediaType = Imagem, caption = 'Novo produto'.

Links

Discussion