- Python 3.12 or higher
- LangChain (latest version)
- OpenAI API key
- Chrome WebDriver (managed by webdriver-manager)
To run this application locally, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/dentaltix-product-search.git
cd dentaltix-product-search
- Create and activate a virtual environment:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
playwright install
Copy .env-example to .env and add your OpenAI API key.
cp .env-example .env
Edit .env to include your OpenAI API key:
nano .env
# Add the line: OPENAI_API_KEY=your_openai_api_key_here
Execute the script to start processing user input and open the search URL in a new browser tab:
python3 make_url.py
When prompted, enter your product search query in the terminal. For example:
- I need gloves of brand Blossom The application will generate a search URL and open it in a new Chrome tab.
For a detailed walkthrough of the project and setup instructions, check out the Loom video: