Create an auto-reply
create_auto_replyAdds a rule that answers comments or direct messages automatically, on the person's behalf, from now on (never older comments). trigger COMMENT: when someone comments (optionally only with one of keywords, whole words, any case; only on post_ids; only on channel_ids), post one of public_replies (picked at random) under the comment and/or send message (+ link_url as a tracked short link) privately to the commenter, once per comment within 7 days. trigger MESSAGE: when someone sends a direct message (optionally with a keyword), answer with message within 24 hours. once_per_person (default true) answers each person once per rule per 30 days. At most 120 replies per account per hour. This sends messages to real people without a human in the loop: show the person the exact texts and get their OK before creating it enabled, or create it with enabled=false. (Not available in an unclaimed sandbox.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A short name the person will recognize, e.g. "Link in DM" | |
| enabled | No | ||
| message | No | The private message (to the commenter, or the answer to a direct message) | |
| trigger | Yes | COMMENT: someone comments on a post. MESSAGE: someone sends a direct message | |
| keywords | No | Whole words or phrases, any case; empty = every comment or message | |
| link_url | No | Added at the end of the private message as a tracked short link | |
| post_ids | No | COMMENT only: only comments on these Shager posts; empty = every post | |
| channel_ids | No | Only these accounts; empty = every account that supports the trigger | |
| workspace_id | Yes | Workspace id from list_workspaces | |
| public_replies | No | COMMENT only: public answers under the comment, one picked at random | |
| idempotency_key | No | Any unique string you choose (REST: the Idempotency-Key header works too). Retrying with the same key and body returns the first result instead of creating a second one. Kept 24 hours. | |
| once_per_person | No | Answer each person once per rule (30 days) |