pagehive

update_command

Update an agent command.

Agent commandsChanges dataAll plans

What it does

Update an agent command. Send the fields that change. name renames it.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
namerequiredstringThe command to change.
new_namestringA new name for the command.
kindone of: fixed, freefixed or free.
labelstring or nullThe text on the command's button. null clears it.
instructionstring or nullFor fixed: what the agent should do. Put {input} where the visitor's text goes.
input_maxinteger or nullThe most characters a visitor may type.
accessone of: off, owner, share, memberWho may send it: off, owner, share or member.
deliver_toone of: owner, senderowner or sender: whose agent gets the calls.

Example

Call update_command with these arguments:

{
  "site_id": "01a1…",
  "name": "summarize",
  "label": "Ask about recipes"
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides