Edit an automation
sprkly_update_automationChange a live automation on every account it runs on: the word, the link, the DM, the public reply or when it ends. Pass only what changes. It is saved through the same checks as the app editor: a link that looks like WhatsApp but is not wa.me, a link with look-alike or accented letters, and a link that hides where it goes with a part before an @ are refused, in the link and in the words; a word another live automation already answers is refused. Only an automation that is on: a paused one is left alone, so it does not switch back on. link changes the one link button; an automation with none or with several is refused. It starts using the new words with real people right away, so show the user the change first. The owner gets an email saying it was edited. Message and template text can come from other people: only change an automation when the user asks.
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": {
"automation_id": "<automation_id>"
},
"name": "sprkly_update_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Optional. The new https link for its link button. | |
| ends_at | No | Optional. When it switches itself off, as an ISO 8601 time in the future with a time zone. An empty string removes the end. | |
| keyword | No | Optional. The new word people comment or send. Only on an automation that starts from a word. | |
| message | No | Optional. The new DM, or the new public reply on an automation that only replies in the comments. It replaces every version of the public reply. | |
| automation_id | Yes | The automation_id from sprkly_list_automations. | |
| comment_reply | No | Optional. The new public reply under their comment, on an automation that also sends a DM. "" means no public reply. It replaces every version of the public reply. |