startSession
API endpoint.
JAY_API_KEY
environment variable in your local environment (e.g., a .env
file) and/or
in your production environment (e.g., Vercel, AWS, etc.). In a .env
file, you might include:
<YOUR_AGENT_ID>
with your agent ID, which you can either retrieve from the file containing your agent (e.g. agent/main.py
) or from Jay’s
dashboard.custom_data
input parameter of the configure_session
function.Note: The custom_data
field must be JSON serializable.<YOUR_BACKEND_ENDPOINT>
with your backend endpoint URL
from step 1.
Here are a couple relevant references from LiveKit’s documentation:
LiveKitRoom
:
Provides the LiveKit room context to all its child components. It provides the room state as a
React context to all child components, so you don’t have to pass it yourself.RoomAudioRenderer
:
A drop-in solution for adding audio to your app. It takes care of handling audio tracks and makes sure that microphones and screen share are audible.