Overview
This node sends a photo message through the Avito platform by using provided authentication and target identifiers. It is useful for automating the process of sending images to specific users or chats within Avito, such as in customer support, marketing campaigns, or notifications that require visual content.
For example, you can use this node to send a product image directly to a user or group chat on Avito, streamlining communication without manual intervention.
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 photo message. |
| Chat Id | The identifier of the chat where the photo message will be sent. |
| Image | The identifier of the image to be sent as a photo message. |
Output
The node outputs a JSON array containing the response from the Avito API after attempting to send the photo message. This response typically includes details about the success or failure of the operation, such as message IDs or error information.
No binary data output is produced by this node.
Dependencies
- Requires access to the Avito API via an API client (
AvitoApi) which must be properly configured. - An API token (authentication credential) is necessary to authorize requests.
- The node depends on the external
AvitoApi.sendPhotoImagemethod to perform the actual sending of the photo message.
Troubleshooting
- Invalid Token: If the token is incorrect or expired, the API call will fail. Ensure the token is valid and has the required permissions.
- Incorrect User Id or Chat Id: Providing wrong identifiers may result in errors or messages not being delivered. Verify these IDs before running the node.
- Invalid Image Id: If the image ID does not correspond to an existing image, the API will likely return an error.
- API Errors: Network issues or API downtime can cause failures. Check connectivity and Avito service status.
- Empty Parameters: Supplying empty strings for required parameters will cause the node to fail. Make sure all required fields are filled.
Links and References
- Avito API Documentation (general reference for API usage)
- n8n documentation on Creating Custom Nodes