This branch transforms the AI Chat Assistant into a Sales Research Assistant specifically designed for pre-sales engineers and sales representatives. The app now provides AI-powered customer research capabilities with interactive follow-up questions.
- Sales-focused RAG system with specialized prompts for company analysis
- Follow-up question generation API endpoint
- Enhanced document processing with company name association
- Improved context retrieval (5 chunks instead of 3)
- Sales Research UI with building icons and professional design
- Company document upload with name association
- Interactive follow-up questions that appear after each AI response
- Enhanced error handling and user feedback
POST /api/generate_followup- Generates contextual follow-up questions- Enhanced
POST /api/upload- Now requires company name - Enhanced
POST /api/rag_chat- Sales-focused analysis
test_company.pdf- Sample company document for testingtest_sales_research.py- Comprehensive test script
api/app.py- Complete backend transformationfrontend/app/page.tsx- Complete frontend transformationvercel.json- Updated for production deployment
- All existing dependencies maintained
- No new dependencies required
- Backend:
cd api && PYTHONPATH=.. uvicorn app:app --reload --port 8000 - Frontend:
cd frontend && npm run dev - Test: Open http://localhost:3000
The app is ready for Vercel deployment with the updated vercel.json configuration.
-
Create Pull Request:
# Navigate to GitHub and create PR from: # sales-research-tool → main
-
Review Changes:
- Backend: Sales-focused prompts and follow-up generation
- Frontend: Complete UI transformation
- Configuration: Updated Vercel settings
-
Merge to Main:
git checkout main git pull origin main git merge sales-research-tool git push origin main
# Create and merge pull request
gh pr create --title "Sales Research Assistant Feature" --body "Transform app into sales research tool with follow-up questions"
gh pr merge --merge --delete-branch# Switch to main branch
git checkout main
# Merge the feature branch
git merge sales-research-tool
# Push to remote
git push origin main
# Clean up (optional)
git branch -d sales-research-tool
git push origin --delete sales-research-tool-
Upload Test Document:
- Company: "Acme Corporation"
- File:
test_company.pdf
-
Test Questions:
- "What are Acme Corporation's main business challenges?"
- "Who are the key decision makers?"
- "What is their technology stack?"
-
Verify Features:
- ✅ Sales-focused UI appears
- ✅ Document uploads successfully
- ✅ AI provides sales insights
- ✅ Follow-up questions appear
- ✅ Clicking follow-up questions works
# Update API key in test script
python test_sales_research.py- Upload prospect 10-K reports
- Analyze business challenges
- Identify decision makers
- Understand technology stack
- Research competitor documents
- Identify market opportunities
- Understand competitive landscape
- Generate follow-up questions
- Discover pain points
- Map stakeholder relationships
- API Key Required: Users must provide OpenAI API key
- File Size Limit: 10MB maximum for PDF uploads
- Production Ready: All changes are production-ready
- Backward Compatible: Existing chat functionality preserved
If issues arise during merge or deployment:
- Check Vercel deployment logs
- Verify API endpoints are responding
- Test with the provided test files
- Review browser console for frontend errors
Branch: sales-research-tool
Status: Ready for merge
Deployment: Production-ready