Skip to content

Comment to DM automation API

Build Instagram and Facebook comment-to-DM flows with a single API call. Keyword triggers, auto-dedup, contact tracking, and real-time webhook processing included.

  • Instagram + Facebook
  • Built-in dedup
  • One API

Join 200,000+ of the world’s most ambitious developers and builders

  • Case study
  • Case study
How it works

From signup to first automation in three steps

  1. 01

    Get your API key

    Sign up free, generate a key from the dashboard. First 2 social accounts free, unlimited posts.

  2. 02

    Connect social accounts

    Link accounts via OAuth. Each gets a unique ID for API calls.

  3. 03

    Create an automation

    POST your keywords and DM once. Every matching comment gets the DM, sent right away or after a delay you set.

Features

Everything you need to automate

Keyword matching

Match anywhere, on a whole word, or on the exact comment. Add exclusion keywords and typo tolerance.

Instant private reply DM

Meta’s Private Reply API delivers the DM seconds after the comment, as text, buttons, or a product card.

Public comment reply

Post a public “Check your DMs” alongside the private one, with variations for repeat commenters.

Built-in deduplication

Nobody gets the same automation’s DM twice, however many times they comment.

Automatic contacts

Every commenter who triggers becomes a contact with tags and custom fields, ready for broadcasts.

For AI Agents

Your agent sets up and tunes your comment-to-DM flows

496 tools on one OAuth connection. Nothing to install, nothing to self-host.

Know more
› claudeClaude Code v2.1.19Opus 4.5 · Claude Max~/software› set up tevanio and DM the guide to anyone who comments GUIDE✓ registered · https://mcp.tevanio.com/mcp✓ signed in over OAuth · no key pasted✓ call_tool · automation created · Instagram✓ runs on new comments · pause it anytime
Set up Tevanio from tevanio.com/claude

Frequently asked questions

Comment-to-DM automation automatically sends a private DM to anyone who comments a specific keyword on your Instagram or Facebook post. It’s commonly used for lead magnets, discount codes, and giveaways. Tevanio lets you set this up with one API call.

Yes. Meta treats reels as posts, so the same automation covers reels, feed posts, and carousels. Stories work too, through the story-reply trigger: set the trigger to story_reply and a keyword reply to your story sends the DM. That one is Instagram only.

Yes. Set dmDelaySeconds to anything from 0 to 86,400 (24 hours), and commentReplyDelaySeconds for the public reply. The keyword match and the dedup happen the moment the comment arrives, so a delay only moves when the message goes out. The public reply is never posted before the DM it announces.

Three modes. Contains matches anywhere, even inside another word, so “app” fires on “happy”. Word matches the keyword on its own. Exact requires the whole comment to be the keyword. You can add exclusion keywords that veto a match, and turn on typo tolerance in word mode to catch close misspellings. Leave keywords empty and every comment triggers.

ManyChat is a no-code tool for end users. Tevanio’s API is a ManyChat alternative that lets developers embed comment-to-DM as a feature inside their own applications with full programmatic control.

Within seconds by default. Tevanio subscribes to Meta’s real-time comment webhooks, so there is no polling loop to wait on. If you’d rather it didn’t look instant, set a delay of up to 24 hours and the send moves without changing when the match happens.

Yes, when it runs on Meta’s official API rather than browser automation. Tevanio is a Meta Tech Provider and uses the Private Reply API, which is Meta’s approved way to DM someone in response to a comment. Tools that scrape or drive the browser are what get accounts restricted.

Comment-to-DM starts from a comment on a post. Auto-reply starts from someone messaging you. Tevanio does both, and one automation can cover both doors: turn on alsoMatchInDms and the same keywords answer people who DM the word instead of commenting it.

You pay to connect social accounts, and nothing else. The first 2 are free, then it’s $6 per account per month, dropping to $3 from 11 accounts and $1 from 101. Posting, commenting, and messaging are unlimited, so a post that goes viral costs you the same as one that doesn’t.

Add comment-to-DM to your app today

One API call to create an automation. Keyword triggers, auto-dedup, contact CRM, and real-time webhooks.

  • Instagram + Facebook
  • Built-in dedup
  • One API