Comment-to-DM rules, step by step.
A rule says: when someone comments this on that post, reply in public and send them this message. Foxli's wizard builds one in three screens and shows a live preview as you go.

How it works
Pick a template such as Free guide, Discount code or Book a call, or start from scratch.
Select the channel and post, then the words that should trigger the DM. Add a public reply.
Add your text, a button with a link, and an optional follow gate or contact question.
Save the rule. It starts watching comments right away, and you can pause it any time.

What a rule can include
Templates
StartFree guide (GUIDE), Discount code (CODE), Price & details (PRICE), Send a link (LINK), Book a call (BOOK) and Join the waitlist (JOIN). Each one fills in sensible defaults.
Which post
Step 1One specific post or reel, any post or reel, or the next one you publish.
Trigger
Step 2Specific words, where any of your listed words starts the DM, or Any comment. You can also list words that should not trigger it.
Public reply
Step 2Reply under the comment. Add up to ten wordings, which rotate, or write them with AI on Creator and Team.
Follow gate
Step 3On Instagram, ask people to follow first. The DM unlocks when they tap I'm following.
The DM
Step 3Text and a button, or text only. Add a link, a button label, and on Instagram an image or video.
Ask for phone or email
Step 3Optional question in the DM. Replies are saved in the rule's Leads tab.
Building a rule that works
Start from a goal
When you press New automation, Foxli shows a picker called What do you want to send. Free guide, Discount code and Join the waitlist turn the follow gate on by default. Price & details, Send a link and Book a call don't. Join the waitlist also collects an email.
Each template comes with a keyword like GUIDE or PRICE, a public reply and a DM draft. All of it can be edited. Start from scratch if none of them fits.
Choosing the post
First you pick the channel. Auto DM works on Instagram and Facebook. Then you choose between a specific post or reel, which is best for a launch or an offer, any post or reel, which covers everything now and in future, or the next one you publish.
A rule on one post is the easiest to understand. Rules on every post can send DMs you didn't expect, so use them on purpose.
Trigger words
Specific words means a comment must contain one of the words you add. Type a word and press Enter to add it. Any comment means every comment starts a DM. There is also an optional list of words that should stop the rule, so a comment like 'where is my refund' isn't answered with a promo.
By default a rule only looks at top-level comments, not replies inside a thread.
The public reply
A public reply tells everyone that the DM is on its way, which also keeps the comments looking alive. You can add up to ten versions, and Foxli rotates them so the thread doesn't repeat itself. Use the placeholder {username} to greet the person by their handle.
On Creator and Team you can have the AI write replies. It uses a tone you choose and costs one credit per reply. If the AI is off or credits run out, your own versions are used.

The follow gate
On Instagram you can ask people to follow you first. If someone comments without following, the DM asks them to follow and then tap a button. Only after they confirm does Foxli send the real message. It's the reason a free guide or a code can double as a way to grow.
The gate is Instagram only. Facebook Pages don't use it.
The DM itself
Choose Text and a button for a link, which gets more taps, or Text only for a plain message. Add the button text, such as Open link, and paste the link. Foxli also keeps a list of your recent links. You can use {username} in the text.
On Instagram you can also attach an image or video. JPG or PNG up to 8 MB, or MP4 up to 25 MB and 60 seconds. It is sent after the follow gate is passed, so turn the gate on to use it. The wizard marks DM media as a Creator feature.
Asking for contact details
Switch on Ask for phone or email, choose what you want, and the DM asks for it. The answers show up in the rule's Leads tab. See the leads and funnel page for how to read it.
Meta's rules
These come from Meta, not Foxli. A private reply to a comment is limited to one per comment, within seven days of the comment. After that, a message can only follow if the person writes back, and then a 24-hour window applies. Public replies are not limited by that window.
Because of those rules, a rule can't send a second unprompted message. Put everything the person needs in the first DM.
The templates
Each one fills in a keyword and sensible defaults.
| Template | Keyword | Follow gate | Collects email |
|---|---|---|---|
| Free guide | GUIDE | Yes | No |
| Discount code | CODE | Yes | No |
| Price & details | PRICE | No | No |
| Send a link | LINK | No | No |
| Book a call | BOOK | No | No |
| Join the waitlist | JOIN | Yes | Yes |
Frequently asked questions
Can I use more than one keyword?
Yes. Add as many words as you like. A comment that contains any of them triggers the rule.
Is there regex or exact-match?
No. Rules use words you list, or Any comment.
Can I stop it replying to some comments?
Yes. Add words to the exclude list and a comment containing them is skipped.
Can one rule cover several posts?
Yes, choose Any post or reel. Or create one rule per post to keep results separate.
Does the public reply cost credits?
Only if you use the AI to write replies. Your own wordings cost nothing.
Can I test a rule?
Comment on your own post from another account and watch the Live activity list on the Auto DM page.
Can I pause a rule?
Yes. Each rule has an Active switch and an Edit button.
Does it work on Facebook?
Yes, with a public reply and a Messenger DM. See the Facebook Auto DM page.
Sources & references
- Meta Messenger Platform policy overview— Private replies and the 24-hour messaging window