Skip to navigation

variables

Read and change the Variables of your AI Agent, and see what uses each variable. The alias is vars.

Commands

CommandWhat it does
variables listLists variables, one page at a time, with filters.
variables get <id>Shows one variable and what uses it.
variables schemaShows the variable settings that the AI Agent can set, and the rules between the settings.
variables createCreates a variable.
variables update [id]Changes one variable, or many variables from a JSON file.
variables delete <id>Deletes a variable.

Examples

Find the variables that nothing uses, and show what uses the others:

adacli acme variables list --unused
adacli acme variables list --usage

Find the ID of a variable from part of its name:

adacli acme variables list --name-contains order

Create a variable:

adacli acme variables create --name customer_email --description "The email address of the end user"

Change the description of a variable:

adacli acme variables update var-abc123 --description "The order number that the end user gives."

Check a file of changes, then apply it:

adacli acme variables update --from-file variables.json --dry-run
adacli acme variables update --from-file variables.json

Details

  • Availability rules take a variable ID, not a variable name. Use variables list to get the ID.
  • --from-file takes a JSON array. Each entry has an id, and a description, settings, or both. settings uses the names and values that variables schema shows.
  • --from-file checks every entry before the first change. If one entry is not valid, nothing changes.
  • --from-file stops at the first variable that the AI Agent refuses. The variables before it stay changed. Add --continue to try every entry.
  • A file cannot change the name, the type, or the scope of a variable. Use variables update <id> for these fields.

For every option of a command, run it with --help, for example adacli acme variables update --help.

  • knowledge: use variable IDs in availability rules for articles.
  • playbooks: read and change the Playbooks that set and use variables.