Skip to content

chaynHQ/ai-letter-automated

Repository files navigation

AI Complaint Tool

A Next.js application for handling complaints using AI, built with Vercel AI SDK and Langtail.

Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn
  • Langtail API key

Getting Started

  1. Clone the repository:
git clone <your-repository-url>
cd ai-letter-automated
  1. Install dependencies:
npm install
# or
yarn install
  1. 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
  1. Run the development server:
npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Tech Stack

  • Next.js 14
  • Vercel AI SDK
  • Langtail (for prompt management)
  • TypeScript
  • Tailwind CSS
  • Radix UI Components

Environment Variables

Variable Description
LANGTAIL_API_KEY Your Langtail API key (required)

License

MIT