Production-ready AI chatbot with personalized responses
# Clone and install git clone https://github.com/co-browser/assistant-ui-kontext-starter cd assistant-ui-kontext-starter npm install # Configure environment cp .env.example .env.local # Add your API keys to .env.local # Run npm run dev
NEXT_PUBLIC_KONTEXT_API_KEY=ktext_... KONTEXT_API_KEY=ktext_... OPENAI_API_KEY=sk-...
// app/api/chat/route.ts import { anthropic } from "@ai-sdk/anthropic"; const result = streamText({ model: anthropic("claude-3-sonnet"), system: context.systemPrompt, messages });
Was this page helpful?