Configuration and helper utilities for Daily, LiveKit, telephony, and WebRTC transports
configure()
for simple room and token setup:
DAILY_SAMPLE_ROOM_URL
environment variable if set, otherwise creates a new roomDAILY_API_KEY
configure_with_args()
:
-u, --url
: Specify a Daily room URL directly-k, --apikey
: Override the Daily API keyDAILY_API_KEY
: Daily API key for creating rooms and tokensDAILY_SAMPLE_ROOM_URL
: Use an existing room instead of creating oneDAILY_API_URL
: Override Daily API endpoint (defaults to https://api.daily.co/v1)configure()
for standard setup:
-r, --room
: Specify LiveKit room name-u, --url
: Specify LiveKit server URLgenerate_token(room_name, participant_name, api_key, api_secret)
Creates a standard participant token for users or testing.
generate_token_with_agent(room_name, participant_name, api_key, api_secret)
Creates an agent token with special permissions. Use this for your bots.
LIVEKIT_API_KEY
: LiveKit API keyLIVEKIT_API_SECRET
: LiveKit API secretLIVEKIT_URL
: LiveKit server URLLIVEKIT_ROOM_NAME
: Default room nameparse_telephony_websocket()
to auto-detect telephony providers and extract call data:
create_transport
utility handle these automatically. Most users won’t need to call these functions directly.