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:
Phone systems with WebRTC capabilities
Voice agents in video conferencing platforms (e.g., Zoom, Google Meet) to interact with participants via voice
VoIP systems that leverage WebRTC for real-time communication
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:
Your system supports WebRTC for audio transmission.
You have a valid agent_id to route calls or streams to the correct Millis agent.
You have a private key for authenticating requests to Millis.
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.
Authorization: Bearer token containing the private key to authenticate the request.
Content-Type: application/json
The request body contains the following fields:
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:
sdp
String
The WebRTC offer’s session description protocol (SDP).
type
String
Type of the WebRTC request (typically “offer”).
Example Request:
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.
Example Response:
Set the Remote Description: Use the sdp
from the answer to set the remote description on your WebRTC client.
Example (JavaScript/WebRTC):
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.
Route incoming calls from DID numbers through Millis AI for real-time voice interaction, using WebRTC for media transmission.
Connect voice agents to video conferencing platforms such as Zoom, Google Meet, and others. The voice agent can join calls and engage in real-time audio conversations with participants, providing support, answering questions, or automating workflows.
Millis agents can be connected to virtual communication rooms via WebRTC, interacting with users in the room to provide assistance, answer questions, or drive conversations through audio.