Files
vercel__chat/apps/docs/resources-edge-config.json
Ben Sabic efa96108bd docs: sync KB resources and harden sync-resources script (#635)
Syncs the bundled Chat SDK KB resources from Edge Config and hardens the
`sync-resources` script that generates them.

- **New guides** (4): Vercel Connect, the Slack Vercel Connect bot, AI
Gateway + AI SDK, and the daily digest bot. Existing guide bodies
refreshed and `templates.json` regenerated.
- **Script hardening** (`scripts/sync-resources.ts`):
- Fetch + validate all guides into memory **before** wiping the
resources dir — a failed fetch now leaves the working tree untouched.
- Validate the `resources-edge-config.json` shape with a clear error
instead of a blind cast.
  - Reject duplicate guide slug collisions.
- Retry transient fetches (5xx / network) with exponential backoff; fail
fast on 4xx, bad content-type, and oversized bodies.
- Mirror `skills/chat/SKILL.md` to **all four** committed copies (docs
site `.well-known` + `AGENTS.md`, and the two `create-chat-sdk` scaffold
templates).
  - TSDoc on every function.
- **Tests**: new offline consistency test in
`packages/integration-tests` — every guide has a non-empty file with no
orphans, `templates.json` mirrors the config, no duplicate slugs, and
all four `SKILL.md` copies are byte-identical to the source.

---------

Co-authored-by: Ben Sabic <bensabic@users.noreply.github.com>
2026-06-22 14:56:17 +10:00

113 lines
6.4 KiB
JSON

{
"resources": [
{
"title": "How to build an AI agent for Slack with Chat SDK and AI SDK",
"description": "Build a Slack AI agent using Chat SDK, AI SDK's ToolLoopAgent, and Vercel AI Gateway. Covers project setup, tool definitions, streaming responses, deployment to Vercel, and scaling tool selection with toolpick.",
"href": "https://vercel.com/kb/guide/how-to-build-an-ai-agent-for-slack-with-chat-sdk-and-ai-sdk",
"type": "guide"
},
{
"title": "Human-in-the-Loop with Chat SDK and Workflow SDK",
"description": "Pause durable workflows on Slack approval cards using Chat SDK and Workflow SDK. Uses createWebhook to suspend workflows until a button click, with patterns for multi-stage approvals, timeouts via durable sleep, and approver validation.",
"href": "https://vercel.com/kb/guide/human-in-the-loop-with-chat-sdk-and-workflow-sdk",
"type": "guide"
},
{
"title": "How to build an agent for Liveblocks",
"description": "Build an AI agent that replies to @-mentions in Liveblocks comment threads with streamed responses and tool calling. Uses Chat SDK, the Liveblocks adapter, AI SDK's ToolLoopAgent, and Redis for thread subscriptions and distributed locking.",
"href": "https://vercel.com/kb/guide/liveblocks-chat-sdk-ai-sdk",
"type": "guide"
},
{
"title": "How to build a Slack bot that manages files in Vercel Blob",
"description": "Build a Slack bot that lists, reads, uploads, and deletes files in Vercel Blob through tool calls. Uses Chat SDK, AI SDK's ToolLoopAgent, and Files SDK's createFileTools factory with approval-gated write tools and a read-only mode.",
"href": "https://vercel.com/kb/guide/slack-bot-vercel-blob",
"type": "guide"
},
{
"title": "Run and track deploys from Slack",
"description": "Build a Slack deploy bot with Chat SDK and Vercel Workflow. Dispatch GitHub Actions from a slash command, gate production behind approval, poll for completion, and notify Linear and GitHub when the run finishes.",
"href": "https://vercel.com/kb/guide/run-and-track-deploys-from-slack",
"type": "guide"
},
{
"title": "Triage form submissions with Chat SDK",
"description": "Build a Slack bot that triages form submissions with interactive cards. Forward, edit, or mark as spam without leaving Slack. Built with Chat SDK, Hono, and Resend.",
"href": "https://vercel.com/kb/guide/triage-form-submissions-with-chat-sdk",
"type": "guide"
},
{
"title": "How to build a Slack bot with Next.js and Redis",
"description": "This guide walks through building a Slack bot with Next.js, covering project setup, Slack app configuration, event handling, interactive features, and deployment.",
"href": "https://vercel.com/kb/guide/how-to-build-a-slack-bot-with-next-js-and-redis",
"type": "guide"
},
{
"title": "Create a Discord support bot with Nuxt and Redis",
"description": "This guide walks through building a Discord support bot with Nuxt, covering project setup, Discord app configuration, Gateway forwarding, AI-powered responses, and deployment.",
"href": "https://vercel.com/kb/guide/create-a-discord-support-bot-with-nuxt-and-redis",
"type": "guide"
},
{
"title": "Ship a GitHub code review bot with Hono and Redis",
"description": "This guide walks through building a GitHub bot that reviews pull requests on demand. When a user @mentions the bot on a PR, Chat SDK picks up the mention, spins up a Vercel Sandbox with the repo cloned, and uses AI SDK to analyze the diff.",
"href": "https://vercel.com/kb/guide/ship-a-github-code-review-bot-with-hono-and-redis",
"type": "guide"
},
{
"title": "Build your own Slackbot with Vercel Connect",
"description": "Learn how to build your very own Slackbot with Chat SDK and AI SDK. Vercel Connect supplies runtime Slack tokens and forwards triggers, so you never store a long-lived bot token.",
"href": "https://vercel.com/kb/guide/build-a-slack-bot-with-vercel-connect",
"type": "guide"
},
{
"title": "Give your agents secure access to third-party APIs",
"description": "Use Vercel Connect to call provider APIs like Slack, GitHub, and Snowflake from your agents and services with short-lived, user-authorized tokens instead of long-lived secrets.",
"href": "https://vercel.com/kb/guide/vercel-connect",
"type": "guide"
},
{
"title": "Build AI agents with AI Gateway and AI SDK",
"description": "Build AI agents on Vercel with AI Gateway and AI SDK, then make them reliable, capable, and durable with Sandbox, Chat SDK, Vercel Connect, and Workflow.",
"href": "https://vercel.com/kb/guide/ai-gateway-and-ai-sdk",
"type": "guide"
},
{
"title": "Build a daily digest bot with Chat SDK and Workflow SDK",
"description": "Create your own daily digest bot that posts a daily digest of GitHub stats to Slack. Learn how to use Vercel Connect to set up Slack and GitHub app securely in your project.",
"href": "https://vercel.com/kb/guide/daily-digest-bot-with-chat-sdk-and-workflow-sdk",
"type": "guide"
},
{
"title": "Chat SDK Liveblocks Bot",
"description": "Build a bot that you can engage with inside Liveblocks.",
"href": "https://vercel.com/templates/next.js/chat-sdk-liveblocks-bot",
"type": "template"
},
{
"title": "Durable iMessage Agent",
"description": "Durable iMessage agent powered by the Sendblue adapter.",
"href": "https://vercel.com/templates/nitro/durable-imessage-ai-agent",
"type": "template"
},
{
"title": "Knowledge Agent",
"description": "Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base.",
"href": "https://vercel.com/templates/nuxt/chat-sdk-knowledge-agent",
"type": "template"
},
{
"title": "Community Agent",
"description": "Open source AI-powered Slack community management bot with a built-in Next.js admin panel. Uses Chat SDK, AI SDK, and Vercel Workflow.",
"href": "https://vercel.com/templates/next.js/chat-sdk-community-agent",
"type": "template"
},
{
"title": "Caltext",
"description": "iMessage calorie tracking assistant powered by AI.",
"href": "https://vercel.com/templates/hono/caltext",
"type": "template"
}
]
}