create_dm_funnel
Create an Instagram comment-to-DM funnel. scope "account" = keyword rule on EVERY post of the account (no postId; for "Comment PIANO and I'll DM you the link" on every video; paid plans; one live rule per keyword per account; one DM per person per keyword). scope "post" = one published or scheduled post (postId required; while creating a post use schedule_post dmFunnel). matchMode "exact" (default for account) fires only when the whole comment is the keyword, ignoring case, punctuation, emoji and a leading @mention; "contains" (default for post) fires on the keyword as a whole word. A post funnel wins over an account rule on its post. Each match gets one official Private Reply with the rendered {{link}} within seconds; publicReplyTemplate is optional (off when omitted). ON by default (active:false saves it paused); switching on needs a publish-capable token, else it saves paused and dm_funnel_activate turns it on. promoCode (active Stripe promotion code) is added as ?promo= on the redirect. trackClicks (default true) sends a click-tracked go short link tagged by linkTags; list_dm_funnels reports hits, sent and clicks. trackClicks false sends leadUrl exactly (stats tracking "off", clicks null). Keywords ignore case, width and apostrophes; duplicates collapse. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"integrationId": "<integrationId>",
"scope": "<scope>",
"keywords": "<keywords>",
"dmTemplate": "<dmTemplate>",
"leadUrl": "<leadUrl>"
},
"name": "create_dm_funnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human label for this funnel in dashboards and in the default utm_campaign. | |
| scope | Yes | "account" = keyword rule on every post of the Instagram account (postId not used). "post" = one post (postId required). | |
| active | No | false = save paused. Default true (on). | |
| postId | No | Published or scheduled Instagram post id from list_posts. Required for scope "post", ignored for "account". | |
| leadUrl | Yes | HTTPS destination substituted for {{link}}. | |
| dailyCap | No | Most DMs this funnel sends per day, to protect the account. | |
| keywords | Yes | Comment words or phrases that trigger the DM, e.g. ["PIANO"]. Case, width and apostrophes are ignored. | |
| linkTags | No | Farm tags for the tracked go short link (https://go.<product>/<slug>). | |
| matchMode | No | "exact" = the whole comment is the keyword (default for scope "account"). "contains" = the keyword appears as a whole word (default for scope "post"). | |
| promoCode | No | Optional active Stripe promotion code appended as ?promo= so checkout pre-applies it. | |
| dmTemplate | Yes | Private reply text containing exactly one literal {{link}} placeholder. | |
| trackClicks | No | Track link clicks (default true). False sends leadUrl exactly as given: no redirect, no shortener, no added parameters. | |
| utmCampaign | No | Optional utm_campaign (slugified). Defaults to the funnel name. | |
| integrationId | Yes | Instagram integration id from list_integrations. | |
| publicReplyTemplate | No | Optional public comment reply. Omit to keep public replies off (recommended default). |