test_dm_automation
Test a DM automation read-only
Description
Check whether a sample comment, mention or DM would trigger a rule (saved by id, or unsaved) on any of the seven channels and exactly what it would send, and how (a DM, or a public reply); on X it also quotes what X charges for the send. Sends nothing. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | saved rule id to test; omit to test a rule that is not saved yet |
textrequired | string | the sample comment, mention or DM |
channel | "instagram" | "facebook" | "x" | "tiktok" | "threads" | "youtube" | "linkedin" | instagram (default), facebook (a Facebook Page: comments on its posts and ads, plus Messenger), x, or one of the four PUBLIC-REPLY channels: TikTok, Threads, YouTube or LinkedIn (a company Page) |
name | string | name of the automation, shown in the list |
account | string | the account on that channel: @handle (Instagram, X, Threads, YouTube), Page name/id (Facebook, LinkedIn); omit when only one is connected |
trigger | object | what starts the rule: {type, keywords, match, scope, mediaId, ...}; keywords are case-insensitive |
trigger.typerequired | "comment" | "dm" | "story_reply" | "ref" | "mention" | "live_comment" | comment (every channel; on X a reply under your post; the ONLY trigger on TikTok, Threads, YouTube and LinkedIn), dm (Instagram, Facebook, X), story_reply (Instagram), ref (ig.me/m.me link: Instagram, Facebook), mention (X), live_comment (Instagram: a keyword comment on your LIVE, answered by DM while the Live is on; needs a keyword) |
trigger.keywords | string[] | case-insensitive words/phrases; empty = any comment (DM and mention rules need one) |
trigger.match | "contains" | "exact" | contains (keyword appears in the text) or exact (whole text must equal the keyword) |
trigger.scope | "post" | "next" | "any" | comment rules: one post (mediaId), the NEXT post you publish, or every post |
trigger.mediaId | string | Instagram media id, Facebook post id (an ad: its effective_object_story_id), X post id, TikTok post id, Threads post id, YouTube video id or link, or LinkedIn post URN (urn:li:share:… / urn:li:ugcPost:…) |
trigger.mediaType | "REELS" | "FEED" | Instagram scope "next" only |
trigger.ref | string | ig.me/m/<handle>?ref=<ref> or m.me/<page>?ref=<ref> |
message | object | what the person receives: {text, buttons}; on X the text is the public reply, up to 280 characters |
message.textrequired | string | what they receive; on X the public reply (280) or, for a dm rule, the DM; on tiktok (1,200), threads (500), youtube and linkedin (1,000) the public reply under their comment |
message.buttons | object[] | up to 3 link buttons (Instagram, Facebook; X has none) |
message.buttons[].titlerequired | string | up to 20 characters |
message.buttons[].urlrequired | string | https link |
publicReplies | string[] | Instagram/Facebook comment rules: public replies under the comment, rotated |
followGate | object | Instagram only: followers get the content after tapping a button |
followGate.enabledrequired | boolean | true = non-followers see the follow prompt before the content (Instagram only) |
followGate.ask | string | message asking the person to follow the account |
followGate.notFollowing | string | message sent to someone who does not follow yet |
followGate.button | string | label of the button the person taps once they follow |
cooldownHours | number | DM/ref rules: answer one person at most once per this many hours (default 24) |
enabled | boolean | false pauses the automation without deleting it |
dryRun | boolean | log what would be sent without sending |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/test_dm_automation.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"test_dm_automation","arguments":{"text":"<string>"}}}
CLI
hermoso call test_dm_automation --json '{"text":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
save_dm_automationCreate or edit a DM or comment automationdelete_dm_automationDelete a DM automationlist_dm_automationsDM automations