I'm working on a project using LiveKit Agents and ...
# server-api
n
I'm working on a project using LiveKit Agents and I’m wondering if anyone has experience on wrapping the agent startup in a FastAPI endpoint. What I’d like to do is create an endpoint that accepts a JSON payload like this:
Copy code
json
{
  "room_name": "cx49-ooig",
  "instructions": "you are an AI assistant",
  "greeting": "Hello! I'm your AI assistant. How can I help you today?"
}
r
It is not recommended to do it this way. You are looking for Agent Dispatch that is documented here: https://docs.livekit.io/agents/worker/agent-dispatch/
✅ 1
n
thank you sooo much