Instagram Automation icon

Instagram Automation

šŸ¤– ENVIA mensagens, responde comentĆ”rios, busca conversas e informaƧƵes de usuĆ”rios do Instagram

Mensagem → Enviar Texto

AI-generated

Overview

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

  1. Sending a personalized greeting message to a user who interacted with your Instagram account.
  2. Automating responses to frequently asked questions by sending predefined text messages.
  3. 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

Discussion