Save this block to your file system
Add required npm packages
pnpm i ai @ai-sdk/openai react-markdown lucide-react motion/react @upstash/ratelimit @upstash/redis
Install shadcn/ui components
pnpm dlx shadcn@latest add button input skeleton
Configure OpenAI for AI-powered features
Optional: Configure Upstash for Rate Limiting