Comment-to-DM automation: how it works on Instagram, Facebook and TikTok
Comment-to-DM automation sends a private message to people who comment a chosen keyword: on Instagram it arrives as a DM and on a Facebook Page in Messenger, both through Meta's private replies, one per comment within 7 days. easyCoexistence runs the same kind of rule on both, set up in plain words from Claude, ChatGPT or your own agent, and on TikTok that rule replies to matching comments in public.
- One kind of rule on Instagram, Facebook and TikTok
- A DM or a Messenger message, plus an optional public reply
- Set up in plain words from Claude or ChatGPT
Nothing charged for 3 days. Cancel anytime.
Private replies Meta allows per Instagram comment; a further message waits until the person responds.
How long after a comment on a Facebook Page a private reply can still be sent.
Private replies Meta allows per Instagram account to comments on posts and Reels.
Comment rules one Instagram account, Facebook Page or TikTok account can hold.
The time within which TikTok reports a new comment, so a TikTok rule replies within minutes.
How does comment-to-DM work on each network?
The same rule works on each network, and the network decides how the reply travels: as a DM on Instagram, as a Messenger message on a Facebook Page, and as a public reply on TikTok. On Instagram and Facebook, when someone comments a keyword, say PRICE, on a post the rule covers, easyCoexistence sends that person the rule's message as a private reply, which is Meta's feature for replying to a comment in the commenter's inbox. If the rule has a public reply, it is posted under the comment too, so other readers see the request was answered.
The rule runs on easyCoexistence, not in a chat. Claude, ChatGPT or your own agent creates it, and from then on it keeps replying day and night with no assistant involved.
What can a rule match and send?
A rule is a handful of settings, chosen when it is created:
- Keywords: matched anywhere in the comment, ignoring case. Leave them empty and the rule replies to comments whatever they say.
- Scope: one post, or any post on the account or Page.
- DM: a fixed text of up to 1,000 characters, sent once per comment.
- Public reply: optional text posted under the comment.
- Order: when several rules match one comment, the oldest rule replies.
- Upkeep:
list_comment_rulesshows how many comments each rule has replied to, andupdate_comment_rulepauses, resumes or deletes one.
What does Meta allow for the DM?
One private reply per comment, sent within 7 days of the comment. On Instagram it lands in the person's inbox if they follow the account, or in their message requests if they do not, and it carries a link to the post they commented on. On a Facebook Page it arrives in Messenger.
The next move is theirs. If they write back, a normal conversation opens, and the account can reply within 24 hours of their message: by hand, through Claude or ChatGPT, or with an automation. If they do not, nothing more can be sent from that comment.
How does it work on TikTok?
On TikTok a rule replies in public. A keyword in a comment gets an automatic reply posted under it, which suits answers anyone can read, such as a price, opening hours or where to find the link. Rules cover one video or all of the account's videos, up to 50 per account, as on Instagram and Facebook.
A TikTok connection has no DMs, so a TikTok rule carries a public reply only. TikTok reports new comments within five minutes, so the reply appears within minutes rather than at once. For replies written by AI, a TikTok automation replies in public, in up to 150 characters.
How do you set one up from Claude or ChatGPT?
Describe it. "When someone comments PRICE on my last Reel, send them the price list by DM and reply 'Sent you a DM' under the comment" gives the assistant all it needs: it finds the post, then creates the rule with create_comment_rule, the keyword, the DM text and the public reply. Read the wording before it goes live, since the rule sends it exactly as written.
For a DM that adapts to each comment, use an automation instead. It starts on a comment, sends the private reply as a fixed text or as an AI reply written with your own model key, and can reply in public too.
Common mistakes
- Picking a short keyword that hides inside longer words. Rules match anywhere in the comment, so art also fires on start and party.
- Giving a TikTok rule a DM. TikTok rules post a public reply only, so write the answer there.
- Filling an Instagram DM to 1,000 characters with accents or emoji. Meta counts 1,000 bytes, and each of those characters takes two to four.
easyCoexistence runs comment-to-DM rules on Instagram accounts and Facebook Pages and public-reply rules on TikTok, created in plain words from Claude, ChatGPT or your own agent and replying around the clock through Meta's and TikTok's official APIs. US$ 9 to US$ 0.75 per connection per month, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Does comment-to-DM need Claude or ChatGPT to be open?
No. Once created, a rule runs on easyCoexistence day and night and replies to matching comments by itself.
Can the DM be written by AI?
A rule sends the same text each time. For a DM written by AI, create an automation that starts on a comment and replies with your own Anthropic, OpenAI or OpenRouter key.
How many rules can one account have?
Up to 50 per Instagram account, Facebook Page or TikTok account. When two rules match the same comment, the older one replies and the comment still gets a single DM.
Can a TikTok comment get a DM?
Not through easyCoexistence. TikTok rules and automations reply under the comment, in public, where the commenter and everyone else can read it.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on