How the Evaluation API works

With the Evaluation API, a program talks to your bot as a customer would and reads each answer, so your team checks the bot automatically instead of typing questions in the widget by hand. ViaSay runs the conversation; your program compares each answer with what you expected and decides pass or fail.

What you can test

You test your bot at two moments, and choose the version for each test:

  • Before you publish a change: the draft version plays the last saved version of your use cases, published or not.
  • After you publish: the live version plays the use cases published on the environment of the application (in production, the ones your customers talk to), to check that what used to work still works.

Each test talks to the whole bot as on your widget (the bot picks the use case), to one use case, or to Louis, the AI assistant.

A test is a scenario: a conversation written in advance, for example "I want to change my dates" then a booking number. Your developer replays hundreds of scenarios in a few minutes, as often as needed, up to 20,000 test conversations a month per environment.

What comes back

For each scenario, the results go to your developer's tools, not to the ViaSay dashboard:

  • the bot's answers, word for word, with their buttons;
  • the use case that answered, or Louis;
  • how the conversation ended: answered, waiting for the customer, handed to an agent, or in error.

What is real and what is simulated

Tests never reach your customers, your agents, your ticketing tool or Analytics. But when your bot calls your own systems (orders, bookings, CRM), those calls are real.

A test goes from your program to your bot. Agents, ticketing tool, Conversations, Analytics and CSAT are not reached. Calls to your systems are real

The table below says what happens to each action of the bot during a test.

Action of the botDuring a test
Handover to an agentreported in the results, never executed
Ticket creationreported in the results, never created
File sent by the customersimulated: only its name is sent
CSAT or NPS ratingthe bot can ask for it, the test cannot answer it
Conversations and Analyticstests never show there: your figures stay clean
Calls to your systemsreal: API Call steps of your use cases, API tools of Louis and of the Generate with AI steps

Important: if your bot calls your systems, check with your developer that, on the environment you test, those calls go to test versions of your systems. Otherwise a test can really cancel an order.

Give your developer access

  1. In Settings › Applications, click Create an application and tick its scopes, the rights of the program. Only Managers see this tab: see Applications.
  2. Create it on the environment you want to test, test or production: an application only opens the environment you are on when you create it.
  3. Send the client ID and the secret to your developer through a password manager, never by email.
  4. Send your developer the questions to protect, with the use case that should answer each one. A spreadsheet is enough.

Next steps


Did this page help you?