An intelligent SEO analysis tool that uses AI to provide insights on local competition, site indexing, and content optimization.
- Local Competition Analysis: Analyzes top 5 competitors in your area with AI-powered insights on their strengths, weaknesses, and strategies
- Site Indexing Check: Verifies your site's indexing status and provides AI-driven recommendations for improvement
- Content Analysis: Examines H1 headings and initial content with AI optimization suggestions
- Clone the repository:
git clone https://github.com/NFTcolumn/ai-seo-agent.git
cd ai-seo-agent- Install dependencies:
npm install-
Set up your environment:
- Create a
.envfile in the root directory - Get your OpenAI API key from OpenAI's platform
- Add your API key to the
.envfile:
OPENAI_API_KEY=your-api-key-hereNote: The
.envfile is included in.gitignoreto ensure your API key remains private. Never commit API keys or sensitive information to version control.If you're deploying this tool:
- Keep your API key secure
- Consider using environment variables in your deployment platform
- Rotate your API keys periodically for security
- Create a
Run the agent with:
node src/index.js <website-url> <keyword> <location>Example:
node src/index.js https://example.com "digital marketing" "San Francisco"The tool provides detailed analysis in three main areas:
-
Competition Analysis
- List of top 5 competitors
- AI analysis of their strengths and weaknesses
- SEO strategy insights
- Opportunities for improvement
-
Indexing Status
- Current indexing status
- AI recommendations for better indexing
- Priority actions needed
-
Content Analysis
- H1 optimization score
- Content relevance assessment
- Keyword optimization suggestions
- Readability analysis
- Specific improvement recommendations
- Node.js 14+
- OpenAI API key
- Internet connection for web scraping
- puppeteer: Web scraping and automation
- axios: HTTP client
- cheerio: HTML parsing
- openai: AI analysis
- dotenv: Environment variable management
ISC