curl -X POST https://api.classet.ai/v2/scripts/generate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"job_title": "CDL Truck Driver",
"job_description": "Long-haul routes, Class A CDL required",
"focus_areas": ["driving experience", "safety record", "availability"]
}'
{
"data": {
"name": "CDL Driver Screen",
"description": "Phone screening script for CDL truck driver candidates",
"tasks": [
{
"name": "Introduction",
"description": "Greet the candidate and explain the screening process",
"questions": [],
"order": 1
},
{
"name": "Driving Experience",
"description": "Assess commercial driving background",
"questions": [
"How many years of CDL driving experience do you have?",
"What types of freight have you hauled?",
"Have you done long-haul routes before?"
],
"qualifying_questions": [
{
"question": "Do you hold a valid Class A CDL?",
"disqualifyIf": "no"
}
],
"order": 2
},
{
"name": "Safety & Compliance",
"description": "Verify safety record and compliance",
"questions": [
"Have you had any moving violations in the past 3 years?",
"Are you familiar with DOT HOS regulations?"
],
"order": 3
},
{
"name": "Availability & Logistics",
"description": "Confirm availability and logistics",
"questions": [
"Are you available to start within two weeks?",
"Are you comfortable being away from home for extended periods?"
],
"order": 4
},
{
"name": "Closing",
"description": "Wrap up and explain next steps",
"questions": [],
"order": 5
}
]
}
}
AI Generation
Generate Script
Uses AI to generate a structured interview script with tasks and questions tailored to the role.
POST
/
v2
/
scripts
/
generate
curl -X POST https://api.classet.ai/v2/scripts/generate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"job_title": "CDL Truck Driver",
"job_description": "Long-haul routes, Class A CDL required",
"focus_areas": ["driving experience", "safety record", "availability"]
}'
{
"data": {
"name": "CDL Driver Screen",
"description": "Phone screening script for CDL truck driver candidates",
"tasks": [
{
"name": "Introduction",
"description": "Greet the candidate and explain the screening process",
"questions": [],
"order": 1
},
{
"name": "Driving Experience",
"description": "Assess commercial driving background",
"questions": [
"How many years of CDL driving experience do you have?",
"What types of freight have you hauled?",
"Have you done long-haul routes before?"
],
"qualifying_questions": [
{
"question": "Do you hold a valid Class A CDL?",
"disqualifyIf": "no"
}
],
"order": 2
},
{
"name": "Safety & Compliance",
"description": "Verify safety record and compliance",
"questions": [
"Have you had any moving violations in the past 3 years?",
"Are you familiar with DOT HOS regulations?"
],
"order": 3
},
{
"name": "Availability & Logistics",
"description": "Confirm availability and logistics",
"questions": [
"Are you available to start within two weeks?",
"Are you comfortable being away from home for extended periods?"
],
"order": 4
},
{
"name": "Closing",
"description": "Wrap up and explain next steps",
"questions": [],
"order": 5
}
]
}
}
Uses AI to generate a structured interview script tailored to a specific role. Returns tasks with questions and qualifying criteria.
The body takes
job_title (required), job_description and focus_areas. The endpoint saves nothing. To use the script, create it with Create Script (POST /v2/scripts) using the generated name and description. Create Script doesn’t accept tasks, so add each generated task with POST /v2/scripts/{scriptId}/tasks, then attach the returned script_id to a job with Update Job.
The new script starts with Classet’s standard tasks, which are already numbered from 1. When you add a generated task, leave out its order so it appends, and skip generated greeting or wrap-up tasks like “Introduction” and “Closing” that duplicate the standard Introduction and Next Steps. Then use Reorder Tasks to move Next Steps back to the end. You can remove standard tasks you don’t want with PATCH /v2/script-tasks/{taskId} and { "removed": true }, but keep Introduction and Next Steps. See AI endpoints for the full steps.
curl -X POST https://api.classet.ai/v2/scripts/generate \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"job_title": "CDL Truck Driver",
"job_description": "Long-haul routes, Class A CDL required",
"focus_areas": ["driving experience", "safety record", "availability"]
}'
{
"data": {
"name": "CDL Driver Screen",
"description": "Phone screening script for CDL truck driver candidates",
"tasks": [
{
"name": "Introduction",
"description": "Greet the candidate and explain the screening process",
"questions": [],
"order": 1
},
{
"name": "Driving Experience",
"description": "Assess commercial driving background",
"questions": [
"How many years of CDL driving experience do you have?",
"What types of freight have you hauled?",
"Have you done long-haul routes before?"
],
"qualifying_questions": [
{
"question": "Do you hold a valid Class A CDL?",
"disqualifyIf": "no"
}
],
"order": 2
},
{
"name": "Safety & Compliance",
"description": "Verify safety record and compliance",
"questions": [
"Have you had any moving violations in the past 3 years?",
"Are you familiar with DOT HOS regulations?"
],
"order": 3
},
{
"name": "Availability & Logistics",
"description": "Confirm availability and logistics",
"questions": [
"Are you available to start within two weeks?",
"Are you comfortable being away from home for extended periods?"
],
"order": 4
},
{
"name": "Closing",
"description": "Wrap up and explain next steps",
"questions": [],
"order": 5
}
]
}
}
Authorizations
Body
application/json
Was this page helpful?