Actions75
- Channel Actions
- Chat Actions
- Client Actions
- Contact Actions
- Group Chat Actions
- Message Actions
- Session Actions
Client → Send Message
AI-generatedSummary
Send a WhatsApp message.
Inputs
- sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
- chatId (required) — The chat ID. Use number@c.us for individuals or number@g.us for groups.
- contentType (required) — The type of message content to send.
- content (required) — The text content of the message.
- contentJson (required) — The content object (media, location, contact, or poll). See API docs for the expected structure.
- quotedMessageId — Message ID to quote/reply to.
- mentions — Comma-separated list of contact IDs to mention.
- sendSeen — Whether to mark the chat as seen after sending.
Output shape
A single record merging the input JSON with the API response, containing fields such as success and a message object (id, from, to, body, timestamp, type, etc.).
Returns the sent message details; on error the workflow may throw unless continueOnFail is enabled.
Examples
Example 1: Send a simple text Hello to a user.
resource=client, operation=sendMessage, sessionId=default, chatId=1234567890@c.us, contentType=string, content=Hello
Example 2: Send an image using base64 via contentJson.
resource=client, operation=sendMessage, contentType=MessageMedia, contentJson={"media":"base64string"}, chatId=1234567890@c.us
Example 3: Send a message with mentions and quote another message.
resource=client, operation=sendMessage, chatId=1234567890@c.us, content=Check this out, mentions=1234567890@c.us,9876543210@c.us, quotedMessageId=9876543210@c.us_123