important-morning-24741
09/11/2025, 3:39 AMtall-airline-16756
09/11/2025, 3:39 AMtall-airline-16756
09/11/2025, 3:39 AMagent_name
field in the CreateAgentRequest
.
If you’d like to have a different agent name, the best way forward would be to create a new agent with the name you want. I’m here to help if you need any guidance with that!
Sources: livekit/livekit_cloud_agent.twirp.go | cmd/lk/agent.goimportant-morning-24741
09/11/2025, 3:41 AMtall-airline-16756
09/11/2025, 3:41 AMagent_name
using the LiveKit CLI. Here's a simple step-by-step approach to help you out:
1. Generate an agent template:
lk app create --template voice-pipeline-agent-python
2. Modify the agent code: Open the agent.py
file and set the agent_name
in the WorkerOptions
like this:
if __name__ == "__main__":
cli.run_app(
WorkerOptions(
entrypoint_fnc=entrypoint,
prewarm_fnc=prewarm,
agent_name="your-agent-name",
),
)
3. Create and deploy the agent:
lk agent create
4. Optionally dispatch the agent: When you're ready, you can dispatch the agent explicitly using the CLI:
lk dispatch create --new-room --agent-name your-agent-name --metadata 'custom metadata'
By setting the agent_name
directly in your code, your agent will register with that name, making it easy to target for dispatching. If you have any questions or need a hand with any of these steps, please don't hesitate to ask—I'm here to help!important-morning-24741
09/11/2025, 3:43 AMtall-airline-16756
09/11/2025, 3:44 AM