Skip to navigation

Add Procedure

Add a procedure (SOP) to the named receptionist.

Path parameters

agent_idstringRequired

ID of the receptionist. List them with GET /v1/reception/customer-facing-agents.

Headers

xi-api-keystringOptional
xi-workspace-idstringRequired
The customer workspace a reseller's API key acts on.

Request

This endpoint expects an object.
namestringRequired
Name of the procedure.
triggerstringRequired
When the receptionist should run the procedure, in natural language. The receptionist matches caller requests against it, e.g. 'When the caller wants to book an appointment'.
bodystringOptional<=40000 charactersDefaults to

Step-by-step instructions, as markdown.

Response

Successful Response
namestring
Name of the procedure.
triggerstring
When the receptionist should run the procedure, in natural language. The receptionist matches caller requests against it, e.g. 'When the caller wants to book an appointment'.
bodystringOptional<=40000 charactersDefaults to

Step-by-step instructions, as markdown.

idstringOptional
ID of the procedure.
created_at_unixintegerOptional
When the procedure was created, as a Unix timestamp in seconds.
source_keystring or nullOptional

Set when the procedure was copied from an integration’s template; null for procedures you create.

Errors

422
Unprocessable Entity Error