Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

The node enables editing an existing message in a WhatsApp chat via the Wappfy API. It allows users to update the text content of a specific message identified by its message ID within a particular chat.

This operation is useful when you need to correct or update information sent in a message, such as fixing typos, updating details, or clarifying previous communication without sending a new message.

Practical example:
You sent a message with incorrect meeting time and want to update it to the correct time without spamming the chat with a follow-up correction message.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the message exists (e.g., 123456789@c.us).
Message ID The unique identifier of the message to be edited within the specified chat.
New Text The new text content that will replace the current message text.

Output

  • The output JSON contains the response from the Wappfy API after attempting to edit the message.
  • Typically, this includes confirmation of the edit operation or details about the updated message.
  • No binary data is involved in this operation.

Dependencies

  • Requires connection to the Wappfy API service.
  • An API key credential for authenticating requests to the Wappfy API must be configured in n8n.
  • The node uses the base URL and instance name from the credentials to construct API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID or Message ID will cause the API request to fail.
    • Insufficient permissions or expired session may prevent editing messages.
    • Network connectivity issues can cause request failures.
  • Error messages:

    • "Message not found": Verify that the provided Message ID exists in the specified chat.
    • "Unauthorized" or "Invalid API key": Check that the API key credential is correctly set up and valid.
    • "Chat not found": Confirm the Chat ID is correct and accessible by the session.
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Ensure the API key and session are active and authorized.
    • Review API limits or restrictions imposed by the Wappfy service.

Links and References

Discussion