Skip to content

The AI agent is an intelligent automation tool designed to streamline SEO analysis by extracting key insights from websites and providing recommendations for similar websites. It also includes functionality to deliver results via email, making it a comprehensive solution for digital marketing and search engine optimization.

Notifications You must be signed in to change notification settings

B-Ismail/AgentAI_SEO

Repository files navigation

AI Agent for SEO Reporting

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.


Setup Instructions

Step 1: Clone the Repository

Clone the GitHub repository to your local machine:

git clone https://github.com/B-Ismail/AgentAI_SEO.git
cd AgentAI_SEO

Step 2: Create a Virtual Environment

Create and activate a Python virtual environment:

On Windows:

python -m venv venv
venv\Scripts\activate

On macOS/Linux:

python3 -m venv venv
source venv/bin/activate

Step 3: Install Dependencies

Install the required libraries:

pip install -r requirements.txt

Step 4: Set Up Environment Variables

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.

How to Obtain the RapidAPI Key

  1. Go to the RapidAPI SimilarWeb Insights API.
  2. Sign up for a free account if you don’t already have one.
  3. Once signed in, subscribe to the API and generate your unique API key.
  4. Use this key as the value for RAPIDAPI_KEY in your .env file.

How to Generate the App-Specific Password

  1. Go to your Google Account settings and navigate to the Security tab.
  2. Under the Signing in to Google section, locate App Passwords.
  3. Follow the instructions to generate a 16-character app-specific password for the application.
  4. 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.


Step 5: Run the Application

Start the application:

streamlit run app.py

This command will launch the app in your default web browser.


Additional Notes

  • 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 🚀

About

The AI agent is an intelligent automation tool designed to streamline SEO analysis by extracting key insights from websites and providing recommendations for similar websites. It also includes functionality to deliver results via email, making it a comprehensive solution for digital marketing and search engine optimization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages