What it does
Close a queued command as done or failed, with an optional note of up to 1000 characters that the page can show the sender. Completing a connection test marks the owner's agent connection as working.
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. |
command_idrequired | string | The id of the queued command, from command_queue. |
statusrequired | one of: done, failed | done or failed. |
note | string or null | A note of up to 1000 characters that the page can show the sender. |
Example
Call complete_command with these arguments:
{
"site_id": "01a1…",
"command_id": "01a1…",
"status": "done",
"note": "Added 3 recipes."
}
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.