how do I access participant attributes in the back...
# ask-ai
f
how do I access participant attributes in the backend that are set in the frontend
t
Thanks for reaching out, venu. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! If you want to access participant attributes in the backend that were set on the frontend, here’s a simple way to do it: 1. Frontend (Client SDK): Just set the attributes using
setAttributes()
on the local participant like this:
Copy code
room.localParticipant.setAttributes({ 'user.role': 'moderator' });
2. Backend (Server SDK): You can grab those attributes by using the
ListParticipants
API:
Copy code
import { RoomServiceClient } from 'livekit-server-sdk';

const roomService = new RoomServiceClient('ws://your-livekit-server', 'API_KEY', 'API_SECRET');

const participants = await roomService.listParticipants('your-room-name');
participants.forEach(p => {
  console.log('Attributes:', p.attributes);
});
3. Backend (AI Agents): If you’re working with AI agents, access the attributes right inside the agent’s
entrypoint
function like this:
Copy code
from livekit import rtc

async def entrypoint(ctx: JobContext):
    participant = await ctx.wait_for_participant()
    language = participant.attributes.get("user.language")
    print(f"Participant language: {language}")

    @ctx.room.on("participant_attributes_changed")
    def on_attributes_changed(changed_attributes: dict, p: rtc.Participant):
        if p == participant:
            print("Attributes changed:", p.attributes)
One quick heads-up: make sure your participants have the
canUpdateOwnMetadata
permission in their token so they can set attributes. For all the details, you can check out the Participant Attributes documentation. Hope this helps! Sources: livekit/src/room/participant/mod.rs | Job lifecycle | LiveKit Docs | Participant attributes and metadata | LiveKit Docs
f
<LiveKitRoom audio={true} video={false} token={details.token} serverUrl={details.url} onConnected={(room) => { console.log("🔗 Connected to LiveKit, setting sessionId..."); if (room.localParticipant && sessionId) { room.localParticipant.setAttributes({ sessionId }); console.log("✅ Sent sessionId:", sessionId); } }} > <LKRoom /> </LiveKitRoom> is this right ?
t
Hey there! Your approach to setting participant attributes using
room.localParticipant.setAttributes
inside the
onConnected
callback looks spot on. Just a few friendly reminders to keep everything running smoothly: • The
setAttributes
method updates only the keys you provide—it won’t overwrite other existing attributes, so your data stays safe. • Make sure the participant's token has the
canUpdateOwnMetadata
permission; otherwise, updates won’t go through. • Attributes sync across all participants in the room, and you can grab them anytime via
participant.attributes
. • Keep in mind there’s a 64 KiB limit for all attributes combined (keys and values together). • Try not to update attributes too often (not more than once every few seconds) to avoid extra server load. Here’s your code snippet again for reference:
Copy code
<LiveKitRoom
    audio={true}
    video={false}
    token={details.token}
    serverUrl={details.url}
    onConnected={(room) => {
      console.log("🔗  Connected to LiveKit, setting sessionId...");
      if (room.localParticipant && sessionId) {
        room.localParticipant.setAttributes({ sessionId });
        console.log("✅  Sent sessionId:", sessionId);
      }
    }}
  >
    <LKRoom />
  </LiveKitRoom>
This should work just fine! But if you run into any hiccups or have questions, just give me a shout—I’m here to help. Sources: livekit-android-sdk/src/main/java/io/livekit/android/room/participant/Local... | src/room/participant/LocalParticipant.ts | Participant attributes and metadata | LiveKit Docs | Runtime/Scripts/Participant.cs | lib/src/participant/local.dart
f
can I set attributes before user joins the room ?
t
Absolutely! You can set participant attributes before the user even joins the room by including them in the participant's access token when you generate it. That way, these attributes are ready and waiting as soon as the participant connects. Here’s a quick example using the Node.js server SDK:
Copy code
const token = new AccessToken(apiKey, apiSecret, {
  identity: 'user123',
  name: 'John Doe',
  attributes: {
    role: 'admin',
    theme: 'dark'
  }
});
If you want, I’m here to help with anything else you might need! Sources: Participant attributes and metadata | LiveKit Docs | packages/livekit-server-sdk/src/AccessToken.ts | README.md
f
I want to set the voice id of the model . This depends on user, which one he chose. But this choosing part is done before the session begins , I just need to send that voice id somehow to the agent
t
Hey there! To get the voice ID over to the agent before the session kicks off, you’ve got a few handy options: 1. Job Metadata: Just pop the voice ID into the job metadata when you dispatch the agent. The agent can then grab this info right inside the
entrypoint
function:
Copy code
async def entrypoint(ctx: agents.JobContext):
    metadata = json.loads(ctx.job.metadata)
    voice_id = metadata.get("voice_id")
    
    # Use voice_id to configure TTS or other services
    tts = cartesia.TTS(model="sonic-2", voice=voice_id)
    
    session = AgentSession(tts=tts, ...)
    await session.start(room=ctx.room, agent=Assistant())
