Create draft automation
create_automationCreates a comment-to-DM automation as a draft: when someone comments a keyword (or replies to a story, sends a DM or mentions the creator, see trigger), Pidgo replies (optionally in public) and sends them DMs. Write the messages in the creator's language and tone; keep them short and friendly. The draft does nothing until the creator switches it live in Pidgo, so share the open_in_pidgo link with them afterwards.
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": {
"trigger": "<trigger>",
"link": "<link>"
},
"name": "create_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | The main DM. | |
| opening | No | Optional first DM with a button. When the person taps the button, the link message follows. Recommended: Instagram only lets Pidgo keep talking (follow gate, email, follow-up) after the person answers. | |
| post_id | No | Instagram media id from list_posts. Required when trigger is 'post'. | |
| trigger | Yes | 'post': comments on one post (needs post_id). 'any': comments on any post. 'next': the next post the creator publishes. 'live': comments during an Instagram Live (no public reply). 'story': replies to any of the creator's stories. 'dm': a DM with the keyword. 'mention': someone mentions the creator in their story (no keywords). story, dm and mention start in the DMs: no public_reply and no opening; follow_gate, email_question and followup work without opening. | |
| followup | No | Optional reminder some hours later. Needs opening, except for story, dm and mention. | |
| keywords | No | Words in a comment that start the automation, e.g. ['GUIDE']. Matching ignores case. Up to 20, each up to 30 characters. | |
| any_keyword | No | True to react to every comment, whatever it says. Then keywords are ignored. | |
| follow_gate | No | Optional: only send the link to people who follow the creator. Needs opening, except for story, dm and mention. | |
| public_reply | No | Optional public reply under the comment, e.g. 'Check your DMs!'. Max 300 characters. | |
| email_question | No | Optional: ask for the person's email address before the link. Needs opening, except for story, dm and mention. | |
| public_reply_variants | No | Optional: up to 3 other wordings of this message (max 300 characters each). Pidgo picks one at random every time, so the replies don't all look the same. Left out on update_automation, the current ones stay. |