Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node interacts with the Evolution API to perform various operations. Specifically, for the 'Chat' resource and 'Update Message' operation, it updates an existing chat message by specifying the instance name, contact number, message ID, and the new message text. This is useful for scenarios where you need to programmatically edit messages in a chat system, such as correcting information or updating content after sending.

Use Case Examples

  1. Updating a chat message to correct a typo.
  2. Changing the content of a previously sent message in a customer support chat.

Properties

Name Meaning
Instance Name The name of the instance where the chat message exists, used to identify the specific chat environment.
Contact The contact number of the recipient or chat participant whose message is to be updated.
Message ID The unique identifier of the message that needs to be edited.
New Message The new text content that will replace the existing message text.

Output

JSON

  • updatedMessage - The updated message object returned from the API after the message has been successfully edited.

Dependencies

  • Requires an API key credential for the Evolution API to authenticate requests.

Troubleshooting

  • If the node throws an 'Unsupported operation' error, verify that the resource and operation names are correctly set to 'Chat' and 'Update Message'.
  • Ensure that the message ID provided exists and belongs to the specified contact and instance; otherwise, the update will fail.
  • Check that the API credentials are valid and have the necessary permissions to update messages.

Links

Discussion