Actions15
- Instância Actions
- Mensagem Actions
- Botões Actions
- Webhook Actions
Mensagem → Enviar Texto
AI-generatedSummary
Sends a plain text WhatsApp message through a W-api instance by POSTing to /message/sendText/{instanceName}, with optional delay, quoting, mention and link-preview settings.
Inputs
- instanceName (required) — Name of the W-api instance used to send the message. It is placed in the request URL.
- number (required) — Recipient number with country code and area code, with no + or spaces (e.g. 5521999999999).
- text (required) — Body of the message (multi-line text field).
- sendOptions — Optional collection whose set fields are merged into the request body. Fields: delay (ms to wait before sending), quotedMessageId (message to reply to), quotedFromMe (whether the quoted message was sent by this instance), quotedText (preview text of the quoted message), mentionAll (mention all participants when the target is a group), mentionNumbers (numbers to mention, separated by comma, space or semicolon), previewLink (turn automatic link preview on or off, default true). Empty-string, null and undefined values are dropped before sending.
Output shape
One output item per input item. Its json is the parsed JSON response from the W-api server for the send request.
The exact response fields depend on the W-api server and aren't defined in the node. The node authenticates with the
wapiApicredential (baseUrl and apiKey sent as anapikeyheader). If Continue On Fail is enabled, a failed item returns{ error: message }instead of stopping the workflow.
Examples
Example 1: Send an order confirmation to a customer's WhatsApp number.
instanceName=minha-loja, number={{$json.phone}}, text='Seu pedido foi confirmado!'
Example 2: Reply to a specific earlier message, with a short delay and no link preview.
Set number and text, then in Opcoes de Envio set quotedMessageId, quotedText, delay=2000 and previewLink=false.
Example 3: Notify a group and mention specific people.
number=group ID, text='Reunião às 15h', sendOptions.mentionNumbers='5521999999999, 5521888888888'