Aller au contenu

Pre-call and post-call

Ce contenu n’est pas encore disponible dans votre langue.

Pre-call configuration can validate a caller number and prepare MCP context before a conversation. Use the endpoints under /assistants/{assistantId}/runtime/precall/number-validation and /runtime/precall/mcp-config.

Post-call MCP configuration is managed with GET and PATCH /assistants/{assistantId}/runtime/postcall/mcp-config:

{
"enabled": true,
"tools": [{ "toolName": "crm_lookup", "subscriptionName": null, "order": 0 }],
"globalPrompt": "Store the call outcome in the CRM.",
"modelConfig": { "mode": "assistant" }
}

This PATCH merges fields, except tools, which replaces the complete post-call list. Sending tools: [] removes all post-call tools and resets globalPrompt and modelConfig.