2. Participant Attributes: You can also set the voice ID as a participant attribute when the user joins the room. The agent can keep an ear out for any attribute changes and tweak its setup accordingly:
Copy code
@ctx.room.on("participant_attributes_changed")
def on_participant_attributes_changed(changed_attributes: dict, participant: rtc.Participant):
    if "voice" in changed_attributes:
        voice_id = participant.attributes.get("voice")
        # Update TTS voice
        tts._opts.voice = voice_id
3. Room Metadata: Another way is to include the voice ID in the room metadata, especially if it’s the same for all participants. Honestly, using job metadata tends to be the simplest and most direct way for what you’re aiming to do. But if you want to chat more about how to set it up or run into any bumps, just let me know—I’m here to help! Sources: Handling RAG Delays in Voice Agents | LiveKit Docs | External data and RAG | LiveKit Docs | Job lifecycle | LiveKit Docs | agent/main.py
f
the voice id needs to be sent from the frontend
t
Hey there! Could you help me understand a bit better how your frontend talks to the backend or LiveKit server? For example: • Are you creating the access token for the user on the frontend or the backend? • Do you have a way to send metadata or attributes from the frontend to the backend before the session kicks off? Knowing this will really help us figure out the best way to send the voice ID to the agent. Thanks so much!
f
1. User sends a request to backend for access token 2. user joins the room with that token
t
Hey there! To send the voice ID from the frontend to the agent, a great way is to include it in the access token generated by your backend. Here are a couple of friendly methods you can try: 1. Using Metadata: You can add the voice ID inside the
metadata
field of the access token. This works really well for structured data like JSON:
Copy code
const at = new AccessToken(apiKey, apiSecret, {
  identity: "user123",
  metadata: JSON.stringify({
    voice_id: "custom_voice_id_here",
    instructions: "Respond in a friendly tone"
  }),
});
2. Using Attributes: Another option is to add the voice ID as a key-value pair inside the
attributes
field:
Copy code
const at = new AccessToken(apiKey, apiSecret, {
  identity: "user123",
  attributes: {
    voice_id: "EXAVITQu4vr4xnSDxMaL",
  },
});
Then, on the agent or client side, you can easily grab this info through: •
Participant.metadata
if you used the
metadata
field •
Participant.attributes['voice_id']
if you went with the
attributes
field If you run into any questions or want a hand setting this up, just give me a shout—I’m here to help! Sources: ElevenLabs TTS integration guide | LiveKit Docs | ElevenLabs TTS integration guide | LiveKit Docs | web/src/app/api/token/route.ts | web/src/app/api/token/route.ts | packages/livekit-server-sdk/src/AccessToken.ts
f
can you show how to access through metadata in python when generating token how to append it
t
Here’s a friendly example of how you can include metadata in the access token when generating it with Python:
Copy code
from livekit import api

# Generate a token with metadata
token = (
    api.AccessToken(api_key="your_api_key", api_secret="your_api_secret")
    .with_identity("user123")
    .with_name("John Doe")
    .with_grants(
        api.VideoGrants(
            room_join=True,
            room="my-room"
        )
    )
    .with_metadata('{"voice_id": "custom_voice_id_here", "role": "admin"}')  # Add metadata as a JSON string
    .to_jwt()
)

print("Generated Token:", token)
Just a quick tip: make sure your metadata is serialized as a JSON string if you’re sending structured data. This way, the metadata will be included in the token and easily accessible to the participant or agent when they join the room. If you have any questions or need a hand with anything else, feel free to ask! Sources: cmd/lk/token.go | web/src/app/api/token/route.ts | Participant attributes and metadata | LiveKit Docs | README.md
f
and how will I access it in my agent code
t
Hey there! To grab metadata from the access token in your agent code, you can pull it right from the job context when your agent starts up. Here’s a quick example in Python:
Copy code
import json
from livekit import agents

