Applications

Applications give a program its own access to the APIs of your bot. A partner CI, a test script or an AI agent gets a client ID and a client secret, with only the rights it needs. Today, applications open the Evaluation API v1.0, which plays conversations with your bot to test it.

šŸ“˜

Managers only

The Applications tab shows for members with the Manager role on the bot, and for the Platform Administrator and Super Admin roles.

Create an application

  1. Open Settings, then the Applications tab
  2. Click Create an application
  3. Give it a Name that tells which program uses it, for example Partner CI
  4. Tick its Scopes, then click Create
  5. Copy the Client secret and store it in a safe place (secret manager, CI variables), then click I have stored the secret. The secret is shown this once only

Settings › Applications: the applications of the bot, their actions and the API endpoints

Create an application: a name and the scopes

The client secret, shown only once

Choose the scopes

ScopeWhat the program can do
evaluation:readRead datasets, runs and simulations, with their turns and traces. Ticked by default
evaluation:writeCreate, change and archive datasets, start and cancel runs, open, feed and close simulations
evaluation:secured_variablesWith evaluation:write, send secured variables to simulations, accepted as verified without your website's signature. Only give it to a trusted program

A program that plays simulations and reads the answers needs evaluation:read and evaluation:write. A program that only reads results needs evaluation:read alone.

One application, one environment

An application belongs to the environment of the bot selected in IRIS when you create it: test or production. It only sees the datasets, runs and simulations of that environment. To test both, create one application in each.

Give the access to the program

Give the program:

  • the Client ID, shown in the table, with its copy button
  • the Client secret, stored when you created the application
  • the URLs under API endpoints: Token to get a token, and Evaluation API

The program then gets a token, valid one hour: see Your first test in 5 minutes.

Manage an application

Click ⋯ at the end of its row.

ActionEffect
Edit detailsRename it or change its scopes. Removing a scope revokes the tokens in use: the programs must get a new token
Regenerate the secretDeletes the current secret and shows a new one, once. The programs that use the old secret lose their access at once
TestPaste the client secret: the test gets a token as your program would, then revokes it. It asks for evaluation:read only (or the single scope): it also revokes a program's token that has exactly that scope, which is always the case with a single scope
DeleteThe programs lose their access at once. Deleting the last application of the environment also cancels the runs and simulations in progress

Test: paste the client secret, a token is obtained


Did this page help you?