Send a POST request to /eval with your mock conversation:
curl -X POST "https://api.sulus.ai/eval" \
-H "Authorization: Bearer $SULUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Greeting Test",
"description": "Verify assistant greets users appropriately",
"type": "chat.mockConversation",
"messages": [
{
"role": "user",
"content": "Hello"
},
{
"role": "assistant",
"judgePlan": {
"type": "exact",
"content": "Hello! How can I help you today?"
}
}
]
}'
Save the returned id — you'll need it to run the evaluation.