Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Message → Send Reply

AI-generated

Overview

This node enables sending a reply message to an existing WhatsApp message using the Wappfy API. It is useful in scenarios where you want to programmatically respond to a specific message within a chat, maintaining the context of the conversation. For example, a customer support bot can reply directly to a user's query message, or an automated system can acknowledge receipt of a command by replying to the original message.

Properties

Name Meaning
Chat ID The identifier of the chat where the reply will be sent. Examples: 123456789@c.us (direct chat), 123456789@g.us (group chat).
Text The text content of the reply message to send.
Reply To Message ID The ID of the message to which this reply is directed. This links the reply to the original message.

Output

The node outputs the JSON response returned by the Wappfy API after sending the reply message. This typically includes details about the sent message such as its ID, timestamp, status, and any metadata provided by the API. The output is structured as a JSON object under the json field.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Wappfy API credential configured in n8n with:

    • Base URL of the Wappfy API.
    • Instance name identifying the WhatsApp session.
    • An API key for authentication.
  • The node makes HTTP POST requests to the Wappfy API endpoint /api/sendReply.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Reply To Message ID will cause the API to reject the request.
    • Incorrect API credentials or instance name will result in authentication errors.
    • Network connectivity problems may prevent reaching the Wappfy API.
  • Error messages:

    • "Invalid chat ID" or "Chat not found": Verify the chat ID format and that the chat exists.
    • "Message to reply to not found": Ensure the Reply To Message ID is correct and belongs to the specified chat.
    • "Authentication failed": Check API key and instance name configuration.
    • "Request timed out" or network errors: Confirm internet connection and API availability.
  • Resolution tips:

    • Double-check all required fields are correctly filled.
    • Validate API credentials in n8n settings.
    • Test connectivity to the Wappfy API outside n8n if needed.

Links and References

Discussion