A Next.js application that uses AI to generate personalized B2B sales pitches from CSV lead data.
Smart Pitch Generator is a tool designed to help sales teams create personalized outreach messages at scale. Upload your leads in CSV format, provide context about your company and offerings, and the application will generate tailored pitches for each lead based on intelligent grouping.
- CSV Lead Import: Upload your lead data in CSV format
 - AI-Powered Lead Grouping: Automatically groups similar leads for targeted messaging
 - Personalized Pitch Generation: Creates customized pitches for each lead or group
 - Multiple Output Formats: Generate content for emails, LinkedIn messages, and more
 - Export Options: Download results as CSV for easy integration with your CRM
 
- Frontend: Next.js, React, TypeScript, Tailwind CSS
 - AI Integration: LangChain with OpenAI
 - Data Processing: CSV parsing with Papa Parse
 
For a quick guide to get up and running, see Quick Start Guide.
Sample files:
- Example .env file - Template for your environment variables
 - Sample CSV file - Example lead data format
 
- Node.js (v18 or later)
 - npm or yarn
 - OpenAI API key or Alchemyst API access
 
Create a .env.local file in the root directory with the following variables:
# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
# Alchemyst Configuration (if using)
ALCHEMYST_API_KEY=your_alchemyst_api_key
ALCHEMYST_API_URL=https://api.alchemyst.ai
ALCHEMYST_BASE_URL=api.openai.com/v1
- Clone the repository:
 
git clone https://github.com/Rustix.git/PitchAI.git
cd PitchAI- Install dependencies:
 
npm install
# or
yarn install- Start the development server:
 
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser
 
Your CSV file should include the following columns (at minimum):
First NameorFull NameLast Name(if not using Full Name)Job TitleCompany Name
Additional columns that can enhance personalization:
IndustryWebsiteLocationKeywords
- Upload Leads: Use the file uploader to import your CSV file
 - Configure Your Pitch: Enter context about your company and offerings
 - Review Leads: Check the preview table to ensure your data was imported correctly
 - Generate Pitches: Click the generate button to start the AI processing
 - Export Results: Download the results as a CSV or copy individual pitches
 
/app: Next.js app router components and API routes/src/components: React components for the UI/src/functions: Core business logic and AI integration/src/types: TypeScript type definitions/src/utils: Utility functions for data processing
npm run build
# or
yarn buildStart the production server:
npm run start
# or
yarn start