πŸ“Š Perform SEO keyword research & insights with Ahrefs API and Gemini 1.5 Flash

⚑ 7,057 views Β· πŸ“Š Market Research & Insights

Description

This n8n workflow automates SEO keyword research by querying the Ahrefs API for keyword data and related keyword insights. The enriched data is then processed by an AI agent to format a response and provide valuable SEO recommendations.

Perfect for SEO specialists, content marketers, digital agencies, and anyone looking to gain valuable insights into keyword opportunities to boost their rankings.


βš™οΈ How This Workflow Works

This workflow guides you through the entire SEO keyword research process, from entering the initial keyword to receiving detailed insights and related keyword suggestions.

1. πŸ—£οΈ User Input (Keyword Query)

2. πŸ€– AI Agent (Input Verification)

3. πŸ”‘ Ahrefs API (Keyword Data Retrieval)

5. 🧠 AI Agent (Text Formatting)

6. πŸ“¨ Final Response


βœ… Smart Retry & Error Handling

Each subworkflow includes a fail-safe mechanism to ensure:


πŸ“‹ Ahrefs API Setup

To use this workflow, you’ll need to set up your Ahrefs API credentials:

πŸ”‘ Ahrefs API


πŸ“₯ How to Import This Workflow

  1. Copy the json code.
  2. Open your n8n instance.
  3. Open a new workflow.
  4. Paste anywhere inside the workflow.
  5. Voila.

πŸ› οΈ Customization Options


πŸ§ͺ Use Case Example

Trying to optimize your blog post around a specific keyword?

  1. Query a broad keyword, like β€œSEO tips”.
  2. Get related keyword data and search volume insights.
  3. Use the AI agent to provide keyword recommendations and additional topics to target.
  4. πŸ’₯ Boost your content strategy with fresh keywords and relevant search data!

πŸ”— Nodes Used

HTTP Request, AI Agent, Simple Memory, Chat Trigger, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup