This documentation is built and maintained by the Flireo AI team to help you create, launch, and scale intelligent phone agents. Access the dashboard here.
assistant-request
event. Your server is responsible for responding with a full assistant configuration in JSON format—this lets you personalize and control your agent dynamically for each call.{
"eventType": "assistant-request",
"fromCaller": "+31601234567",
"toAssistant": "+31850123456"
}
{
"assistant": {
"firstMessage": "Goedemorgen, met Julia van Voorbeeld Bedrijf. Hoe kan ik je helpen?",
"endCallMessage": "Bedankt voor het bellen, tot ziens.",
"voicemailMessage": "Hallo, dit is Julia. Zou je een momentje kunnen vinden om mij terug te bellen? Heel erg bedankt!",
"analysisPlan": {
"summaryPlan": { ... },
"structuredDataPlan": { ... },
"minMessagesThreshold": 10,
"successEvaluationPlan": { ... }
},
"messagePlan": {},
"firstMessageInterruptionsEnabled": false,
"firstMessageMode": "assistant-speaks-first",
"maxDurationSeconds": 600,
"backgroundSound": "off",
"endCallPhrases": [],
"compliancePlan": {},
"startSpeakingPlan": { ... },
"stopSpeakingPlan": { ... },
"keypadInputPlan": { ... },
"transcriber": { ... },
"model": {
"model": "gpt-4.1-mini",
"tools": [ ... ],
"messages": [ ... ],
"provider": "openai",
"maxTokens": 150,
"temperature": 0.3,
"emotionRecognitionEnabled": false
},
"voice": {
"model": "eleven_flash_v2_5",
"voiceId": "ukiwGs47sHyibruHJ1vg",
"provider": "11labs",
"stability": 0.5,
"similarityBoost": 0.6,
"useSpeakerBoost": true,
"inputPunctuationBoundaries": [".", "!", "?"]
}
}
}
fromCaller
firstMessage
, the AI system prompt, or anywhere in the assistant configuration/assistants/[id]
), go to the Functions tab and use the “Copy JSON” button to get the correct assistant configuration.