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 where messages need to be sent programmatically to users on Avito, such as customer support follow-ups, notifications, or marketing messages.
Practical examples include:
- Sending a confirmation message to a user after they perform an action.
- Automating responses in a chat with a specific user.
- Broadcasting updates or alerts to a particular chat session.
Properties
| Name | Meaning |
|---|---|
| Token | The authentication token used to authorize the API request to Avito. |
| User Id | The identifier of the user to whom the message will be sent. |
| Chat Id | The identifier of the chat session where the message should be delivered. |
| Message | The content of the message to be sent to the specified user and 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 status codes or confirmation data.
No binary data output is produced by this node.
Dependencies
- Requires access to the Avito API via an external service.
- Needs a valid authentication token (API key or similar) to authorize requests.
- The node depends on an internal
AvitoApi.sendMessagemethod to perform the actual API call.
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.
- Empty Message: Sending an empty message might cause the API to reject the request. Always provide meaningful message content.
- Network Issues: Connectivity problems can prevent the API call from succeeding. Check network settings and retry if needed.
Common error messages will likely relate to authorization failures, invalid parameters, or connectivity issues. Reviewing the API response included in the output can help diagnose these problems.
Links and References
- Avito API Documentation (general reference for API usage)
- n8n documentation on creating custom nodes and handling API integrations