Test a receptionist
Trillet Partner API: Calls an existing receptionist with test callers and judges each call.
Calls the receptionist's front door with about ten made-up test callers, the same way its
build did, and judges each call. Use it after changing a prompt, the knowledge base or the
hours. A test run reports only: it fixes nothing and does not change the receptionist's
status. The result is on the job, the full report at GET /jobs/{jobId}/test-report,
and the latest run on the receptionist as lastTestRun. The test calls are not billed.
Needs resources:write.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The tenant ID.
^[a-fA-F0-9]{24}$Header Parameters
Optional. Works as on the endpoints that require it.
>= 1, <= 255Body
passRatenumberThe pass mark for meetsPassRate. Defaults to the one the receptionist was built with.
x >= 0, x <= 1Response
The test_run job, queued.
objectstringrequiredidstringrequired^[a-fA-F0-9]{24}$type"provision" | "test_run"requiredprovision: building a receptionist. test_run: testing one that exists.
"provision" | "test_run"status"queued" | "running" | "succeeded" | "failed" | "cancelled"required"queued" | "running" | "succeeded" | "failed" | "cancelled"stage"reading" | "building" | "testing" | "finishing" | nullWhere a running job is. null otherwise.
"reading" | "building" | "testing" | "finishing" | nullcancelRequestedbooleanA running job you cancelled. It stops at the next point it can.
tenantIdstring | nullattemptsintegerresultobject | nullSet when a job succeeds. A provisioning job has receptionistStatus,
reviewReason, frontDoorAgentId, agents and tests. A test run has total,
passed, passRate, requiredPassRate and meetsPassRate.
result.receptionistStatus"ready" | "needs_review""ready" | "needs_review"result.reviewReason"tests_failed" | "tests_unavailable" | "approval_required" | null"tests_failed" | "tests_unavailable" | "approval_required" | nullresult.frontDoorAgentIdstringresult.agentsarray<object>result.testsobjectresult.totalintegerTest run. Calls that connected and were judged.
result.passedintegerTest run.
result.passRatenumberTest run.
result.requiredPassRatenumberTest run.
result.meetsPassRatebooleanTest run.
errorobject | nullerror.codestringerror.messagestringcreatedAtstring | null<date-time>startedAtstring | null<date-time>finishedAtstring | null<date-time>Last updated on