# Extract the next new direct message — Instagram DM and comments Botize method — `instagram_messaging.new_message` (trigger). It is triggered every time someone sends a direct message (DM) to your Instagram professional account. You can fire only on messages containing a keyword. It checks your inbox periodically; Instagram only lets us read the 20 most recent messages of each conversation, and the account must have 'Allow access to messages' enabled for connected tools in its Instagram settings. The 'Sender Id' output is what the reply actions need. This is a trigger: it starts the task. A task has exactly one. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `keyword` *(string)* — Only messages containing (optional) ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{message_id}}` *(text)* — Message Id - `{{text}}` *(text)* — Message - `{{from_id}}` *(text)* — Sender Id - `{{from_username}}` *(text)* — Sender username - `{{conversation_id}}` *(text)* — Conversation Id - `{{attachment_type}}` *(text)* — Attachment type - `{{attachment_url}}` *(url)* — Attachment URL - `{{created_at}}` *(date)* — Received at ## Account Needs a connected Instagram DM and comments account in Botize: https://botize.com/en/app/instagram_messaging/authenticate ## This app Every trigger and action for Instagram DM and comments: https://botize.com/en/app/instagram_messaging.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/instagram_messaging/new_message