A walkthrough of two steps of a booking. The tool and field names here are those of the demo receptionist; use those of your own agent. See Evaluations for the basics.
Step 1: an existing patient
- Press New evaluation and name it
Existing patient lookup. - Leave Known at the start empty: the agent should find the patient itself.
- Set The caller says to
I am Alex Morgan. I am already a patient and need a cleaning.
A new evaluation before adding its simulated tool answers
- Under Tools return, add the patient lookup tool with this answer:
{"success": true, "patient": {"patientId": 42, "firstName": "Alex", "lastName": "Morgan"}}
- Under Must happen, add: Calls a tool for the lookup,
1time; Remembers a valuepatientId=42; Calls a tool for booking,0times. - Save and run. The result shows the chat, the lookup's arguments, the answer you gave and each check.
The patient 42 exists only in the answer you wrote.
Step 2: choosing a time
Add a step: Friday morning works for me. The values remembered on step 1 carry over, but the tool answers do not: give the availability tool an answer on this step. Check that availability is called and booking is still called 0 times, since the person has not confirmed yet.
To test a later stage alone, put patientId under Known at the start instead. Such a test no longer checks that the lookup works.
When a run does not pass
- A check failed: compare what was expected with what happened: the tool count, the arguments, the node or the value.
- A tool had no answer: add its answer on the step where it was called. A tool called in the agent's opening, before step 1, cannot be given one.
- A value was not saved: the answer you wrote lacks the field the tool's Extract variables reads.
Checks look at tools, nodes and values, not at the wording of the replies; read the chat too.