Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node integrates with the Wassenger WhatsApp API to perform various operations related to WhatsApp messaging and management. Specifically, for the Chat Messages resource with the Edit Message operation, it allows users to update the text content of an existing WhatsApp message by specifying the WhatsApp number (device), the message ID, and the new message text.

This is useful in scenarios where a sent message needs correction or updating without sending a new message, such as fixing typos, updating information, or retracting and replacing content in ongoing conversations.

Practical example:

  • A customer support agent sends a message with incorrect details and wants to edit that message to provide the correct information directly in the chat thread.

Properties

Name Meaning
WhatsApp Number The identifier of the WhatsApp number (device) from which the message was sent.
Message ID The unique hexadecimal ID of the WhatsApp message to be edited.
New Message Text The new text content that will replace the original message's text.

Output

The node outputs JSON data representing the result of the edit message operation. This typically includes confirmation of the updated message or relevant metadata returned by the Wassenger API after editing the message.

If the operation fails, and "Continue On Fail" is enabled, the output JSON will contain an error field with the error message describing what went wrong.

The node does not output binary data for this operation.

Dependencies

  • Requires an active connection to the Wassenger WhatsApp API via an API key credential.
  • The node depends on the Wassenger API being accessible and the provided WhatsApp number and message ID being valid.
  • Proper permissions must be granted to the API key to allow editing messages.

Troubleshooting

  • Common issues:

    • Invalid or expired API key leading to authentication errors.
    • Incorrect WhatsApp number (device) ID or message ID causing "message not found" errors.
    • Attempting to edit messages that are too old or no longer editable per WhatsApp/Wassenger API policies.
    • Network connectivity problems preventing API calls.
  • Error messages and resolutions:

    • "Authentication failed": Verify the API key credential is correct and has necessary permissions.
    • "Message ID not found": Double-check the message ID and WhatsApp number inputs.
    • "Editing window expired": Some messages cannot be edited after a certain time; confirm if the message is still eligible for editing.
    • "Invalid input": Ensure all required fields are filled correctly and conform to expected formats.

Links and References

Discussion