> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Automations

> Build visual Instagram DM, Comment, Live, and Story funnels with AI Sales Agents, Profile Scoring, Conditions, A/B Testing, Set Variables, and live analytics.

Open **Dashboard -> Automations** to build complete Instagram DM funnels on a visual drag-and-drop canvas without writing code. Organize campaigns into folders, start from ready-made templates filtered by your goal (Grow, Engage, Drive, Convert, or Qualify), or describe what you want in plain English with **Build with AI** and let Instance build the starting flow for you. Before going live, you can test the entire conversation inside an interactive phone preview.

***

## How Flows Start (Triggers)

Every automation starts when someone interacts with your Instagram account, and you can filter triggers by **Everyone**, **First-Time Leads Only**, or **Returning Contacts Only**:

* **DM Received**: Trigger on any incoming DM or specific keywords.
* **Post and Reel Comments**: Reply to comments on any post, any Reel, or pick a specific **Live or Scheduled** post. The post picker lets you filter by **All Content**, **Scheduled**, **Untagged**, and **Automated**, so you can immediately see which posts already have a funnel attached and which do not. When you pick a scheduled post, Instance **auto-links it on publish** so your DM funnel turns on the exact moment the post goes live.
* **Instagram Live Comments**: Catch keyword comments during your Live broadcasts, auto-like them, and reply in DMs automatically.
* **Story Interactions**: Respond automatically to **Story Mentions** (with VIP creator routing, promo codes, and automatic saving to your CRM), **Story Replies**, and **Story Reactions**.
* **Icebreakers and API**: Connect your Instagram DM Icebreaker FAQ buttons directly to a flow, or trigger automations from the REST API and MCP server.

***

## Rich Messages, Follower Gate, and Lead Capture

Send DMs that feel natural on Instagram: text messages, voice notes, images, PDFs, swipeable product carousels, clickable buttons, and quick-reply pills. You can personalize messages with the person's name or username, add natural delays, and add multiple message variations so your account never sends the exact same copy-paste reply over and over.

For comment triggers, you can turn on **Auto-Like** so Instance automatically hearts the person's comment before sending the DM. When you want to grow your audience, drop in a **Follower Gate** to check if someone follows you before unlocking a link or freebie, and use **Wait for Reply** steps to collect verified email addresses and phone numbers straight into your CRM, Audience Lists, and connected email provider.

***

## Profile Scoring and AI Sales Agent

Go beyond basic keyword trees with two built-in AI steps:

* **Profile Scoring**: Automatically scores each lead based on their profile and answers (Budget, Urgency, Authority, Business Fit, and Timeline), checks for deal-breakers, applies CRM tags, updates pipeline stages, and splits **Qualified** buyers from casual browsers.
* **AI Sales Agent**: Hand the conversation over to an AI sales rep with its own custom prompt for that funnel. It answers product questions, handles objections, captures **email addresses and phone numbers** (routing them straight to your Audience List and connected email provider), shares booking calendars and payment links, creates automated follow-up sequences if the lead goes quiet, and escalates VIPs or exit intents to your team. You can test it in a built-in simulator before publishing.

***

## Conditions, A/B Testing, and Set Variables

Control how leads move through your funnel without writing a line of code:

* **Conditions (`AND` / `OR` Branching)**: Route leads down **True** or **False** paths based on their **CRM Tags**, **Pipeline Stage**, **Instagram Follower Status**, **Message Text or Variables**, **Numeric Comparisons**, or **True/False** checks. You can combine multiple rule groups and see a live plain-English summary of your logic right in the editor.
* **A/B Testing (Randomizer) & Parallel Split**: Use a **Randomizer** to split traffic across 2 to 5 weighted paths (for example, 50/50 or 70/30) to test which message or offer converts better, or use a **Split** step to run multiple branches at the exact same time.
* **Set Variable, Tags, Pipeline Stages & Auto-Assign**: Save custom variables from user replies (such as `lead_status`, `quiz_score`, `budget`, or `user_email`), automatically apply **CRM Tags** from your workspace settings, move leads to a new **Pipeline Stage**, or **Auto-Assign** leads round-robin across your sales reps.

***

## Smart Matching, Spam Shield, and Flow Analytics

Mobile keyboards are messy, and comment sections attract bots. **Typo Tolerance** catches spelling mistakes on DM, comment, Live, and Story triggers (with a live typo simulator to test your keywords). On comments and Live broadcasts, the **Negative Sentiment and Spam Shield** detects toxic comments and Telegram/WhatsApp/crypto spam, hides them automatically, and skips sending them your promo DM.

When your flows are live, switch to **Analytics & Funnel** in the editor to see how each step performs with execution counts, drop-off rates, branch splits, closed deals, and revenue right on your canvas, or open **Runtime Execution History** to inspect any individual run step by step.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.