Overview
The node "Wuzapi Chat" enables interaction with the Wuzapi WhatsApp API to perform various chat-related operations. Specifically, the React to Message operation allows users to send emoji reactions to specific WhatsApp messages or remove existing reactions.
This operation is useful in scenarios where you want to automate message engagement, such as acknowledging receipt of a message, expressing sentiment quickly, or managing reactions programmatically without manual intervention.
Practical example:
- Automatically react with a thumbs-up emoji (👍) to all incoming messages from a particular contact to confirm they were seen.
- Remove a reaction by sending an empty emoji string if a previous reaction was sent in error.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The phone number associated with the message to react to. Can be prefixed with "me:" to indicate your own message. Example: 5491155553934 or me:5491155553934. This identifies the sender or owner of the message. |
| Reaction | The emoji character(s) to use as a reaction. Leave empty to remove any existing reaction. Examples: ❤️, 👍, 😂. |
| Message ID | The unique identifier of the message to which the reaction will be applied. Prefix with "me:" for your own messages. Example: me:3EB06F9067F80BAB89FF. |
Output
The output JSON contains the response from the Wuzapi WhatsApp API after attempting to react to the specified message. It typically includes confirmation details about the reaction action performed.
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the Wuzapi WhatsApp API via an API key credential configured in n8n.
- The node uses the
/chat/reactendpoint of the Wuzapi API to send or remove reactions. - Proper permissions and valid message IDs are necessary to successfully react to messages.
Troubleshooting
Common issues:
- Invalid or missing message ID: The API will fail if the message ID does not exist or is incorrectly formatted.
- Incorrect phone number format: Ensure the phone number is correct and uses the
"me:"prefix when reacting to your own messages. - Missing or invalid API credentials: The request will fail if the API key is not set up or has expired.
- Empty reaction string: Sending an empty string removes the reaction; ensure this is intentional.
Error messages:
"Message not found": Verify the message ID and phone number are correct."Unauthorized"or"Invalid API key": Check that the API key credential is properly configured."Reaction not allowed": Some messages may not support reactions depending on their state or type.
Resolving these usually involves verifying input parameters and ensuring the API credentials are valid and have sufficient permissions.
Links and References
- Wuzapi WhatsApp API Documentation (for detailed API endpoints and usage)
- WhatsApp Message Reactions Overview (general info on reactions in WhatsApp)