Actions6
- Mensagem Actions
- Conversa Actions
Mensagem ā Enviar Imagem
AI-generatedOverview
This node enables Instagram automation actions focused on messaging, including sending images via direct message (DM) on Instagram. Specifically, the 'Enviar Imagem' operation allows users to send an image to a specified Instagram user by providing a public HTTPS URL of the image. The node handles the API communication with Instagram's Graph API to deliver the image message. This is useful for automating customer engagement, marketing campaigns, or personal communication on Instagram by sending images directly to users.
Use Case Examples
- Sending a promotional image to a customer via Instagram DM using a hosted image URL.
- Automating the delivery of product images to Instagram users who inquire about products.
- Sending event or announcement images to followers automatically.
Properties
| Name | Meaning |
|---|---|
| User ID (Instagram) | The Instagram User ID of the message recipient. This is required to specify who will receive the image message. It can be dynamically set from webhook data or manually provided. |
| URL da Imagem | The public HTTPS URL of the image to be sent. The image must be in PNG or JPEG format, up to 8MB in size, and accessible without login. This URL is used by Instagram to download and send the image. |
Output
JSON
success- Indicates if the image was sent successfully (true or false).message_id- The ID of the sent message returned by Instagram API.recipient_id- The Instagram User ID of the recipient who received the image.type- The type of message sent, which is 'image' for this operation.image_url- The URL of the image that was sent.
Dependencies
- Instagram Graph API
Troubleshooting
- Ensure the User ID is valid and not empty; otherwise, the node will throw an error indicating an invalid User ID.
- The image URL must be HTTPS, publicly accessible, and the image size must not exceed 8MB. Non-compliance will cause sending errors.
- If the node attempts to send a message to the Instagram User ID of the authenticated account itself, it blocks the action to prevent infinite loops.
- Common API errors include invalid access tokens or permissions issues; verify that the Instagram API credentials are correct and have the necessary permissions to send messages.
- If the image sending fails, check the error message returned by the Instagram API for details, such as unsupported image format or URL accessibility issues.
Links
- Instagram Messaging API Guide - Official documentation for Instagram Messaging API, explaining how to send messages including images.
- Instagram User Messages API - Details on the Instagram Graph API endpoint used to send messages to users.