Actions64
- Instancia Actions
- Mensagem Actions
- Grupo Actions
- Chat Actions
- Perfil Actions
- Evento Actions
- Integração Actions
Overview
This node, named "Evolution API," allows users to interact with the Evolution API service. Specifically, for the Resource "Chat" and Operation "Procurar Chats" (Find Chats), it enables searching or retrieving chat messages based on specified parameters such as instance name, contact number, message ID, pagination page, and number of chats per page.
Common scenarios where this node is beneficial include:
- Retrieving chat history for a specific contact within an instance.
- Paginating through chat messages to analyze conversations.
- Integrating chat data retrieval into automated workflows for monitoring or reporting.
For example, a user can input the instance name and contact number along with a message ID to find particular chat messages, optionally controlling pagination to fetch results in batches.
Properties
| Name | Meaning |
|---|---|
| Nome Da Instância | The name of the instance where the chat is located. |
| Contato | The contact's phone number to search chats for. |
| ID Da Mensagem | The specific message ID to locate within the chats. |
| Página | The page number for paginated results (default is 1). |
| Quantidade Por Página | Number of chat entries to return per page (default is 10). |
Output
The node outputs a JSON array containing the chat data retrieved from the Evolution API based on the input parameters. Each item in the array represents a chat message or chat record matching the search criteria.
If the node supports binary data output (not explicitly shown in the provided code), it would typically represent media or attachments related to chats, but no binary output details are evident here.
Dependencies
- Requires an API key credential for authenticating with the Evolution API service.
- The base URL for requests is set to
https://doc.evolution-api.com/api-reference. - No additional external dependencies are indicated beyond the Evolution API itself.
Troubleshooting
- Operation Not Supported Error: If you select an unsupported operation for a resource, the node throws an error stating the operation is not supported. Ensure that the operation "Procurar Chats" is correctly selected under the "Chat" resource.
- Missing Required Parameters: The properties "Nome Da Instância," "Contato," and "ID Da Mensagem" are required. Omitting these will likely cause errors or empty results.
- API Authentication Issues: Make sure the API key credential is correctly configured and valid; otherwise, authentication errors may occur.
- Pagination Parameters: Providing invalid values for "Página" or "Quantidade Por Página" (e.g., negative numbers) might result in unexpected behavior or errors.
Links and References
- Evolution API Documentation (official API reference)
- n8n Documentation on Creating Custom Nodes