A Python application for Windows that automates the process of responding to Google Business reviews using AI-generated responses. The application uses OpenAI's API with a fine-tuned model to generate contextually appropriate responses based on your business policies.
- Extracts Google Business reviews from Outscraper-generated Excel files
- Generates AI responses using a fine-tuned OpenAI model
- Provides a GUI interface for review management
- Allows manual review and editing of AI-generated responses
- Automatically posts responses to Google Business reviews
- Supports background processing for seamless operation
- Python 3.8+
- Google Chrome browser
- Windows OS
- OpenAI API access with a fine-tuned model
- Chrome profile with access to your Google Business account
- Outscraper.com account
- Clone the repository:
git clone https://github.com/yourusername/GoogleReviewsAI.git
cd GoogleReviewsAI- Install required packages:
pip install -r requirements.txt- Create a
.envfile in the project root with the following structure:
# OpenAI API key for your fine-tuned model
OPENAI_API_KEY=your-api-key-here
# Chrome user profile path for Selenium
profile_path=C:\\Users\\YourUsername\\AppData\\Local\\Google\\Chrome\\User Data
# Chrome profile directory
profile_directory=Default
# Excel file download path (usually your Downloads folder)
Ruta_Archivo_Excel=C:\\Users\\YourUsername\\Downloads-
Create an account at Outscraper.com
-
Set up a new scraping task for your Google Business reviews
-
Important: Select ALL available columns when configuring the export
-
Required columns for the script:
- review_text
- owner_answer
- author_title
- review_rating
- review_datetime_utc
- review_link
- reviews_link
- name
- reviews
- rating
-
Download the Excel file to the path specified in your
.envfile
-
Setup your Chrome profile:
- Make sure you're logged into your Google Business account
- The profile path in
.envshould point to your Chrome user data directory
-
Fine-tune your OpenAI model:
- Create a fine-tuned model with your business policies and response style
- Update the model name in the code (currently set as "ft:gpt-3.5-turbo-1106:your-model-name")
- Download your latest reviews from Outscraper.com
- Run the application:
python main.py-
The GUI will display:
- Business information from the Outscraper export
- Recent reviews
- AI-generated responses
- Options to edit responses
- Buttons to navigate through reviews
-
For each review:
- Review the AI-generated response
- Edit if necessary
- Click "Responder" to post the response
- The response will be posted in the background
[Rest of the README remains the same...]
GoogleReviewsAI/
├── main.py # Main application file
├── requirements.txt # Python dependencies
├── .env # Environment variables
└── README.md # Documentation
- wxPython: GUI framework
- pandas: Data manipulation
- selenium: Web automation
- openai: AI response generation
- python-dotenv: Environment variable management
- Additional dependencies listed in requirements.txt
- The application requires a logged-in Chrome profile with access to Google Business
- Responses are generated based on your fine-tuned model's training
- Background processing allows for continuous GUI interaction
- Excel files with reviews should be in the specified download directory
- Keep your
.envfile secure and never commit it to version control - Regularly update your API keys
- Use secure Chrome profiles
- Monitor API usage and costs
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request