Create an Instagram auto-reply rule
create_autoreplyUse this when the person wants comment-to-DM on Instagram: a keyword in a comment (for example GUIDE) gets a public reply and a direct message with a link. Creates a rule that answers Instagram comments or direct messages containing one of its keywords, with the words given here, in the account's name. source comment (the default): each matching comment gets one public reply, picked from replies, and — if the account can message — the one private message Instagram allows per comment. source message: each matching direct message gets one answer from replies, at most once per person an hour. Whole words match, in any case. Under an autopilot credential the rule is live at once and answers real people in public; under a review-mode credential it is saved off and a person turns it on in Hub. Read the account and its posts with list_autoreplies first. Requires posts:write and posts:publish.
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": {
"keywords": "<keywords>"
},
"name": "create_autoreply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | No | The Instagram post a comment rule listens on, from list_autoreplies with posts: true. Left out: every post. | |
| source | No | What the rule answers. Defaults to comment. | |
| account | No | Username or id from list_autoreplies. May be left out when one account is connected. | |
| message | No | Comment rules only: the private message sent to the commenter, up to 1000 bytes of UTF-8 as Instagram counts it (about 500 Cyrillic characters). | |
| replies | No | Reply variants; one is picked per answer. A public reply under a comment is up to 300 characters; for source message each is a direct message, up to 1000 bytes of UTF-8 (about 500 Cyrillic characters). Required for source message. | |
| keywords | Yes | Words to listen for, up to 40 characters each. |