Agent Setup

Create an AI agent

Build an autonomous AI agent in Next.js with the Vercel AI SDK using the Agent class. Create agents that reason step-by-step, call tools, and produce structured outputs — the foundation for every advanced agentic workflow from research bots to coding assistants.

  • Research agents that search, read URLs, and synthesize answers
  • Task automation agents that orchestrate multi-step workflows
  • Code review or generation agents with tool-augmented reasoning
  • Customer support agents with CRM and knowledge base access

Tech stack

Vercel AI SDKNext.jsTypeScriptZodAnthropic Claude
npx shadcn@latest add https://shadcnagents.com/r/basics-agent
Claude Agent

Received task

Research latest AI developments

Planning

Breaking down into subtasks

Tool: web_search

"AI research 2025 breakthroughs"

Tool: extract_content

Processing 3 sources

Synthesizing

Combining research findings

Response

Generating final report