A Next.js application for handling complaints using AI, built with Vercel AI SDK and Langtail.
- Node.js (version 16 or higher)
- npm or yarn
- Langtail API key
- Clone the repository:
git clone <your-repository-url>
cd ai-letter-automated
- Install dependencies:
npm install
# or
yarn install
- Set up environment variables:
Create a .env.local
file in the root directory and add your Langtail API key:
LANGTAIL_API_KEY=your_api_key_here
- Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
- Next.js 14
- Vercel AI SDK
- Langtail (for prompt management)
- TypeScript
- Tailwind CSS
- Radix UI Components
Variable | Description |
---|---|
LANGTAIL_API_KEY |
Your Langtail API key (required) |
MIT