Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
This node operation allows you to send a text message as a reply or quote to an existing WhatsApp message. The original message will appear quoted above your new text, providing context in the conversation. This is useful for referencing specific messages in a chat, such as replying to a question, clarifying a point, or continuing a discussion thread.
Practical examples include:
- Customer support bots quoting a customer's previous message to maintain context.
- Automated notifications that reference a prior message for clarity.
- Group chat management where replies need to be clearly linked to earlier messages.
Properties
| Name | Meaning |
|---|---|
| To (Contact) | The WhatsApp contact to send the quoted message to. Must be in the format phone_number@s.whatsapp.net (e.g., 551199999999@s.whatsapp.net). |
| Text | The text content of the message you want to send as a reply/quote. |
| Key (JSON) | A JSON object identifying the original message to quote. It must contain the fields: remoteJid (the chat ID), fromMe (boolean indicating if the message was sent by you), and id (the unique message ID). |
| Message (JSON) | A JSON object representing the original message content and metadata to quote. Typically includes the message text and timestamp. |
| Information | Informational notice explaining that this operation sends a text message quoting an existing WhatsApp message, requiring the original message key and message object usually obtained from webhook events. |
Output
The output contains a JSON object representing the result of sending the quoted message. This typically includes confirmation details such as message IDs, status, timestamps, or any response data returned by the WhatsApp service.
If the node supports binary data output (not explicitly indicated here), it would represent media content related to the message, but for this operation, the focus is on text message quoting.
Dependencies
- Requires an active connection to the MegaAPI WhatsApp service.
- Needs valid API credentials including a host URL and an authentication token configured in n8n credentials.
- The original message key and message objects are typically obtained from WhatsApp webhook events or previous node executions.
Troubleshooting
- Invalid Contact Format: Ensure the "To (Contact)" property uses the correct format (
phone_number@s.whatsapp.net). Incorrect formatting will cause message sending failures. - Missing or Malformed Key/Message JSON: The "Key (JSON)" and "Message (JSON)" properties must be valid JSON objects with required fields. Invalid JSON or missing fields will result in errors identifying the message to quote.
- API Authentication Errors: Verify that the API credentials are correctly set up and have not expired.
- Message Not Found: If the message key does not correspond to an existing message, the quote operation will fail.
- Network Issues: Connectivity problems with the MegaAPI service can cause timeouts or failures.
Common error messages will relate to invalid parameters, authentication failures, or message identification issues. Reviewing the input properties and ensuring they match expected formats usually resolves these errors.
Links and References
- WhatsApp Message Quoting Concept
- MegaAPI WhatsApp service documentation (refer to your service provider's official docs for detailed API usage)