Update automation
update_automationReplaces all settings and messages of an automation (send the complete automation, not just the changes). Its status stays as it is. If the automation is live, changes reach real people right away, so confirm with the creator first.
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>",
"id": "<id>"
},
"name": "update_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Automation id from list_automations. | |
| 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. |