hermosodocs

test_dm_automation

Test a DM automation read-only

Area: DM AUTOMATIONS ON EVERY CHANNEL · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
idstringsaved rule id to test; omit to test a rule that is not saved yet
textrequiredstringthe 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)
namestringname of the automation, shown in the list
accountstringthe account on that channel: @handle (Instagram, X, Threads, YouTube), Page name/id (Facebook, LinkedIn); omit when only one is connected
triggerobjectwhat 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.keywordsstring[]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.mediaIdstringInstagram 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.refstringig.me/m/<handle>?ref=<ref> or m.me/<page>?ref=<ref>
messageobjectwhat the person receives: {text, buttons}; on X the text is the public reply, up to 280 characters
message.textrequiredstringwhat 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.buttonsobject[]up to 3 link buttons (Instagram, Facebook; X has none)
message.buttons[].titlerequiredstringup to 20 characters
message.buttons[].urlrequiredstringhttps link
publicRepliesstring[]Instagram/Facebook comment rules: public replies under the comment, rotated
followGateobjectInstagram only: followers get the content after tapping a button
followGate.enabledrequiredbooleantrue = non-followers see the follow prompt before the content (Instagram only)
followGate.askstringmessage asking the person to follow the account
followGate.notFollowingstringmessage sent to someone who does not follow yet
followGate.buttonstringlabel of the button the person taps once they follow
cooldownHoursnumberDM/ref rules: answer one person at most once per this many hours (default 24)
enabledbooleanfalse pauses the automation without deleting it
dryRunbooleanlog 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.

All 728 Publishing & scheduling tools · tools.json