Overview
This node, named "Avito Send Message," is designed to send a message through the Avito platform's messaging system. It requires authentication via a token and targets a specific user and chat by their IDs. This node is useful for automating communication workflows on Avito, such as sending notifications, alerts, or custom messages to users within a chat context.
Practical examples include:
- Automatically sending a welcome message to a new user.
- Notifying a user about a status update related to their listings.
- Sending reminders or promotional messages in a specific chat.
Properties
| Name | Meaning |
|---|---|
| Token | The authentication token used to authorize the API request to Avito. |
| User Id | The identifier of the user who will receive the message. |
| Chat Id | The identifier of the chat where the message will be sent. |
| Message | The content of the message to be sent to the specified user in the specified chat. |
Output
The node outputs a JSON array containing the response from the Avito API after attempting to send the message. This response typically includes details about the success or failure of the message delivery, such as confirmation data or error information.
No binary data output is produced by this node.
Dependencies
- Requires access to the Avito API via an API client (
AvitoApi.sendMessage). - Needs a valid authentication token (API key or similar) to authorize requests.
- No additional environment variables or n8n-specific credentials are explicitly required beyond providing the token as an input property.
Troubleshooting
- Invalid Token or Authentication Failure: If the token is incorrect or expired, the API call will fail. Ensure the token is valid and has the necessary permissions.
- Incorrect User Id or Chat Id: Providing invalid identifiers may result in errors or no message being sent. Verify that the user and chat IDs exist and are correct.
- Empty or Missing Message: Sending an empty message might cause the API to reject the request. Always provide a non-empty message string.
- API Rate Limits or Network Issues: Temporary failures could occur due to rate limiting or connectivity problems. Implement retries or check network status if errors persist.
Links and References
- Avito API Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes