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 messages.
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 timeouts or failures. Check network status and retry.
- Empty Message: Sending an empty message might be rejected by the API. Always provide meaningful message content.
Common error messages might include authorization failures, resource not found, or validation errors. Reviewing the API response details can help identify the exact issue.
Links and References
- Avito API Documentation (general reference for API usage)
- n8n documentation on creating custom nodes: https://docs.n8n.io/integrations/creating-nodes/