Define the squad with the Router, Maintenance Specialist, and Leasing Specialist as members. The Router carries the lookup_tenant tool and both handoff destinations:
curl -X POST https://api.sulus.ai/squad \
-H "Authorization: Bearer $CORE_SYSTEM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Property Management Squad",
"members": [
{
"assistant": {
"name": "Router",
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [{ "role": "system", "content": "Greet the caller, verify them as a tenant using lookup_tenant, then classify their inquiry as emergency, maintenance, leasing, rent, or general and transfer accordingly." }],
"toolIds": ["LOOKUP_TENANT_ID"]
},
"firstMessage": "Thanks for calling. Are you calling about a maintenance issue, a lease question, or something else?",
"firstMessageMode": "assistant-speaks-first"
},
"assistantDestinations": [
{
"type": "assistant",
"assistantName": "Maintenance Specialist",
"description": "Caller is reporting an emergency, a maintenance issue, or something broken in their unit.",
"contextEngineeringPlan": { "type": "all" }
},
{
"type": "assistant",
"assistantName": "Leasing Specialist",
"description": "Caller has a question about renting a unit, lease terms, rent, renewals, move-in/move-out, or a general inquiry.",
"contextEngineeringPlan": { "type": "all" }
}
]
},
{
"assistant": {
"name": "Maintenance Specialist",
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [{ "role": "system", "content": "Maintenance specialist. Collect the unit number, a description of the issue, and its urgency. Prioritize anything reported as an emergency." }]
}
}
},
{
"assistant": {
"name": "Leasing Specialist",
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [{ "role": "system", "content": "Leasing specialist. Answer questions about unit availability, pricing, lease terms, renewals, and rent, and walk callers through application steps." }]
}
}
}
]
}'
See Squad API: Create, Update, List for the full request/response reference for this endpoint.