Save this block to your file system
Add required npm packages
pnpm i @ai-sdk/react ai zod lucide-react @upstash/ratelimit @upstash/redis
Install shadcn/ui components
pnpm dlx shadcn@latest add button tabs accordion card textarea select slider badge sonner
Set up AI-powered components
npx ai-elements@latest
Optional: Configure Upstash for Rate Limiting