← Search

Next.js Chatbot — production patterns for web chatbots (AI SDK 7)
AI 🧪 Install ran in our test sandbox · Nov 11, 2026 📌 Pinned version: commit c51d9c8
Install test only, on the date shown. This does not guarantee the code is safe.
🔎 Install prompt analysis · 2026-10-13 : uses API keys or tokens
⚙ Needs: a Next.js project (opinionated stack: bun…

Next.js Chatbot — production patterns for web chatbots (AI SDK 7)

Opinionated blueprint for production Next.js web chatbots: AI SDK 7 ToolLoopAgent, human-in-the-loop tool approval, PostgreSQL session persistence, consent gating, SQL-first search, per-tool UI rendering, popup widget embedding, streaming error handling, theming, and evals

At a glance
What
Opinionated blueprint for production Next.js web chatbots: AI SDK 7 ToolLoopAgent, human-in-the-loop tool approval, PostgreSQL session persistence, consent gating, SQL-first search, per-tool UI rendering, popup widget embedding, streaming error handling, theming, and evals
Cost
Free
Needs
a Next.js project (opinionated stack: bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + PostgreSQL); a billed model API key for live responses; check package.json — v6 codebases need the v6 name translations included in the skill
Install
Copy the installer prompt below into your Muse — your agent does the rest.

Version:

Quick answer

Next.js Chatbot is a free Muse skill offering an opinionated blueprint for production Next.js web chatbots, built on AI SDK 7 ToolLoopAgent. It covers human-in-the-loop tool approval, PostgreSQL session persistence, consent gating, SQL-first search, per-tool UI rendering, popup widget embedding, streaming error handling, theming and evals.

⌁

Install

Copy the install package below, then paste it into Muse🧪 Install ran in our test sandbox · Nov 11, 2026📌 Pinned version: commit c51d9c8

Step 0 — before installing anything: read this install prompt, summarize in a few lines what this build does and what installing it involves, then ask me to confirm before you proceed. Prerequisites: a Next.js project (opinionated stack: bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + PostgreSQL); a billed model API key for live responses; check package.json — v6 codebases need the v6 name translations included in the skill Install "Next.js Chatbot — production patterns for web chatbots (AI SDK 7)" for me. It gives my agent @laguagu's production chatbot blueprint: AI SDK 7 ToolLoopAgent setup, route handler with consent gating and PostgreSQL session persistence, human-in-the-loop tool approval, per-tool UI rendering, popup widget embedding, streaming error handling (never leak raw error text to the browser), scope enforcement and prompt-injection defense, grounding rules, theming, and the testing split (UI harness vs model benchmarks). MIT licensed. Repository: https://raw.githubusercontent.com/laguagu/claude-code-nextjs-skills/c51d9c872cf5a3c0e147ea2ff8e04e8af39395f4/skills/nextjs-chatbot/SKILL.md Pinned version: install the code at commit c51d9c872cf5a3c0e147ea2ff8e04e8af39395f4 exactly (Skill Harbor tested this version). Do not substitute a newer version. If this commit is unreachable, stop and tell me. 1. Fetch the SKILL.md file (and any helper files) from the repository path into a temporary folder 2. Safety check: review the SKILL.md and scripts for anything suspicious (unexpected network calls, shell commands, credential harvesting). This repo should contain zero secrets in code — the model key lives in env, never in code. Verify that holds here; STOP on any red flag and tell me. 3. Install it as a skill: copy SKILL.md and its helper files into the agent's skills directory, in a folder named "nextjs-chatbot". 4. Verify with no network calls: frontmatter valid, files in place. 5. Report what was installed, where, and what I still need to do myself (e.g. check my AI SDK version against the v6/v7 translation table; add the recommended MCP servers to .mcp.json; set up the PostgreSQL chat_sessions/chat_messages tables; keep my model key in env only). GitHub is optional: if I have a GitHub account or the gh CLI, you may use it; otherwise public access is fine. Never require it unless it's in the prerequisites above. Rules: don't touch anything outside the temp folder and the install target. If anything looks off, stop and ask me.

🔒 Security, provenance and what this touches
🧭 What this touches
  • It works with an API key or a token that you provide.
Install prompt analysis · 2026-10-13
🔒 Security and provenance
📌 Pinned version: commit c51d9c8 · 2026-10-13
🧪 Install ran in our test sandbox · Nov 11, 2026
👁 Observed during the install test · Nov 11, 2026 : no network contact
🔎 Install prompt analysis · 2026-10-13 : uses API keys or tokens
What the scan found — excerpts from the install prompt
  • uses API keys or tokens — Prerequisites: a Next.js project (opinionated stack: bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + Postgre · Prérequis : un projet Next.js (stack opinionnée : bun, AI SDK 7, shadcn/ui + ai-elements, Drizzle + PostgreSQL
🔎 Last checked · Nov 19, 2026 : no change detected in the files linked by this install prompt
Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify
Wanna be extra careful?

The install prompt below already includes the vetting steps: your agent follows the community checklist before installing anything with executable code. Want more?

How to check a skill before installing →

✓

Verification certificate

Dated facts about what was checked for this listing, and how. This is not a safety certification.

Pinned version
c51d9c8 · 2026-10-13
Sandbox install test
Install ran in our test sandbox · Nov 11, 2026
Creator identity
Not verified
Fingerprint watch
Last checked · Nov 19, 2026 : no change detected in the files linked by this install prompt
Install prompt analysis
2026-10-13 : uses API keys or tokens

Skill Harbor never reviews the code of a listed skill. These are dated facts about the install prompt and our install test, not a safety certification. Review a skill yourself before you install it. How we verify

?

Questions

How do I install a skill?

Every product page includes a copy-paste install prompt. Paste it into your Muse and it sets the skill up for you — no manual configuration.

Where does my money go?

Straight to the seller. Skill Harbor never processes payments: checkout happens on the seller’s own page, usually Stripe.

What does the ✓ next to a creator’s name mean?

It means we confirmed the identity of the person behind the listing. It says nothing about the code itself — always check a skill before installing it.