Recover more sales · New service
Instagram DM automation for e-commerce stores
Turn “price?” comments and late-night DMs into orders. I build AI automations for Instagram and Facebook Messenger that reply to comments with a private DM, answer price, size and delivery questions from your Shopify data, and capture leads before they go cold.
Hi Sana! The Linen Shirt is 39.99 and in stock in S to XL. Want the link?
Yes please, size M. Will it arrive by Friday?
n8n · stock + delivery check
Size M is in stock, and standard delivery usually arrives in 2–3 days. Here's your checkout link with M selected.
Illustration · sample data
What is Instagram DM automation for e-commerce?
It's an AI assistant connected to your Instagram and Facebook inboxes through Meta's official APIs. It replies to comments with a private message, answers product questions from your store data in seconds, collects contact details from interested buyers, and passes the conversation to your team or WhatsApp when it's time.
- Comment-to-DM replies on posts, reels and ads
- Instant answers to price, size, stock and delivery questions
- Lead capture to Google Sheets, Supabase or your CRM
- Hand-off to your team or to WhatsApp, with the context

How does comment-to-DM automation work?
When someone comments on your post, reel or ad, for example “price” or “link”, a webhook triggers an n8n workflow. It sends one private reply to that commenter with the answer and a link. If they reply, the AI continues the chat. Meta allows one private reply per comment, sent within 7 days.
Details are in Meta's private replies documentation. Follow-ups are only possible after the person answers, within 24 hours.
Can Facebook Messenger automation work with Shopify?
Yes. The same n8n workflow serves Messenger and Instagram. When a shopper asks about a product, it checks price and stock in Shopify and replies with a checkout link. WooCommerce and Google Sheets work too.
How do you capture leads from DMs?
The AI answers the question first, then asks for what you need: name, the product they want, and a WhatsApp number or email if they agree to be contacted. The lead is saved to Google Sheets, Supabase or your CRM, hot leads are flagged to your team, and the buyer can continue on WhatsApp.
Is DM automation allowed by Instagram's rules?
Yes, through Meta's official APIs. Automated replies must be sent within 24 hours of the customer's last message, Instagram has no message templates like WhatsApp, and nobody who hasn't contacted you gets a cold DM. I don't use scraping or unofficial bots that put your account at risk.
Workflow diagrams
What do the DM automations look like inside?
Two n8n flows: one starts from a comment, one from a direct message.
Comment-to-DM automation
- Comment on post or ad: e.g. “price” or “link”
- Match keyword: or any comment on the post
- Private reply in DMs: one message, within 7 days
- AI continues the chat: after they reply
- Stock + checkout link: Shopify lookup
- Lead saved: Sheets or CRM
DM lead capture
- New DM: Instagram or Messenger
- AI answers: price, size, delivery
- Buying intent?: a few natural questions
- Outcomes: Send checkout link, Move to WhatsApp (opt-in), Alert your team, Log the lead
Before and after
What changes when DMs are automated?
Without automation
- “Price?” comments wait hours, and the buyer scrolls on
- Night and weekend DMs pile up until Monday
- Interested buyers never leave a way to follow up
With Instagram and Facebook DM automation
- Every matching comment gets an instant private reply with a link
- DMs get an answer from your store data at any hour
- Leads are captured with consent and handed to your team or WhatsApp
Use cases
Which Instagram and Facebook conversations can be automated?
Comments on posts and reels
Keyword or any comment → private reply with the price, sizes and link.
Comments on ads
Ad comments get the same instant reply, so paid traffic doesn't go unanswered.
Story replies and DMs
Replies to your stories arrive as DMs and are answered from your FAQ.
Product questions
Price, stock, sizes and delivery, checked live in Shopify or WooCommerce.
Lead capture
Name, product and a contact detail, saved with consent to Sheets or your CRM.
Hand-off to WhatsApp
Buyers who prefer WhatsApp continue there, with your WhatsApp automation.
- n8n
- Meta Graph API
- Messenger
- OpenAI
- Gemini
- Shopify
- Google Sheets
- Supabase
What is this built on?
The same n8n and AI agent approach as my WhatsApp AI agent demo, plus the Facebook Graph API, which I already use in a social media automation demo that posts to Facebook. I don't have an Instagram DM client project to show yet, so the conversation on this page is an illustration with sample data.
Pricing
Custom quote after the free audit. The price depends on the flows you want (comment-to-DM, DM answers, lead capture), your store platform and languages.
Ask about DM automationProcess
How the project runs
- Step 1
Free 15-minute audit
We look at your posts, ads and DMs, and the questions buyers ask most.
- Step 2
Pick the first flows
Usually comment-to-DM on your best posts and ads, plus instant DM answers. Written scope, fixed quote.
- Step 3
Connect, test, hand over
I connect your accounts through a Meta app, you test with real comments and DMs, and you get docs.
Frequently asked questions
Do I need a business account?
Yes. Instagram automation works with an Instagram professional account (business or creator), and Messenger automation with a Facebook Page. I help you connect them to a Meta app with the right messaging permissions, which Meta reviews.
Will it DM everyone who comments?
Only the comments you choose: a keyword like “price” or “link”, or every comment on a specific post or ad. Each commenter gets one private reply, and the conversation only continues if they answer. Nobody is mass-messaged.
Can I still reply to DMs myself?
Yes. The AI handles the routine questions and hands over anything else. Your team can jump into any conversation, and the automation pauses for that chat.
What does it cost to run?
The build is a custom quote after the free audit. Running costs are mainly AI usage (OpenAI or Gemini) and n8n hosting, billed to your own accounts. There is no monthly fee to me unless you want ongoing support.
Which languages can it reply in?
English works best, and the AI can match the customer's language. We test replies in your customers' languages, such as Arabic or Roman Urdu, before launch.
Related pages
Book a free 15-minute automation audit
Tell me how your store sells and supports customers today. In 15 minutes we find the 2–3 workflows worth automating first. No pitch deck, no obligation.
Prefer to hear an AI agent first? Call the live AI receptionist demo: +1 (930) 216‑3103 (it's an AI agent, not a person).
sana.k price? need it for Friday
Private reply sent automatically