Use Tako knowledge cards to ground your AI chatbot
package.json
— scripts (dev
, build
, start
) and dependencies.tsconfig.json
— already set for Edge Runtime; no changes needed.app/
— where your pages and API routes live..env.local
file for local runs (kept out of Git automatically):
Name | Purpose |
---|---|
TAKO_API_KEY | Your key from https://trytako.com. |
OPENAI_API_KEY | Model provider key (swap to ANTHROPIC_API_KEY , GROQ_API_KEY , etc. as needed). |
WhyOPENAI_API_KEY
? The AI SDK auto‑detects provider‑specific variables (OPENAI_API_KEY
,ANTHROPIC_API_KEY
, etc.), so you don’t need to reference the key in code.
app/api/chat/route.ts
:
vercel --prod
when you’re ready.