create-simli-app-openai
A Next.js app that talks to OpenAI’s Realtime API over WebRTC and speaks the answers through a Simli avatar.
/api/simli-tokencreates the Simli session token./api/openai-sessioncreates the OpenAI call for the browser’s WebRTC offer and returns only the answer. The model, voice and prompt are set on the server, inapp/avatar.ts, and the server hangs up the call when the session’s time is up.
.env.example, fill in SIMLI_API_KEY and OPENAI_API_KEY, then run npm install and npm run dev. The README has the details, including how to change the face, voice and prompt.
For an OpenAI agent that runs on a server instead, see LiveKit Agents or Pipecat.