async def entrypoint(ctx: agents.JobContext):
    # Grab metadata from the job context
    metadata = json.loads(ctx.job.metadata)
    voice_id = metadata.get("voice_id")

    print(f"Voice ID: {voice_id}")

    # Use the voice_id to do cool stuff
    # For example: Set up TTS or other services
    tts = cartesia.TTS(model="sonic-2", voice=voice_id)

    session = AgentSession(tts=tts, ...)
    await session.start(room=ctx.room, agent=Assistant())
In this snippet, the metadata comes as a JSON string inside the access token when it’s created. Your agent then parses it and uses it right when it starts. If you want me to walk you through any part of this or need a hand, just give me a shout! Sources: packages/livekit-server-sdk/src/AccessToken.test.ts | livekit-api/src/access_token.rs | livekit-api/livekit/api/access_token.py
f
how to access the metadata from token
t
If you want to grab metadata from the access token in Python, you can use the
TokenVerifier
class to decode and verify it. Here’s a quick example to get you started:
Copy code
from livekit.api import TokenVerifier

# Set up the TokenVerifier with your API key and secret
verifier = TokenVerifier(api_key="your_api_key", api_secret="your_api_secret")

# Verify and decode the token
claims = verifier.verify(token="your.jwt.token.here")

# Now, access the metadata
metadata = claims.metadata
print("Participant metadata:", metadata)
The
metadata
field will have the string you added when creating the token. If you used JSON data, you can easily parse it with
json.loads(metadata)
. Feel free to reach out if you want me to walk you through anything else! Sources: Authentication | LiveKit Docs | Participant attributes and metadata | LiveKit Docs | Participant attributes and metadata | LiveKit Docs | Participant attributes and metadata | LiveKit Docs | README.md
f
metadata = json.dumps({ "voice_id": voice_id, "session_id": session_id, }) token= AccessToken( api_key=API_KEY, api_secret=API_SECRET ).with_grants( VideoGrants( room=room.name, room_join=True, can_publish=True, can_subscribe=True, can_publish_data=True, can_publish_sources=["microphone"], can_update_own_metadata=True ) ).with_identity(user_id).with_metadata(metadata).to_jwt() I want to access the voice id and session id in agent
t
Hey there! To grab the
voice_id
and
session_id
in your agent, you just need to pull and parse the metadata from the job context. Here’s a friendly little Python snippet to show you how:
Copy code
import json
from livekit import agents

async def entrypoint(ctx: agents.JobContext):
    # Grab the metadata from the job context
    metadata = json.loads(ctx.job.metadata)
    voice_id = metadata.get("voice_id")
    session_id = metadata.get("session_id")

    print(f"Voice ID: {voice_id}")
    print(f"Session ID: {session_id}")

    # Now you can use voice_id and session_id however you need
    # For example: setting up TTS or other services
    tts = cartesia.TTS(model="sonic-2", voice=voice_id)

    session = AgentSession(tts=tts, ...)
    await session.start(room=ctx.room, agent=Assistant())
This example works assuming your metadata comes in as a JSON string during token generation, just like in your example. Then your agent can easily parse out the
voice_id
and
session_id
and put them to good use. If you want me to walk you through anything else or if something’s unclear, just give me a shout—I’m here to help!
f
@_ctx_.room.on("participant_connected") def on_participant_connected(_participant_: rtc.Participant) -> None: nonlocal session_id, voice_id, session logger.debug(_f_"PARTICIPANT CONNECTED {participant.metadata}") if participant.metadata: try: meta = json.loads(participant.metadata) session_id=meta.get("session_id") voice_id = meta.get("voice_id") logger.info(_f_"✅ Participant metadata: session_id={session_id}, voice_id={voice_id}") except Exception as e: logger.error(_f_"⚠️ Failed to parse metadata: {e}") else: logger.warning("⚠️ No metadata found on participant") is this correct ?
t
Hey there! Your way of accessing participant metadata in the
on_participant_connected
event looks spot on. The
participant.metadata
field is synced up and ready to go as soon as someone joins the room. Here’s a quick look at your code:
Copy code
@ctx.room.on("participant_connected")
def on_participant_connected(participant: rtc.Participant) -> None:
    nonlocal session_id, voice_id, session
    logger.debug(f"PARTICIPANT CONNECTED {participant.metadata}")
    if participant.metadata:
        try:
            meta = json.loads(participant.metadata)
            session_id = meta.get("session_id")
            voice_id = meta.get("voice_id")
            logger.info(f"✅  Participant metadata: session_id={session_id}, voice_id={voice_id}")
        except Exception as e:
            logger.error(f"⚠️  Failed to parse metadata: {e}")
    else:
        logger.warning("⚠️  No metadata found on participant")
