Overview
This node, named "Avito Send Message," is designed to send a message through the Avito platform. It requires authentication via a token and targets a specific user and chat by their IDs. The node is useful for automating communication workflows on Avito, such as sending notifications, alerts, or custom messages to users within chats.
Practical examples include:
- Sending automated responses to customer inquiries.
- Notifying users about updates or promotions.
- Integrating Avito messaging into broader automation pipelines.
Properties
| Name | Meaning |
|---|---|
| Token | An 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 text 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. The output does not include binary data.
Example output structure (simplified):
[
{
"status": "success",
"messageId": "1234567890",
"details": "Message sent successfully"
}
]
Dependencies
- Requires an active internet connection to communicate with the Avito API.
- Needs a valid authentication token (API key or similar) to authorize requests.
- The node depends on an external module (
AvitoApi) that handles the actual API call to send the message.
Troubleshooting
- Invalid Token: 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 messages not being delivered. Verify these IDs before use.
- Network Issues: Connectivity problems can cause the node to fail. Check your network connection and retry.
- API Rate Limits: Excessive requests might be throttled by Avito. Implement retries with backoff if needed.
Common error messages might include authentication failures or resource not found errors, which usually indicate issues with the token or IDs provided.
Links and References
- Avito Official Website
- Refer to Avito's API documentation for detailed information on authentication and messaging endpoints (not included here).