AutomationMart
Home/Browse/Perform SEO keyword research & insights with Ahrefs API and Gemini 1.5 Flash
n8n

Perform SEO keyword research & insights with Ahrefs API and Gemini 1.5 Flash

n8nn8n9 modulesv1.0
Gemini

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 proc

At a glance

Perform SEO keyword research & insights with Ahrefs API and Gemini 1.5 Flash is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gemini
Modules
9
Price
Free
Version
v1.0
Perform SEO keyword research & insights with Ahrefs API and Gemini 1.5 Flash workflow diagram

About this workflow

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) - The user enters a keyword they want to research. - This input is captured by the Chat Input Node, ready for analysis. 2. 🤖 AI Agent (Input Verification) - The AI Agent reviews the keyword input for any grammatical errors or extra commentary. - If necessary, it cleans the input to ensure a seamless query to the API. 3. 🔑 Ahrefs API (Keyword Data Retrieval) - The cleaned keyword is sent to the Ahrefs Keyword Tool API. - This retrieves a detailed report including metrics like search volume, keyword difficulty, and CPC. 4. 💡 Related Keywords Extraction (Using JavaScript Function) - The workflow uses a JavaScript function to extract main keyword data and 10 related keywords data from the Ahrefs response. - You can tweak the script to adjust the number of related keywords or the level of detail you want. 5. 🧠 AI Agent (Text Formatting) - The aggregated data, including both the main keyword and related keywords, is sent to an AI agent. - The AI agent formats the data into a concise, readable format that can be shared with the user. 6. 📨 Final Response - The formatted text is delivered to the user with keyword insights, recommendations, and related keyword suggestions. --- ✅ Smart Retry & Error Handling Each subworkflow includes a fail-safe mechanism to ensure: - ✅ Proper error handling for any issues with the API request. - 🕒 Failed API requests are retried after a customizable period (e.g., 2 hours or 1 day). - 💬 User input validation prevents any incorrect or malformed queries from being processed. --- 📋 Ahrefs API Setup To use this workflow, you’ll need to set up your Ahrefs API credentials: 🔑 Ahrefs API - Sign up for an Ahrefs account and get your key here: Ahrefs Keyword Tool API - Once signed up, you'll receive an API key, which you’ll use in the x-rapidapi-key header in n8n. - Ensure you check the Ahrefs Keyword Tool API documentation for more details on available parameters. --- 📥 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 - Adjust the number of related keywords extracted (default is 10). - Customize the AI agent response formatting or add specific recommendations for users. - Modify the JavaScript function to extract different metrics from the Ahrefs API. --- 🧪 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!

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create high quality UGC images with Nano Banana (Cheaper & Faster)

Who’s it for? - Content Creators - E-commerce Stores - Marketing Team Description: Generate unique UGC images for your products. Simply upload a product image into a Google Drive folder, and the workflow will instantly generate 50 unique, high-quality AI UGC images using Nano Banana via Fal.ai. All results are automatically saved back into the same folder, ready to use across social media, e-commerce stores, and marketing campaigns. --- How it works? 📺 YouTube Video Tutorial:

Free

Automated resume job matching engine with Bright Data MCP & OpenAI 4o mini

Notice Community nodes can only be installed on self-hosted instances of n8n. Who this is for The Automated Resume Job Matching Engine is an intelligent workflow designed for career platforms, HR tech startups, recruiting firms, and AI developers who want to streamline job-resume matching using real-time data from LinkedIn and job boards. This workflow is tailored for: - HR Tech Founders - Building next-gen recruiting products - Recruiters & Talent Sourcers - Seeking automated candidate-job fit

Free

Send personalized birthday and anniversary emails with Google Sheets, Gemini, and Gmail

Birthday & Milestone Message Automation (n8n Google Sheets + Gemini AI + Gmail) This workflow automatically sends personalized birthday and anniversary emails to clients. It runs daily, checks a Google Sheet for matching dates, generates a warm AI message using Google Gemini and sends it via Gmail. It also includes a thoughtful investment idea tailored to the client’s age, risk profile and relationship type. Quick Implementation Steps 1. Connect Google Sheets OAuth2 2. Add your Google Gemini API

Free

Create custom PDF documents from templates with Gemini & Google Drive

This workflow contains community nodes that are only compatible with the self-hosted version of n8n. 1 — What Does It Do / Which Problem Does It Solve? This workflow turns Google Docs-based contract & form templates into ready-to-sign PDFs in minutes—all from a single chat flow. - Automates repetitive document creation. Instead of copying a rental, sales, or NDA template and filling it by hand every time, the bot asks for the required values and fills them in. - Eliminates huma

Free

Store chat data in Supabase PostgreSQL for WhatsApp/Slack chatbot

n8n Template: Store Chat Data in Supabase PostgreSQL for WhatsApp/Slack Integration This n8n template captures chat data (like user ID, name, or address) and saves it to a Supabase PostgreSQL database. It’s built for testing now but designed to work with WhatsApp, Slack, or similar platforms later, where chat inputs aren’t predefined. Guide with images can be found on: Step 1: Configure Firewall Rules in Your VPC Network To let your n8n instance talk to Supabase, add a firewall rule in your VPC

Free

Instant infographic generator (LINE + Nano Banana Pro)

About This Template This workflow turns complex data or topics sent via LINE into beautiful, easy-to-understand Infographics. It combines Gemini (to analyze data and structure the visual layout) and Nano Banana Pro (accessed via Kie.ai API) to generate high-quality, data-rich graphics (Charts, timelines, processes). How It Works 1. Input: User sends a topic or data points via LINE (e.g., "Japan's Energy Mix: 20% Solar, 10% Wind..."). 2. Data Visualization Logic: Gemini acts as an Information Des

Free

Report spam and phishing URLs from IMAP mailboxes to Spamhaus

This workflow automates URL reporting to Spamhaus based on incoming spam/phishing sample emails. It watches one or more IMAP folders, extracts URLs from each email body, removes duplicates and common noise, and submits the remaining URLs to the Spamhaus submission API with the appropriate threat context. What it does - Monitors one or more IMAP mailboxes/folders containing abuse samples (spam/phish). - Processes each email individually in a loop. - Extracts and normalizes URLs from the email tex

Free

Facebook ads competitive analysis using Gemini and Open AI

How it works - User submits a keyword through a form to trigger the workflow. - Ads matching the keyword are scraped from Facebook Ads Library. - Ads are filtered by media type (image or video). - Images are analyzed using an AI model to describe visuals and text. - Videos are downloaded, processed, and sent to Gemini for visual and spoken content analysis. - Text, URLs, and media descriptions are compiled. - All ad insights are saved into a Google Sheet for easy viewing. Set up steps - Requires

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free