This is a backend service for lead qualification, built with Flask and integrated with the OpenAI API.
- Clone the repository:
git clone [https://github.com/your-username/your-repo.git](https://github.com/your-username/your-repo.git) cd your-repo
- Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Configure API Key:
Create a
.env
file in the project root and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here
- Run the application:
The server will run on
flask run
http://127.0.0.1:5000
.
You can use curl
or a tool like Postman/Insomnia to interact with the API.
POST /offer
This endpoint accepts a JSON payload describing the product.
curl -X POST [http://127.0.0.1:5000/offer](http://127.0.0.1:5000/offer) \
-H "Content-Type: application/json" \
-d '{"name": "AI Outreach Automation", "value_props": ["24/7 outreach", "6x more meetings"], "ideal_use_cases": ["B2B SaaS mid-market"]}'