Evolution API icon

Evolution API

Interact with Evolution API

Actions114

Chat → Read Messages

AI-generated

Overview

This node interacts with the Evolution API to read chat messages from a specified contact. It is useful for scenarios where you need to retrieve specific messages from a chat instance, such as for message auditing, customer support, or chat history analysis. For example, you can use it to fetch a message by its ID from a particular contact in a chat instance.

Use Case Examples

  1. Retrieve a message by its ID from a contact in a chat instance for customer support review.
  2. Fetch chat messages sent by the instance or received from a contact for auditing purposes.

Properties

Name Meaning
Instance Name The name of the chat instance from which to read messages.
Contact The contact number from which to read the message.
Message ID The unique identifier of the message to be read.
Message Is Mine Boolean indicating if the message was sent by the instance (true) or received from the contact (false).

Output

JSON

  • messageId - The unique identifier of the retrieved message.
  • remoteJid - The contact number associated with the message.
  • fromMe - Indicates if the message was sent by the instance.
  • messageContent - The content of the retrieved message.
  • timestamp - The time when the message was sent or received.

Dependencies

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

Troubleshooting

  • Ensure the instance name and contact number are correctly specified; incorrect values may result in no messages being found.
  • Verify that the message ID exists and is accessible; an invalid or non-existent message ID will cause errors.
  • Check API authentication credentials to avoid authorization errors.
  • Common error: 'Unsupported operation.' indicates the requested operation is not implemented for the specified resource; verify resource and operation names.

Links

Discussion