MEGA icon

MEGA

Manage conversations, contacts, WhatsApp, Kanban CRM and Captain AI in MEGA

Actions417

Outbound Message → Send

AI-generated

Summary

Send an outbound message via MEGA using a specified account and inbox, supporting text messages, media files, or WhatsApp templates.

Inputs

  • Account (required) — Select the MEGA account to send the message from, either from a list or by ID.
  • Inbox (required) — Select the inbox within the chosen account to send the message, either from a list or by ID.
  • Message Kind (required) — Choose the type of message to send: 'text', 'media', or 'WhatsApp template'.
  • Recipient Type (required) — Specify the identifier type for the recipient, such as phone number, email, contact ID, or source ID.
  • Recipient (required) — Provide the recipient's identifier value corresponding to the chosen recipient type.
  • Recipient Name — Optional name for the recipient used when MEGA creates a new contact.
  • Content (required) — Text content of the message when sending a text message type.
  • Input Data Field Name (required) — Name of the input binary field containing the media file to send when message kind is 'media'.
  • Caption — Optional caption text to include with the media file.
  • Template (required) — Select the WhatsApp template to use when sending a WhatsApp template message.
  • Template Content (required) — Provide values for the placeholders defined in the selected WhatsApp template.
  • Idempotency Key — A stable key used to make message retries safe, auto-generated by default.
  • Additional Fields — Optional extra fields such as JSON content attributes or subject when sending text messages.

Output shape

a single record containing the API response to the sent message request

The output varies depending on the message kind. Text and template messages send content directly. Media messages require a named binary input field for the file. The operation includes idempotency to safely handle retries.

Links

Discussion