Create comment DM rule
create_comment_dm_ruleCreates an Instagram comment DM rule: anyone who comments a keyword gets the message as one private DM, once per person per rule. It starts sending to real people as soon as it's on, so confirm the keywords and text with the user first, or set enabled=false. The DM lands in the person's Message requests. Needs the Team plan or the Creator add-on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Defaults to true. | |
| message | Yes | The DM text, up to 1,000 bytes. Include a line saying it's automated, such as 'This is an automated message.' Some places, like California and Germany, require that. The result's disclosure_missing is true when there's no such line. | |
| post_id | No | Instagram post id from list_comment_dm_posts to watch one post. Null or left out on create watches every post. | |
| keywords | Yes | Up to 20 words or phrases people comment to get the DM. Whole words, any case: 'link' matches 'Link please' but not 'linked'. Emoji work too. | |
| workspace_id | Yes | Workspace with the Instagram connection. Required. Get one from list_workspaces. | |
| idempotency_key | No | Optional client-generated key (e.g., a UUID) to make retries safe. Identical calls with the same key within 10 minutes return the original result instead of running the write twice. |