Skip to main content
Variables are named values you reference in workflow prompts. Use them to run workflows with different input parameters, such as search terms, ZIP codes, or login details.

How variables work

When your workflow runs, Kadoa replaces each variable reference with the value you defined. For example, you create a variable named keywords with the value "ESG reports". This prompt:
Becomes:
In the dashboard, you insert a reference by typing $. In the SDK and API, you write @variableKey. See Use a variable in a prompt.

Who can use variables

Variables belong to your team.
  • All team members can use variables in their workflows.
  • Members, Admins, and Owners can create, edit, and delete variables.
  • Only Admins and Owners can create, edit, or delete secret variables.
  • Viewers and Compliance Officers can see variables but cannot change them.

Create a variable

  1. Go to Settings > Variables.
  2. Select New variable.
  3. Enter a unique Key. Keys cannot contain spaces.
  4. Select a Type. See Data types.
  5. Enter the Value. For an Array, enter one value per line. For a JSON Object, enter valid JSON.
  6. Select Create.
For a password or API key, select the Secret type. See Secret variables.You can also create a variable while you write a prompt. See Use a variable in a prompt.

Use a variable in a prompt

  1. In the setup prompt or in your chat with Kadoa’s agent, type $. A list of available variables opens.
  2. Select a variable. It appears as a chip in the prompt and stays linked to the stored variable.
To create a variable without leaving the prompt, select Create variable from the suggestions.The workflow’s Variables tab lists the variables the workflow uses.
Variables: zipCodes: ["10001","10002"], radius: 25

Example: authenticated portal access

Variables: username: "user@example.com", password: (Secret)

View variables

  1. Go to Settings > Variables.
The list shows each variable’s key and value. Secret values are never shown. A count next to each variable shows how many workflows use it. Select the count to see those workflows.

Update a variable

Workflows that reference the variable use the new value on their next run. You cannot change a variable’s type after you create it.
  1. Go to Settings > Variables.
  2. Select the variable. The dialog lists the workflows that use it.
  3. Change the Key or Value.
  4. Select Save.

Delete a variable

Deleting a variable is permanent. Workflows that reference it no longer resolve the value, and their future runs may fail.
  1. Go to Settings > Variables.
  2. Select the trash icon next to the variable.
  3. Select Delete to confirm.

Data types

The API always takes values as strings, regardless of data type.