This project features an AI agent designed for generating SEO reports, using tools like LangChain and RapidAPI. The agent interacts with users, fetches live SEO data, and provides actionable insights for businesses.
Clone the GitHub repository to your local machine:
git clone https://github.com/B-Ismail/AgentAI_SEO.git
cd AgentAI_SEO
Create and activate a Python virtual environment:
python -m venv venv
venv\Scripts\activate
python3 -m venv venv
source venv/bin/activate
Install the required libraries:
pip install -r requirements.txt
Create a .env
file in the project root and configure the following variables:
RAPIDAPI_KEY=your_rapidapi_key_here
OPENAI_API_KEY=your_openai_api_key_here
[email protected]
SENDER_PASSWORD=your_email_password_here
RAPIDAPI_KEY
: Your RapidAPI key for accessing SEO-related APIs.OPENAI_API_KEY
: Your OpenAI API key for accessing GPT-based functionality.SENDER_EMAIL
: The email address used for sending reports.SENDER_PASSWORD
: The app-specific password for the sender email.
- Go to the RapidAPI SimilarWeb Insights API.
- Sign up for a free account if you don’t already have one.
- Once signed in, subscribe to the API and generate your unique API key.
- Use this key as the value for
RAPIDAPI_KEY
in your.env
file.
- Go to your Google Account settings and navigate to the Security tab.
- Under the Signing in to Google section, locate App Passwords.
- Follow the instructions to generate a 16-character app-specific password for the application.
- Use this generated password as the value for
SENDER_PASSWORD
in your.env
file.
Ensure the .env
file is not tracked by Git by adding it to .gitignore
.
Start the application:
streamlit run app.py
This command will launch the app in your default web browser.
- Ensure you have Python 3.8 or higher installed.
- If you encounter issues with SMTP, ensure the sender email allows third-party app access or use an app-specific password.
Thank you for checking in 🚀