- Capture the audio and video output from the page
- Stream that audio and video into the meeting
- Feed the meeting audio into the page as the “microphone” input
Advantages of loading a webpage containing a voice agent
While Attendee also supports voice agents via passing audio packets over websockets, loading a webpage offers several advantages:Video support
You can stream an avatar for the voice agent, in addition to audio.
Easy development
You can test your voice agent directly in the browser without involving Attendee. When it works in the browser, just supply the same URL to Attendee and it will behave the same way inside a meeting.
No backend required
With WebSocket audio, you must provide a backend service to handle sending and receiving audio packets. With voice agents, Attendee runs your webpage inside an Attendee-managed container, effectively acting as that backend.
Calling the API
To add a voice agent, supply a URL in thevoice_agent_settings parameter when creating a bot:
Screen sharing
You can share a screen alongside your voice agent by addingscreenshare_url to voice_agent_settings.
Setting up your webpage to be loaded by Attendee
In order to bring your voice agent into a meeting, Attendee will launch a container that loads the url you provided and streams its audio and video to the meeting. In order for that process to work, follow these guidelines:Request microphone permission immediately
Your webpage should immediately ask the user for permission to use the microphone. The Attendee container will grant the microphone permission automatically. The webpage must not require the user to click a button to start the call.
Design for 1280x720
The Attendee container will load your webpage with screen dimensions of 1280x720, so your webpage should be designed for display at that size.
Quick start
This guide shows how to set up a VAPI voice agent that can be loaded by Attendee.Create a VAPI account
Go to the VAPI website and create a free account.
Get your credentials
Get your public key and assistant id in the VAPI dashboard.