How to Automate Instagram DMs with an AI Agent (Step by Step)
How to automate Instagram DMs with an AI agent: account requirements, connecting Instagram to Elk, reply rules that sound human, Meta's 24-hour window and handoff.

To automate Instagram DMs with an AI agent, switch to an Instagram professional account, train an agent on your website and FAQs, connect Instagram from the agent's Integrate tab in Elk, and give it short, friendly reply rules with a clear handoff to your team. After that, the agent answers incoming DMs within seconds using the same knowledge as your website chat.
Instagram DMs fill up with the same questions: price, sizes, stock, shipping, "is this still available?", "do you deliver to…?". This guide shows how to automate those answers without sounding like a robot or breaking Meta's rules. It also explains what an AI agent can't handle on Instagram yet.
Paste your URL and build your agent free
Elk crawls your site, trains an AI agent on it, and gives you a chat widget you can test in a few minutes. No credit card required.
What you can and can't automate
| Works with Elk today | Not automated today |
|---|---|
| Replying to text DMs | Replying to comments on posts and reels |
| Product, pricing, shipping and policy questions | Story mentions and reactions |
| Booking via Cal.com, forms and lead capture | Photos, videos, voice notes in DMs |
| Handoff via Zendesk/Intercom tickets or Slack alerts | Outbound DM campaigns |
If comment automation ("comment LINK to get the guide") is your main goal, use a dedicated comment tool for that and let the AI agent handle the conversations that follow in DMs.
What you need
- An Instagram professional account (business or creator). In the Instagram app: Settings → Account type and tools → Switch to professional account.
- A Facebook Page you manage. Elk connects through Meta's login and asks for page permissions alongside Instagram messaging.
- An Elk agent trained on your content. If you don't have one, follow how to train an AI chatbot on your website content.
Step 1: Write Instagram-specific reply rules
DMs are casual and short. A reply that works on a website ("Here are our five shipping tiers…") reads badly in a DM. Add this to your system prompt in Playground → AI:
When replying to Instagram DMs:
- Sound like a friendly person from the brand, not a formal assistant.
- 1-3 short sentences. No tables, no headings, no long lists.
- At most one link per message, at the end.
- If someone asks about a product from a post, ask which item or for
the product name if it is unclear.
- At the start of a new conversation, mention you are the brand's
automated assistant and the team can step in anytime.
- For complaints, damaged orders, collaborations or press, say a team
member will follow up, then create a ticket.The disclosure line follows Meta's guidance that automated chats should tell people they're talking to an automated service where the law requires it. Meta names California and Germany and recommends disclosure as best practice everywhere.
Step 2: Add the answers people ask in DMs
Look at your last 50 DMs and list the repeat questions. Common ones for Instagram-first brands:
- "How much is this?" Make sure product pages with prices are in your sources.
- "Do you have it in [size or color]?"
- "Do you ship to [country]? How long does it take?"
- "What's your return policy?"
- "Where are you located?" or "What are your hours?"
- "Do you do collabs or wholesale?"
Add Q&A entries for anything your website doesn't answer clearly. Keep the answers short so the agent can use them almost word for word.
Q: Do you ship internationally?
A: Yes! We ship to [countries]. Delivery takes [X-Y] business days and
costs are shown at checkout.Step 3: Connect Instagram in Elk
- Open your agent and go to Integrate → Instagram.
- Click connect and sign in with Facebook.
- Approve the permissions for your Instagram professional account and Page.
- Your account appears in the connected accounts list, where you can activate or deactivate it.
Step 4: Test from another account
From a personal Instagram account, send the business account a few real questions:
- A simple one: "what are your hours?"
- A product one: "how much is the black tote?"
- A vague one: "is this available?" with no context
- One that should go to a human: "my order arrived damaged"
Check that the replies are short, accurate and friendly, and that the handoff case doesn't try to solve the problem itself. Then open Chats in Elk. Instagram conversations appear alongside your other channels.
Step 5: Set up handoff
Pick at least one route from Plugins:
- Slack Notify: the fastest option for small teams. The agent posts a summary and a link when topics like "damaged", "refund" or "collab" come up.
- Zendesk Ticket or Intercom Ticket: creates a ticket with the conversation context if your team works in a helpdesk.
Your team can still reply directly in the Instagram app. To pause automation on an account, for example during a launch when you want to answer personally, deactivate it from Integrate → Instagram.
Know the 24-hour window
Meta's messaging rules say your app can only message someone after they've messaged you, and you have 24 hours to respond to each message. An AI agent replies in seconds, so this rarely affects automated answers. It does matter for your team's follow-ups. If a handoff ticket sits for two days, you may not be able to reply in the DM anymore. Keep handoff response times well under 24 hours, or ask the customer for an email address as a fallback. Lead collection helps here.
Tips that keep DMs feeling human
- Match your brand voice. If your captions use emoji and lowercase, let the agent do the same, in moderation.
- Don't over-sell. Answer the question first, and suggest a product only when it's relevant.
- Answer ad and post traffic. When a post goes viral, DMs spike. That's when automation pays off most, so check your sources cover the featured product.
- Review weekly. DM questions change with each post. Add Q&A entries for new ones. See how to reduce support tickets with AI for a simple weekly review routine.
Same agent, more channels
The agent you connect to Instagram can also answer on your website, WhatsApp, Messenger and Slack, using one knowledge base for all of them. If WhatsApp is your next channel, see how to connect an AI agent to WhatsApp.
Frequently asked questions
Can I automate Instagram DMs on a personal account?
No. Meta's messaging API works with Instagram professional accounts (business or creator). Switch your account to professional in the Instagram app settings before connecting an AI agent.
Can the AI agent reply to Instagram comments?
Not in Elk today. Elk's Instagram integration answers direct messages. Comment replies are not automated, so keep handling those manually or with a separate tool.
Is it allowed to use an AI bot for Instagram DMs?
Yes, through Meta's official messaging API. Meta requires automated chats to disclose that the person is talking to an automated service where the law requires it, for example in California and Germany, and recommends doing so everywhere.
What happens if a customer messages after 24 hours?
Meta allows a reply within 24 hours of the customer's last message. When a customer sends a new message, a new window opens and the agent can reply again. Your team should handle follow-ups that need to go out after the window closes.
Can the AI agent understand images or voice messages in DMs?
Elk's Instagram integration currently replies to text messages only. Photos, videos, stickers and voice notes are not processed, so make sure your team watches the inbox for those.
Will automating DMs stop me from replying myself?
No. You can still read and reply in the Instagram app. To pause the agent on an account, deactivate it from the Instagram integration page in Elk.
Wrap-up
Automating Instagram DMs works best when the agent knows your products and policies, keeps replies short, says it's automated, and passes anything sensitive to your team quickly. Elk handles the DM side today. Comments still need a human or a separate tool. Set it up once, review it weekly, and your inbox stops being a second job.
Compare plans on the Elk pricing page or see all channels on the integrations page.
Train your agent, then connect Instagram
Elk crawls your site, trains an AI agent on it, and gives you a chat widget you can test in a few minutes. No credit card required.
Read more

How to Connect an AI Agent to WhatsApp for Customer Support
How to connect an AI agent to WhatsApp for customer support: what you need from Meta, the setup steps, the 24-hour rule, costs, and how to hand off to a human.

How to Reduce Support Tickets with AI: A Practical Guide for Small Teams
How to reduce support tickets with AI: find repeat questions, fix your content, deploy an AI agent where customers ask, set up handoff, and measure what changes.

How to Train an AI Chatbot on Your Website Content (Step by Step)
How to train an AI chatbot on your website content: pick the right pages, crawl or import a sitemap, fill gaps with Q&A, write a system prompt, and test answers.