Connect audio sources directly to Millis agents via WebRTC
Millis AI supports WebRTC integration, allowing users to connect their audio sources directly to Millis agents via WebRTC. This integration is ideal for a variety of applications, including:
Millis AI enables users to build intelligent voice agents that can join these platforms, engage in conversations, and assist participants via voice interactions.
To connect your phone system, video conferencing platform, or VoIP solution to Millis AI via WebRTC, ensure that:
To initiate a WebRTC session, your system sends a WebRTC offer to Millis through the following API endpoint:
This API is used to send the WebRTC offer to Millis, where it will be processed, and a WebRTC answer will be returned to complete the connection.
application/json
The request body contains the following fields:
Field | Type | Description |
---|---|---|
agent_id | String | The ID of the Millis agent to handle the call or stream. |
offer | Object | The WebRTC offer details, containing sdp and type . |
offer
Object:Field | Type | Description |
---|---|---|
sdp | String | The WebRTC offer’s session description protocol (SDP). |
type | String | Type of the WebRTC request (typically “offer”). |
If the offer is valid, the API will respond with a WebRTC answer that can be used to complete the connection between your system and Millis.
Set the Remote Description: Use the sdp
from the answer to set the remote description on your WebRTC client.
Complete ICE Candidate Exchange: Ensure that ICE candidates are exchanged between your client and Millis to establish the media path.
Start Media Transmission: After completing SDP and ICE negotiations, audio will start flowing between your system and the Millis agent.
Connect audio sources directly to Millis agents via WebRTC
Millis AI supports WebRTC integration, allowing users to connect their audio sources directly to Millis agents via WebRTC. This integration is ideal for a variety of applications, including:
Millis AI enables users to build intelligent voice agents that can join these platforms, engage in conversations, and assist participants via voice interactions.
To connect your phone system, video conferencing platform, or VoIP solution to Millis AI via WebRTC, ensure that:
To initiate a WebRTC session, your system sends a WebRTC offer to Millis through the following API endpoint:
This API is used to send the WebRTC offer to Millis, where it will be processed, and a WebRTC answer will be returned to complete the connection.
application/json
The request body contains the following fields:
Field | Type | Description |
---|---|---|
agent_id | String | The ID of the Millis agent to handle the call or stream. |
offer | Object | The WebRTC offer details, containing sdp and type . |
offer
Object:Field | Type | Description |
---|---|---|
sdp | String | The WebRTC offer’s session description protocol (SDP). |
type | String | Type of the WebRTC request (typically “offer”). |
If the offer is valid, the API will respond with a WebRTC answer that can be used to complete the connection between your system and Millis.
Set the Remote Description: Use the sdp
from the answer to set the remote description on your WebRTC client.
Complete ICE Candidate Exchange: Ensure that ICE candidates are exchanged between your client and Millis to establish the media path.
Start Media Transmission: After completing SDP and ICE negotiations, audio will start flowing between your system and the Millis agent.