Actions6
- Mensagem Actions
- Conversa Actions
Mensagem ā Enviar Texto
AI-generatedOverview
This node enables Instagram Automation focused on sending direct messages (DMs) and other Instagram interactions. Specifically, the 'Enviar Texto' operation allows sending text messages to Instagram users via their User ID. It supports dynamic content through shortcodes like [nome], [hora], and [data], which are replaced with user-specific or current date/time information. The node is useful for automating customer engagement, sending promotional messages, or responding to users on Instagram.
Use Case Examples
- Sending a personalized greeting message to a user who interacted with your Instagram account.
- Automating responses to frequently asked questions by sending predefined text messages.
- Using shortcodes to dynamically insert the recipient's name and current time in messages for a more personalized experience.
Properties
| Name | Meaning |
|---|---|
| User ID (Instagram) | The Instagram User ID of the message recipient. Typically obtained from webhook data or conversation history. |
| Mensagem | The text message content to send. Supports emojis, line breaks, links (with automatic preview), and dynamic shortcodes like [nome], [hora], and [data]. |
| Processar Shortcodes | Boolean flag to enable or disable the processing of shortcodes in the message text. When enabled, placeholders like [nome] are replaced with actual user or date/time data. |
Output
JSON
success- Indicates if the message was sent successfully (true/false).message_id- The ID of the sent message returned by Instagram API.recipient_id- The Instagram User ID of the message recipient.message_sent- The final message text sent after processing shortcodes.
Dependencies
- Requires an Instagram API access token and Instagram User ID credentials for authentication.
Troubleshooting
- User ID must be valid and not empty; using an invalid or empty User ID will cause errors.
- The node prevents sending messages to the authenticated user's own Instagram ID to avoid infinite loops.
- Empty message content is not allowed and will cause an error.
- If shortcode processing is enabled, errors in fetching user data for replacements may cause the original message to be sent without substitutions.
- API errors from Instagram (e.g., permission issues, invalid tokens) will be logged and thrown as errors with detailed messages.
Links
- Instagram Graph API Documentation - Official documentation for Instagram API used to send messages and interact with Instagram data.