MaxKnox
05/30/2024, 4:52 PMVapi Support
05/30/2024, 4:52 PMVapi Support
05/30/2024, 4:52 PMserverMessages to include only the end-of-call-report. This setting is adjusted when you create or update your assistant, and specifies which events should trigger server notifications. By default, several events may trigger server notifications, which could be why you're seeing multiple triggers in your call log [(1)]() .
Regarding where to set the server URL, you have multiple options depending on the desired scope and granularity. If you set the server URL at the assistant level in the advanced settings, it will apply specifically to that assistant. This can be done either through the dashboard or via the API when creating or updating an assistant [(2)]() . If you set the server URL in the API Keys page, it applies more broadly at the account level. Typically, you would use the server URL in the assistant's advanced section if you need different endpoints for different assistants or specific interactions.
Here’s how you might adjust the serverMessages to include only end-of-call-report for triggering at the end of the call:
json
{
"serverMessages": ["end-of-call-report"]
}
[(1)]()
This configuration ensures that your server URL is triggered only once, capturing the final state and any concluding data from the call session.MaxKnox
05/30/2024, 5:03 PMVapi Support
05/30/2024, 5:18 PM