What it does
Close up to 50 queued commands in one call, each as done or failed with an optional note, with the same rules as complete_command. A bad argument refuses the whole call. A command that can't be closed (already finished, claimed by another run, not found) gets ok false and its error in results; the others still close. results keep the order given.
Plans
Works on every plan: Free, Basic, Pro and Ultra.
Parameters
| Name | Type | About |
|---|---|---|
site_idrequired | string | The id of the site. list_sites gives the ids of your sites. |
commandsrequired | array of objects | Up to 50 items, each { command_id, status (done or failed), note (optional, up to 1000 characters) }. |
Example
Call complete_commands with these arguments:
{
"site_id": "01a1…",
"commands": [
{
"command_id": "01a1…",
"status": "done",
"note": "Added 3 recipes."
},
{
"command_id": "01a1…",
"status": "failed",
"note": "The photo link was broken."
}
]
}
Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.
Related guides
- What agent commands areButtons and forms that send your agent a task.
- Connect a WebhookStart your agent the moment a command comes in.
- Design modePoint at part of a page and tell your agent what to change.