🔗 Live Demo: https://rfp-deployed.vercel.app/
A comprehensive web application that streamlines the Request for Proposal (RFP) workflow using AI to automate procurement processes.
- Natural Language RFP Creation: Describe procurement needs in plain English, and AI converts it into a structured RFP
- Vendor Management: Maintain a database of vendors with contact information
- Automated Email Sending: Send RFPs to multiple vendors via email
- AI-Powered Response Parsing: Automatically extract structured data from vendor response emails
- Proposal Comparison: AI-assisted comparison and recommendation system to help choose the best vendor
- React 18 - UI framework
- React Router - Navigation
- Axios - HTTP client
- CSS3 - Styling
- Node.js - Runtime environment
- Express - Web framework
- PostgreSQL - Database
- OpenAI GPT-4 - AI/LLM integration
- Nodemailer - Email sending (SMTP)
- IMAP - Email receiving
- Node.js (v16 or higher)
- PostgreSQL (v12 or higher)
- OpenAI API key
- Email account with SMTP/IMAP access (Gmail recommended)
git clone <repository-url>
cd internship_projcd backend
npm installCreate a .env file in the backend directory:
# Server Configuration
PORT=5000
NODE_ENV=development
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=rfp_management
DB_USER=postgres
DB_PASSWORD=your_password
# OpenAI Configuration
OPENAI_API_KEY=your_openai_api_key
# Email Configuration (SMTP for sending)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_email@gmail.com
SMTP_PASSWORD=your_app_password
EMAIL_FROM=your_email@gmail.com
# Email Configuration (IMAP for receiving)
IMAP_HOST=imap.gmail.com
IMAP_PORT=993
IMAP_USER=your_email@gmail.com
IMAP_PASSWORD=your_app_password
# Frontend URL (for CORS)
FRONTEND_URL=http://localhost:3000Create a PostgreSQL database:
createdb rfp_managementOr using psql:
CREATE DATABASE rfp_management;Run the schema:
psql -U postgres -d rfp_management -f backend/db/schema.sqlcd frontend
npm installCreate a .env file in the frontend directory (optional):
REACT_APP_API_URL=http://localhost:5000/apiStart the backend server:
cd backend
npm start
# or for development with auto-reload:
npm run devThe backend will run on http://localhost:5000
Start the frontend:
cd frontend
npm startThe frontend will run on http://localhost:3000
-
POST /api/rfps/create-from-text- Create RFP from natural language- Body:
{ "userInput": "I need to procure..." }
- Body:
-
GET /api/rfps- Get all RFPs -
GET /api/rfps/:id- Get single RFP -
PUT /api/rfps/:id- Update RFP -
DELETE /api/rfps/:id- Delete RFP
GET /api/vendors- Get all vendorsGET /api/vendors/:id- Get single vendorPOST /api/vendors- Create vendor- Body:
{ "name": "...", "email": "...", ... }
- Body:
PUT /api/vendors/:id- Update vendorDELETE /api/vendors/:id- Delete vendor
GET /api/proposals/rfp/:rfpId- Get all proposals for an RFPGET /api/proposals/:id- Get single proposalPOST /api/proposals- Create proposal (usually via email parsing)
-
POST /api/email/send-rfp- Send RFP to vendors- Body:
{ "rfpId": 1, "vendorIds": [1, 2, 3] }
- Body:
-
POST /api/email/check-responses- Check for new vendor response emails
POST /api/ai/compare-proposals/:rfpId- Generate AI comparison and recommendationGET /api/ai/recommendations/:rfpId- Get AI recommendations for an RFP
- Navigate to "Create RFP" in the application
- Enter your procurement requirements in natural language, for example:
I need to procure laptops and monitors for our new office. Budget is $50,000 total. Need delivery within 30 days. We need 20 laptops with 16GB RAM and 15 monitors 27-inch. Payment terms should be net 30, and we need at least 1 year warranty. - Click "Create RFP"
- The AI will parse your input and create a structured RFP
- Go to "Vendors" page
- Click "Add Vendor" to add new vendors
- Fill in vendor details (name, email, contact person, etc.)
- Edit or delete vendors as needed
- Go to the RFPs list
- Click "Send to Vendors" on an RFP
- Select the vendors you want to send the RFP to
- Click "Send RFP"
- Emails will be sent to selected vendors
- Vendors reply to the RFP email
- In the proposal comparison page, click "Check for New Responses"
- The system will:
- Check for new emails
- Identify vendor responses
- Use AI to extract structured data (prices, terms, etc.)
- Automatically create proposal records
- Navigate to an RFP's proposal comparison page
- Once you have at least 2 proposals, click "Generate AI Comparison"
- The AI will:
- Compare all proposals
- Rank vendors
- Provide a recommendation with reasoning
- RFPs are stored with structured fields: title, description, budget, deadlines, terms
- Requirements are stored as JSONB for flexibility
- Status tracking: draft → sent → completed
- RFP Creation: Uses GPT-4 with structured JSON output to convert natural language to structured RFP
- Response Parsing: GPT-4 extracts key information from vendor emails (prices, terms, delivery times)
- Comparison: GPT-4 analyzes proposals and provides rankings and recommendations
- Sending: Uses Nodemailer with SMTP
- Receiving: Uses IMAP to check for new emails
- Email parsing identifies vendor responses by keywords (proposal, quote, RFP, etc.)
- PostgreSQL with normalized schema
- JSONB fields for flexible data (requirements, itemized prices, parsed data)
- Foreign key relationships for data integrity
- Single-user system (no authentication required)
- Email responses come from known vendor emails
- Vendor responses contain relevant keywords (proposal, quote, etc.)
- Gmail is used for email (can be configured for other providers)
- OpenAI GPT-4 API is available and accessible
- Email parsing requires manual trigger ("Check for New Responses" button)
- IMAP email checking is not real-time (polling-based)
- Vendor response matching is based on email address matching
- No support for complex attachments (PDF parsing not implemented)
- No email tracking (opens, clicks)
- No version control for RFPs
- Real-time email polling/notification
- PDF attachment parsing
- Multi-user support with authentication
- Email tracking and analytics
- RFP templates and versioning
- Advanced filtering and search
- Export functionality (PDF, Excel)
- Integration with procurement systems
This project was built with assistance from:
- Cursor AI - Code generation, refactoring, and debugging
- ChatGPT/Claude - Design decisions and architecture planning
AI tools helped with:
- Generating boilerplate code structure
- Creating API endpoints and database schemas
- Designing React components and styling
- Writing documentation
- Debugging and error handling
- Ensure PostgreSQL is running
- Verify database credentials in
.env - Check that the database exists
- For Gmail, use an "App Password" instead of regular password
- Enable "Less secure app access" or use OAuth2
- Verify SMTP settings match your email provider
- Ensure IMAP is enabled in your email account
- Check IMAP credentials
- Verify firewall/network allows IMAP connections
- Verify API key is correct and has credits
- Check API rate limits
- Ensure GPT-4 access (may require API tier upgrade)
This project is created for internship assignment purposes.
For questions or issues, please refer to the repository issues or contact the development team.