This project is a minimal Next.js 14 application demonstrating a multi-agent chatbot using the assistant-ui components and the OpenAI Node SDK v5. Agent routing leverages a lightweight LLM call to choose between the empathetic Listener and the coaching Solver.
- Copy 
.env.exampleto.envand fill in your OpenAI credentials. - Install dependencies with 
{YOUR_PM} install. - Run the development server with 
{YOUR_PM} run devand openhttp://localhost:3000. 
- Create a production build with 
{YOUR_PM} run build. - Start the built app with 
{YOUR_PM} start. 
Deploy to your preferred platform (e.g. Vercel, Cloudflare). Ensure the OPENAI_API_KEY environment variable is configured in the hosting environment.