m
hi
t
Thanks for reaching out, aigentzi. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — thanks for reaching out. How can I help you today? If you’re not sure where to start, tell me: • whether you’re using LiveKit Cloud or a self-hosted LiveKit server, and • what you’re trying to do (join a room, publish audio/video, record, SDK/platform, error message, etc.) I can walk through troubleshooting steps, provide code snippets, or help with account/config details.
m
agent not joining : [App] Start button clicked app.js:119 [App] Fetching /api/connect... app.js:132 [App] Received API response: {token: 'eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiRW5nbGlzaCBUZWFja…EwIn0.1OxIrkLEVsAA88hPSD9IkC-pCG0MtUgbfy25uKFk5qk', url: 'wss://englishlive-3qjapr2j.livekit.cloud', room: 'english-teacher-1764706509442-f9dtn2'} app.js:141 [App] Checking for LiveKit: {window.LiveKit: 'object', window.LiveKitClient: 'object', window.LivekitClient: 'object', window.livekit: 'undefined'} app.js:155 [App] Connecting to LiveKit room... app.js:160 [App] Room connected successfully app.js:190 [App] Room connect() completed app.js:200 [App] Checking microphone permission... app.js:205 [App] Microphone permission granted app.js:213 [App] Enabling microphone in LiveKit room... utils.ts:178 publishing track {localTrack: $s} app.js:185 [App] Local track published: audio app.js:215 [App] Microphone enabled successfully utils.ts:178 disconnect from room {identity: 'user-1764706509910'} app.js:165 [App] Room disconnected: 1 app.js:109 [App] Start button clicked app.js:119 [App] Fetching /api/connect... app.js:132 [App] Received API response: {token: 'eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiRW5nbGlzaCBUZWFja…cyIn0.z86rwO9tsC_AsMLDtsgRYXUUGk0txiqyBLUrf9DClm4', url: 'wss://englishlive-3qjapr2j.livekit.cloud', room: 'english-teacher-1764706552207-sui1g4'} app.js:141 [App] Checking for LiveKit: {window.LiveKit: 'object', window.LiveKitClient: 'object', window.LivekitClient: 'object', window.livekit: 'undefined'} app.js:155 [App] Connecting to LiveKit room... app.js:160 [App] Room connected successfully app.js:190 [App] Room connect() completed app.js:200 [App] Checking microphone permission... app.js:205 [App] Microphone permission granted app.js:213 [App] Enabling microphone in LiveKit room... utils.ts:178 publishing track {localTrack: $s} app.js:185 [App] Local track published: audio app.js:215 [App] Microphone enabled successfully
t
Thanks — I’m looking at the logs you shared (connect → room connected → mic published) where the client connects and publishes audio but the agent never appears. To help pinpoint why the agent isn’t joining, a few quick clarifying questions and checks: 1. By “agent” do you mean a LiveKit AI agent (server-side bot via livekit-agents) or a human participant labeled “agent”? 2. How is the agent supposed to be started/dispatches? (automatic via token room config, explicit server-side dispatch call, or CLI/manual dispatch?) 3. Can you decode the token returned by
/api/connect
(remove the signature) and paste the payload here? I’m specifically looking for
room_config.agents
in the JWT. 4. Is the agent process running and registered with LiveKit? (Check agent logs or run
lk service status
/ your equivalent.) 5. Run
lk room info <room-name>
for the room shown in your logs (e.g.,
english-teacher-1764706509442-f9dtn2
) and tell me whether the agent appears in the participant list. 6. Which SDKs and versions are you using for server-side agent dispatch (e.g.,
livekit-server-sdk
,
livekit-agents
)? What I can do next after you reply: • If
room_config.agents
is missing from the token, I’ll show the exact token generation snippet to include the dispatch. • If the agent is running but not dispatched, I’ll give the CLI/API commands to trigger a manual dispatch and what errors to look for in agent logs. • If you prefer, paste a sanitized JWT payload and agent logs and I’ll inspect them for mismatches (agent_name, metadata, etc.). Which of the above would you like to do first? Sources: Connecting to LiveKit | LiveKit docs | Camera & microphone | LiveKit docs | Rooms, participants, and tracks | LiveKit docs | Agent dispatch | LiveKit docs | Python SDKs | livekit/livekit_composite | DeepWiki
m
livekit cloud agent
t
Thanks — since this is a LiveKit Cloud agent, here are the quickest checks so I can pinpoint why it’s not joining: 1. Does your token include agent dispatch? ◦ Decode the JWT from /api/connect (remove signature) and paste the payload here. I’m looking for
room_config.agents
with the correct
agent_name
. 1. Is the agent deployed and running in LiveKit Cloud? ◦ Run
lk agent list
or check the Agents page in the Cloud dashboard and tell me the agent’s state (Running, Building, CrashLoop, etc.). 1. Any agent logs or build errors? ◦ If possible, share the last few lines from
lk agent logs --name <agent-name>
or the build log (
--log-type=build
). 1. Are you relying on automatic dispatch or explicit dispatch? ◦ If your agent sets an
agent_name
in its decorator, automatic dispatch is disabled and you must dispatch explicitly (CLI/API/token). Tell me which method you expect. 1. Are you on a plan that may cause cold starts? ◦ If so, the agent can take ~10–20s to start. Let me know if you saw any delayed join attempts. Send the decoded JWT payload (sanitized), agent name/status, and any recent agent logs and I’ll tell you exactly what to change or which dispatch command to run. Sources: Agent dispatch | LiveKit docs | sip | livekit/livekit_composite | DeepWiki | Agent deployment CLI reference | LiveKit docs | Streamline Troubleshooting with Agent Observability | Log collection | LiveKit Docs