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 'Read Messages' operation, it reads messages from a chat instance. This is useful for scenarios where you want to retrieve message details from a specific contact in a chat instance, such as for monitoring conversations or processing chat data.

Use Case Examples

  1. Retrieve a message by its ID from a specific contact in a chat instance.
  2. Check if a message was sent by the instance or received from a contact.

Properties

Name Meaning
Instance Name The name of the chat instance to interact with.
Contact The contact number from which to read the message.
Message ID The unique identifier of the message to be read.
Message Is From Me Indicates if the message was sent by the instance (true) or received from the contact (false).

Output

JSON

  • messageId - The unique identifier of the message read.
  • remoteJid - The contact number associated with the message.
  • fromMe - Boolean indicating if the message was sent by the instance.
  • messageContent - The content of the message read from the chat.

Dependencies

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

Troubleshooting

  • Common issues include providing incorrect instance name, contact number, or message ID, which may result in errors or no data returned.
  • If the API key credential is missing or invalid, authentication errors will occur.
  • Ensure the 'Message Is From Me' boolean is correctly set to reflect the message direction to avoid confusion in message processing.

Discussion