Overview
This node, named "Avito Read Chat," is designed to retrieve chat messages from the Avito platform. It fetches the conversation data for a specific chat identified by user and chat IDs using an API token for authentication. This node is useful in scenarios where you want to automate the retrieval of chat history or monitor conversations on Avito, such as integrating chat data into CRM systems, analytics dashboards, or customer support workflows.
Properties
| Name | Meaning |
|---|---|
| Token | The API authentication token used to authorize requests to the Avito service. |
| User Id | The identifier of the user whose chat you want to read. |
| Chat Id | The identifier of the specific chat conversation to retrieve messages from. |
Output
The node outputs a JSON array containing the chat data retrieved from Avito. Each element in the array represents a message or relevant chat information returned by the API. The exact structure depends on the Avito API response but typically includes message content, timestamps, sender details, etc.
No binary data output is indicated.
Dependencies
- Requires access to the Avito API.
- Needs a valid API token (authentication credential) to authorize requests.
- The node uses an internal helper method to call
readChatfrom the Avito API client module.
Troubleshooting
- Invalid or missing token: If the API token is incorrect or not provided, the node will fail to authenticate. Ensure the token is valid and correctly entered.
- Incorrect User Id or Chat Id: Providing wrong identifiers may result in empty responses or errors. Verify these IDs correspond to existing users and chats.
- API connectivity issues: Network problems or Avito API downtime can cause request failures. Check network status and retry later.
- Unexpected API response: If the API changes or returns unexpected data, the node might not parse it correctly. Review API documentation and update the node if needed.
Links and References
- Avito API Documentation (general reference for API usage)
- n8n Documentation on Creating Custom Nodes