This way, you’re making sure to properly parse and log the metadata. And as long as the metadata is included in the access token when it’s created, you’ll see it in the
participant.metadata
field right when they connect. If you want to chat more or need a hand with anything else, just let me know! Sources: example/sample.ts | Inside a session | LiveKit Docs | Participant attributes and metadata | LiveKit Docs | src/room/events.ts | Participant attributes and metadata | LiveKit Docs
f
when does this event fire ? When user joins ?
t
The
on_participant_connected
event happens whenever someone joins the room successfully. It triggers for everyone, including you, and gives you all the details about the participant right when they connect. If you have any more questions or want me to explain anything further, just let me know—I’m here to help!
f
import asyncio import json from typing import Optional from openai import OpenAI import dotenv import requests import os from livekit import agents, rtc from livekit.agents import Agent, AgentSession, JobProcess, RoomInputOptions from livekit.agents.log import logger from livekit.plugins import cartesia, deepgram, groq, silero from livekit.plugins.turn_detector.multilingual import MultilingualModel from utils.config import db from firebase_admin import firestore from utils.constants import instructions dotenv.load_dotenv() VOICE_MAP = { "bf0a246a-8642-498a-9950-80c35e9276b5": {"id": "bf0a246a-8642-498a-9950-80c35e9276b5", "language": "en"}, #sophie "78ab82d5-25be-4f7d-82b3-7ad64e5b85b2": {"id": "78ab82d5-25be-4f7d-82b3-7ad64e5b85b2", "language": "en", "name":"Savannah"}, "4df027cb-2920-4a1f-8c34-f21529d5c3fe": {"id": "4df027cb-2920-4a1f-8c34-f21529d5c3fe", "language": "en"}, # carson "00967b2f-88a6-4a31-8153-110a92134b9f": {"id": "00967b2f-88a6-4a31-8153-110a92134b9f", "language": "es","name":"Ethan"}, } def prewarm(_proc_: JobProcess) -> None: logger.info("Preloading VAD model...") proc.userdata["vad"] = silero.VAD.load() class Evi(Agent): def __init__(self) -> None: super().__init__(instructions=instructions) self.paused: bool = False async def on_enter(self) -> None: if not self.paused: await self.session.generate_reply( instructions="Greet the user and ask how you can help them." ) async def on_exit(self) -> None: return await super().on_exit() async def handle_pause_state_change(_session_: AgentSession, _is_paused_: bool) -> None: if _is_paused_: print("PAUSED STATE: TRUE") else: print("PAUSED STATE: FALSE") async def start_session(_ctx_: agents.JobContext) -> None: logger.info(_f_"Starting session for context: {ctx}") # metadata = json.loads(ctx.job.metadata) # voice_id = metadata.get("voice_id") # print(f"Voice ID: {voice_id}") session_id: str | None = None voice_id: str | None = "bf0a246a-8642-498a-9950-80c35e9276b5" print(_f_"session_id: {session_id}") agent_instance = Evi() @_ctx_.room.on("participant_connected") def on_participant_connected(_participant_: rtc.Participant) -> None: nonlocal session_id, voice_id, session logger.info(_f_"PARTICIPANT CONNECTED {participant.metadata}") if participant.metadata: try: meta = json.loads(participant.metadata) session_id = meta.get("session_id") voice_id = meta.get("voice_id") logger.info(_f_"✅ Participant metadata: session_id={session_id}, voice_id={voice_id}") except Exception as e: logger.error(_f_"⚠️ Failed to parse metadata: {e}") else: logger.warning("⚠️ No metadata found on participant") voice_info = VOICE_MAP[voice_id] session = AgentSession( stt=deepgram.STT(model="nova-3", language="multi"), llm=groq.LLM(model="meta-llama/llama-4-scout-17b-16e-instruct"), tts=cartesia.TTS( model="sonic-2", voice=voice_info["id"], language=voice_info["language"] ), vad=ctx.proc.userdata["vad"], _turn_detection_=MultilingualModel(), ) @_ctx_.room.on("participant_attributes_changed") def on_participant_attributes_changed( _changed_attributes_: dict[str, str], _participant_: rtc.Participant ) -> None: logger.debug("participant_attributes_changed fired") if participant.kind != rtc.ParticipantKind.PARTICIPANT_KIND_STANDARD: return if "paused" in _changed_attributes_: is_paused = participant.attributes.get("paused", "false").lower() == "true" asyncio.create_task(handle_pause_state_change(session, is_paused)) logger.info("Agent pause state changed") async def write_to_firestore() -> None: try: session_summary = session.history.to_dict() items = session_summary.get("items", []) conversation_text = "\n".join( _f_"{item.get('role','unknown')}: {' '.join(item.get('content', []))}" for item in items if item.get("type") == "message" ) if not session_id: logger.warning("⚠️ No session_id found in participant attributes") return # Summarize with LLM client = OpenAI( _base_url_="https://api.deepinfra.com/v1/openai", _api_key_=os.getenv("OPENAI_API_KEY"), ) response = client.chat.completions.create( model="meta-llama/Llama-3.2-3B-Instruct", messages=[ { "role": "system", "content": "Summarize this conversation clearly and concisely.", }, {"role": "user", "content": conversation_text}, ], _max_tokens_=500, ) print(_f_"Response from OPEN AI : ${response}") summary_text = response.choices[0].message.content print(_f_"SessioSummary ${summary_text}") print(_f_"SessionId : ${session_id}") # 🔑 Ensure session_id is captured (outer variable) # Build session object session_data = { "id": session_id, "summary": summary_text, "createdAt": firestore.SERVER_TIMESTAMP, } print(_f_"Session Doc : ${session_data}") # Append session to user's
sessions
array doc_ref = db.collection("users").document(ctx.room.id) doc_ref.update({ "sessions": firestore.ArrayUnion([session_data]) }) logger.info(_f_"✅ Session {session_id} saved to Firestore for user {ctx.room.id}") except Exception as e: logger.error(_f_"Error writing to Firestore: {e}") ctx.add_shutdown_callback(write_to_firestore) await session.start( room=ctx.room, agent=agent_instance, _room_input_options_=RoomInputOptions( audio_enabled=True, video_enabled=False, noise_cancellation=None, ), ) async def run_agent(_metadata_: dict = {}) -> None: ctx = agents.JobContext(metadata=json.dumps(metadata)) await start_session(ctx) if name == "__main__": agents.cli.run_app( agents.WorkerOptions(entrypoint_fnc=start_session, prewarm_fnc=prewarm) )
t
Your code for handling participant metadata and weaving it into the agent session looks really solid. Here are a few key points to make sure we're on the same page: • The
on_participant_connected
event is doing a great job grabbing and parsing the metadata from the participant object. This means
session_id
and
voice_id
get updated on the fly whenever someone joins. • The
VOICE_MAP
dictionary is nicely used to link the
voice_id
with the right voice setup, so the TTS works just right. • The
write_to_firestore
function is smartly set as a shutdown callback to save all the session info, including the summary, to Firestore. If you want to dive deeper or have any questions about any part of this, just let me know—I’m here to help!
f
I am unable to send metadata with agents framework
t
Hey there! If you want to send metadata with the Agents framework in LiveKit, you can easily include it as job metadata during agent dispatch. Here’s a simple way to do it: 1. Explicit Dispatch via API:
Copy code
import asyncio
from livekit import api

async def create_explicit_dispatch():
    lkapi = api.LiveKitAPI()

    dispatch = await lkapi.agent_dispatch.create_dispatch(
        api.CreateAgentDispatchRequest(
            agent_name="test-agent",
            room="my-room",
            metadata='{"user_id": "123", "user_name": "Alice", "user_phone": "+1234567890"}'  # JSON string
        )
    )
    print("created dispatch", dispatch)
Then, in your agent, you can grab this metadata inside the
entrypoint
function like this:
Copy code
import json

async def entrypoint(ctx: JobContext):
    metadata = json.loads(ctx.job.metadata)
    user_id = metadata["user_id"]
    user_name = metadata["user_name"]
    user_phone = metadata["user_phone"]
2. Via Participant Access Token:
Copy code
async def create_token_with_agent_dispatch() -> str:
    token = (
        api.AccessToken()
        .with_identity("my_participant")
        .with_grants(api.VideoGrants(room_join=True, room=room_name))
        .with_room_config(
            api.RoomConfiguration(
                agents=[api.RoomAgentDispatch(
                    agent_name="test-agent",
                    metadata='{"user_id": "123", "language": "en"}'
                )],
            ),
        )
        .to_jwt()
    )
    return token
Just a quick tip: make sure the metadata is serialized as a JSON string using
json.dumps()
before sending, and then parse it with
json.loads()
in your agent. If you run into any questions or need a hand, feel free to ask—I'm here to help! Sources: Agent dispatch | LiveKit Docs | Job lifecycle | LiveKit Docs | livekit-rtc/livekit/rtc/participant.py
f
worker never joins my room , I am using explicit dispatch
t
Hey there! If your worker isn't joining the room when using explicit dispatch, here are a few friendly tips to help you troubleshoot: • Double-check that the
agent_name
in your dispatch request exactly matches the name you used when registering the worker. Even a small difference can stop the worker from being assigned to the room. • Make sure you're making the dispatch request correctly with the
AgentDispatchService
. Here's a quick example:
Copy code
dispatch = await lkapi.agent_dispatch.create_dispatch(
    api.CreateAgentDispatchRequest(
        agent_name="test-agent",
        room="my-room",
        metadata='{"key": "value"}'
    )
)
• Take a peek at the worker logs to confirm the worker is running and registered under the right
agent_name
. • Also, check that the worker process is actively listening for dispatch requests and hasn’t been paused or stopped. If you’ve gone through these steps and things still aren’t working, just let me know! I’m here to help you figure it out. Sources: Agents telephony integration | LiveKit Docs | Agents telephony integration | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | Dispatching agents | LiveKit Docs | Dispatching agents | LiveKit Docs
f
I am dispatching it at token generation
t
Hey there! To make sure agent dispatch works smoothly when you include it in token generation, just follow these simple steps: 1. Set
agent_name
in WorkerOptions:
Make sure your agent is registered with the right
agent_name
(like
"test-agent"
) in your worker setup. This helps you have clear control over dispatching. 2. Include Agent Dispatch in Access Token: When you generate the participant's access token, add the agent dispatch configuration inside the
RoomConfiguration
. Here’s an example:
Copy code
at.roomConfig = new RoomConfiguration({
  agents: [
    new RoomAgentDispatch({
      agentName: "test-agent",
      metadata: '{"key": "value"}',
    }),
  ],
});
1. Ensure the Agent Worker is Running: Double-check that the agent with the specified
agent_name
is up and running, and properly registered with the LiveKit server. If it’s not running, dispatch won’t work. 2. Use Metadata (Optional): You can pass extra info (like a user ID) through the
metadata
field — this will be available in the agent’s
JobContext
for added context. If you hit any bumps or want a hand with anything else, just let me know! I’m here to help. Sources: Agent dispatch | LiveKit Docs | Web and mobile frontends | LiveKit Docs | Dispatching agents | LiveKit Docs | examples/agent-dispatch/index.ts
f
token= AccessToken( api_key=API_KEY, api_secret=API_SECRET ).with_grants( VideoGrants( room=room.name, room_join=True, can_publish=True, can_subscribe=True, can_publish_data=True, can_publish_sources=["microphone"], can_update_own_metadata=True ) ).with_identity(user_id).with_room_config( RoomConfiguration( agents=[ RoomAgentDispatch(agent_name="Evi", metadata=metadata) ], ), ).to_jwt()
t
Your token generation code with agent dispatch looks good! Just a couple of things to double-check: • Make sure the
agent_name
(
"Evi"
) exactly matches the name you have set up in the worker configuration. If they don’t match, the agent won’t get dispatched. • Take a quick look at the
metadata
variable and confirm it’s a properly formatted JSON string. For example:
Copy code
metadata = json.dumps({
    "key": "value",
    "another_key": "another_value"
})
• Verify that your agent worker is up and running, ready to listen for dispatch requests. • Peek at the LiveKit server logs to see if the dispatch request is going through smoothly. If the agent still isn’t joining the room, just let me know—we’ll figure it out together!
f
agent worker is up . name is same Evi . but still agent not joining
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
f
in logs I cannot see any job request received log