curl --request GET \
--url https://api.open.cx/training \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"organization_id": "<string>",
"question": "<string>",
"answer": "<string>",
"is_draft": true,
"accepted_by": 123,
"learned_from_session_id": "<string>",
"type": "BEHAVIORAL",
"restricted_to_segments": [
"<string>"
],
"restricted_to_channels": [
"web"
],
"created_at": "<string>",
"updated_at": "<string>",
"directory_id": "<string>",
"draft_payload": "<unknown>"
}
]Retrieve all custom trainings defined for your organization. Custom trainings are used to teach the AI how to respond to specific scenarios or questions that are unique to your business or use case.
curl --request GET \
--url https://api.open.cx/training \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"organization_id": "<string>",
"question": "<string>",
"answer": "<string>",
"is_draft": true,
"accepted_by": 123,
"learned_from_session_id": "<string>",
"type": "BEHAVIORAL",
"restricted_to_segments": [
"<string>"
],
"restricted_to_channels": [
"web"
],
"created_at": "<string>",
"updated_at": "<string>",
"directory_id": "<string>",
"draft_payload": "<unknown>"
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns all custom trainings
The ID of the custom training
The answer of the custom training
The draft status of the custom training
The type of custom training
BEHAVIORAL, SCENARIO_SPECIFIC (is array is empty, instruction works for all segments, if array contains segments, instruction is limited to those segments
(is array is empty, instruction works for all channels, if array contains channels, instruction is limited to those channels
web, email, phone_voice, slack, sms, whatsapp, instagram, messenger, api, web_voice The directory ID of the custom training
Draft payload with structured data
Was this page helpful?