Millis AI Webhooks Documentation
Millis AI provides flexible webhooks to enhance integration capabilities. This documentation explains the purpose, format, and fields for the Prefetch Data Webhook and End-of-Call Webhook.
Configuration Key in Agent Config: extra_prompt_webhook
The Prefetch Data Webhook is called before the conversation begins. It enables real-time customization and event notifications.
The configuration can be provided in one of the following formats:
GET
session_id
(string): Unique session identifier.agent_id
(string): ID of the agent handling the session.from
(string): Caller’s phone number (if applicable).to
(string): Receiver’s phone number (if applicable).application/json
.metadata
(object): Overrides or extends the current session metadata. Existing keys are updated, and new keys are added.extra_prompt
(string): Additional text appended to the agent’s system prompt.Configuration Key in Agent Config: session_data_webhook
The End-of-Call Webhook is triggered after a session concludes. It provides detailed information about the session for logging, analytics, or post-call processing.
The configuration can be provided in one of the following formats:
POST
chat
(string): JSON string representing the chat history (user and agent messages).function_calls
(array): List of external functions invoked during the session.ts
(timestamp): Session start time.duration
(integer): Session duration in seconds.agent_config
(object): Serialized agent configuration.agent_id
(string): ID of the agent managing the session.call_id
(string): Unique identifier for the call session.chars_used
(integer): Number of characters processed during the session.session_id
(string): Unique session identifier.cost_breakdown
(array): List of cost components for different services.
voip
(object): Telephony details.
recording
(object): Call recording details.
metadata
(object): Final metadata for the session.call_status
(string): Status of the call. Possible values:
user-ended
api-ended
voicemail-message
voicemail-hangup
agent-ended
timeout
error
chat_completion
error_message
(string): Description of any errors encountered during the session.Request URL:
Payload:
These webhooks provide a robust way to integrate Millis AI into your existing systems, offering flexibility and advanced customization for voice agent interactions.
Millis AI Webhooks Documentation
Millis AI provides flexible webhooks to enhance integration capabilities. This documentation explains the purpose, format, and fields for the Prefetch Data Webhook and End-of-Call Webhook.
Configuration Key in Agent Config: extra_prompt_webhook
The Prefetch Data Webhook is called before the conversation begins. It enables real-time customization and event notifications.
The configuration can be provided in one of the following formats:
GET
session_id
(string): Unique session identifier.agent_id
(string): ID of the agent handling the session.from
(string): Caller’s phone number (if applicable).to
(string): Receiver’s phone number (if applicable).application/json
.metadata
(object): Overrides or extends the current session metadata. Existing keys are updated, and new keys are added.extra_prompt
(string): Additional text appended to the agent’s system prompt.Configuration Key in Agent Config: session_data_webhook
The End-of-Call Webhook is triggered after a session concludes. It provides detailed information about the session for logging, analytics, or post-call processing.
The configuration can be provided in one of the following formats:
POST
chat
(string): JSON string representing the chat history (user and agent messages).function_calls
(array): List of external functions invoked during the session.ts
(timestamp): Session start time.duration
(integer): Session duration in seconds.agent_config
(object): Serialized agent configuration.agent_id
(string): ID of the agent managing the session.call_id
(string): Unique identifier for the call session.chars_used
(integer): Number of characters processed during the session.session_id
(string): Unique session identifier.cost_breakdown
(array): List of cost components for different services.
voip
(object): Telephony details.
recording
(object): Call recording details.
metadata
(object): Final metadata for the session.call_status
(string): Status of the call. Possible values:
user-ended
api-ended
voicemail-message
voicemail-hangup
agent-ended
timeout
error
chat_completion
error_message
(string): Description of any errors encountered during the session.Request URL:
Payload:
These webhooks provide a robust way to integrate Millis AI into your existing systems, offering flexibility and advanced customization for voice agent interactions.