WaAPI icon

WaAPI

Interact with WaAPI API

Actions83

Overview

This node allows sending a text message to a specific chat using the WaAPI service. It is useful for automating WhatsApp messaging workflows, such as sending notifications, alerts, or personalized messages to individual users or groups. For example, you can use it to send a welcome message to new customers, broadcast updates to a group, or reply to a particular message in a chat.

Properties

Name Meaning
Id Instance ID (a numeric identifier for the WaAPI instance to use).
Chat Id The target chat's unique identifier. Format: <countrycode><usernumber>@c.us for individuals or @g.us for groups.
Message The text content of the message to send. Can include mentions like @1234567890 for group chats.
Mentions Optional JSON array of contact IDs to mention in the message. Only works in group chats.
Reply To Message Id Optional message ID to which this message will be a reply. Format: {fromMe}_{chatId}_{messageId}.
Preview Link Boolean flag indicating whether to show link previews in the message. Defaults to true.

Output

The node outputs JSON data representing the result of the send message operation. This typically includes confirmation details such as message ID, status, timestamps, and any metadata returned by the WaAPI service. There is no binary output.

Dependencies

  • Requires an API key credential for authenticating with the WaAPI service.
  • Needs network access to https://waapi.app/api/v1.
  • The node uses the WaAPI REST API to send messages.

Troubleshooting

  • Invalid Chat Id: If the chat ID format is incorrect or the chat does not exist, the API may return an error. Ensure the chat ID follows the correct pattern and the recipient is valid.
  • Missing or Invalid API Key: Authentication errors occur if the API key is missing or invalid. Verify that the API key credential is correctly configured.
  • Message Sending Failures: Network issues or API rate limits might cause failures. Check connectivity and API usage quotas.
  • Mentions Not Working: Mentions only work in group chats and require the mentioned contacts to be included both in the message text and the mentions array.
  • Reply To Message Id Format: Incorrect formatting of the reply message ID can cause errors. Follow the specified format exactly.

Links and References

Discussion