Auto-hide spam and rival links in Instagram comments with AI
To auto-hide spam and rival links in Instagram comments with AI, have a model read each new comment on your posts and hide the ones it judges spam, scams or promotion of another business. Hidden comments stay visible only to you and their author. easyCoexistence runs that check as a comment automation on your own AI key, built from Claude or ChatGPT.
Who still sees a comment hidden on your post; Instagram does not tell the author it was hidden.
Instagram's free filter that hides comments containing words, phrases, numbers or emojis you list.
The API call that hides a comment; comments the media owner posts on its own media always stay visible.
Meta sends comment notifications only for media owned by public accounts; private accounts get none.
Instagram's API refuses replies to hidden comments.
How many described paths an AI picks the path step chooses between, plus an Otherwise path when none fits.
How does an AI spam filter for Instagram comments work?
In four moves. Meta's comments webhook reports a new comment on one of the account's posts; an automation with the trigger Someone comments on a post picks it up, for one post or any post; its AI picks the path step sends the comment, your path descriptions and any extra instructions to your model, which names one path; and the Spam path runs Hide the comment. Comments that fit no path go to Otherwise, which can stay empty. A hidden comment is not deleted: it stays visible to you and its author, still counts in the comment total, and can be shown again.
Should you use Hidden Words or AI?
Start with Instagram's own filters, which are free and built into the app. Hide unwanted comments is on by default and hides common offensive words, phrases and emojis, and Hidden Words hides comments containing the words, phrases, numbers or emojis you list. They work on words. An AI check works on meaning: the same follower-selling pitch written ten new ways, a rival shop's handle, a scam in another language. It costs one short model call per new comment on your key, and it can do more than hide, such as email you about a rival link.
| Instagram's Hidden Words | AI check on easyCoexistence | |
|---|---|---|
| Catches | Words, phrases, numbers and emojis you list, plus common offensive ones | Comments that fit a description you write, in any language |
| Cost | Free | One short call per comment on your own AI key |
| Set up in | The Instagram app's settings | Claude or ChatGPT, or the Automations tab |
| Also | Filters message requests with your words | Emails you, replies, or runs other steps |
How do you describe the paths?
The model sees each path's name and description, up to 500 characters, any extra instructions, up to 4,000, and the comment, and answers with one path name, or none. Give it two to six paths and say plainly what stays visible:
- Spam: sells followers, likes or crypto, asks people to DM for an offer, or posts a scam or phishing link.
- Rival link: promotes another shop or account, or links to a store that is not yours, such as a competitor's site or @handle.
- Extra instructions: name your own handles and domains so they never count as rivals, and say that complaints and criticism are not spam.
- Otherwise: questions, praise and complaints, left visible, or answered by a Reply to the comment step.
Which comments can it hide?
New comments that Meta reports for the account, from the moment the automation is on, within these limits:
- Comments on the account's own posts and Reels; older comments are not checked.
- Never the account's own comments, which Meta keeps visible whatever hide says.
- Not comments on a Live broadcast, which Meta's API does not hide.
- Only on a public account: Meta sends no comment notifications for private ones.
- Not comments a comment-to-DM rule answered, which never reach automations.
How do you set it up from Claude or ChatGPT?
Save your AI key under AI keys in the dashboard, then ask your AI, or use With AI on the New automation page, where Hide offensive comments copies a starting prompt for Instagram. The AI calls list_social_accounts, then create_automation on the Instagram channel_id with a comment_received trigger, match any, and an ai_decide step whose paths end in hide_comment. test_automation on a sample comment shows the path it took and hides nothing.
→ list_social_accounts
→ create_automation {
"connection_id": "…Instagram channel_id…",
"name": "Hide spam and rival links",
"trigger": { "type": "comment_received", "match": "any" },
"steps": [{
"type": "ai_decide",
"provider": "openai",
"model": "<your model id>",
"instructions": "Our accounts are @bloomcafe and bloomcafe.example: never treat them as rivals. Complaints and criticism are not spam.",
"paths": [
{
"name": "Spam",
"description": "Sells followers, likes or crypto, asks people to DM for an offer, or posts a scam link",
"steps": [{ "type": "hide_comment" }]
},
{
"name": "Rival link",
"description": "Promotes another shop or account, or links to a store that is not ours",
"steps": [
{ "type": "hide_comment" },
{ "type": "notify_owner", "text": "Hid a rival link from {{name}}: {{message}}" }
]
}
],
"otherwise": []
}]
}
→ test_automation { "automation_id": "…", "text": "Cheap followers here 👉 bit.ly/…" }How does it fit with comment-to-DM?
Order decides it. Comment-to-DM rules run first, and a comment a rule answered never reaches automations. Then one automation handles each comment: one for a single post beats one for any post, and a keyword automation beats one that takes any comment. So a spam comment containing a giveaway keyword gets the DM, not the spam check. To cover both, run one automation on any comment whose AI picks the path step has a Spam path that hides and a Wants the link path with Send a DM, the comment's one private reply, and Reply to the comment.
How to set it up
- Turn on Instagram's filtersIn the Instagram app, check that Hide unwanted comments is on and add your fixed words to Hidden Words.
- Save your AI keyIn Automations, click AI keys, paste an Anthropic, OpenAI or OpenRouter key and click Test and save.
- Create the automationClick New automation, choose With AI, open the Instagram tab and copy Hide offensive comments into Claude or ChatGPT; or choose Manual, Start from scratch and Someone comments on a post.
- Describe the pathsIn AI picks the path, write a Spam path and a Rival link path, each with Hide the comment, and leave Otherwise empty.
- Test, then watch the Runs tabRun test with a real spam comment and a real complaint; a test hides nothing. For the first days, read the Runs tab and unhide any mistakes.
Common mistakes
- Describing the Spam path as anything negative. The model then hides complaints, which other customers can no longer see and which may never get an answer; keep criticism visible and answer it.
- Leaving a comment-to-DM rule or keyword automation in front. Rules go first and keyword automations outrank one for any comment, so spam carrying the keyword never reaches the check.
- Replying after hiding. Instagram refuses replies to hidden comments, so a Reply to the comment step after Hide the comment fails; reply first or not at all.
- Expecting old comments to be cleaned up. The automation sees new ones only; for older spam, ask Claude or ChatGPT to read a post with list_social_comments and hide specific comments with hide_comment.
Accounts whose spam always repeats the same few words: Instagram's Hidden Words catches those for free, with no AI key.
easyCoexistence checks new comments on your Instagram posts with your own Anthropic, OpenAI or OpenRouter model and hides the ones that match your descriptions of spam and rival links, around the clock, with each decision in the run log for 30 days. Claude or ChatGPT can build it through the connector, and the same steps work on Facebook Pages and TikTok. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, 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, Google Business Profile 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
Can it delete spam instead of hiding it?
No. Automations and easyCoexistence's tools hide comments and show them again, they do not delete them, so a wrong decision is easy to undo. Delete a comment yourself in the Instagram app when you want it gone.
How do I show a comment that was hidden by mistake?
In the Instagram app, open the post, tap View hidden comments at the bottom of the comments and tap Unhide. Or ask Claude or ChatGPT to call hide_comment on that comment with hide set to false.
What does the AI check cost?
One short call to your model per new comment, on your own key: the comment, the path descriptions and your instructions go in, and a path name of at most 100 tokens comes out. easyCoexistence does not charge for AI.
Does the same filter work on Facebook and TikTok?
Yes. The same trigger, AI picks the path and Hide the comment steps work on a Facebook Page and on a TikTok account, each with its own automation on that channel.
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