Latenode

Automate SEO keyword research and content insights with Ahrefs and Gemini

This automation workflow retrieves search data from the Ahrefs API to identify high-volume SEO keywords, and then utilizes the Gemini 1.5 Flash AI model to generate actionable content insights and strategy recommendations based on that data.

Designed for digital marketers and SEO specialists, the workflow automates the process of SEO keyword research, providing users with a concise and readable report of the main keyword and related keywords, along with valuable insights to improve their content and search engine optimization efforts.

Updated Apr 2, 2026Est. run: 9sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
SEO, marketing & analytics

Workflow preview

What this template does

  • Retrieves high-volume SEO keywords from the Ahrefs API.
  • Generates actionable content insights using the Gemini 1.5 Flash AI model.
  • Produces a concise and readable report of main keywords and related keywords.
  • Provides strategy recommendations to improve content and search engine optimization.
  • Automates the SEO keyword research process for digital marketers and SEO specialists.

How it works

1
Trigger

Keyword Query Extraction & Cleaning

The workflow starts by verifying and cleaning the user's keyword input to prepare it for the Ahrefs API request.

2
Action

Ahrefs Keyword API Request

The cleaned keyword is sent to the Ahrefs Keyword Tool API to retrieve search data and related keywords.

3
Logic

Extract Main Keyword & Related Keywords

The workflow extracts the main keyword data and up to 10 related keywords from the Ahrefs API response.

4
Action

Aggregate Keyword Data

The main keyword and related keywords data is combined into a single output.

5
transform

Keyword Data Response Formatter

The aggregated keyword data is formatted into a concise, readable report.

6
AI

Generate Keyword Insights & Recommendations

The Gemini Chat Model is used to provide SEO insights and recommendations based on the keyword data.

Setup guide

1

Add Ahrefs API credential in Latenode Credentials

1. Go to the Latenode Credentials panel. 2. Add a new credential for the Ahrefs API. 3. Enter your Ahrefs API key in the credential settings.

2

Configure Ahrefs API node in Latenode builder

1. Add an Ahrefs API node to your workflow. 2. In the node settings, select the Ahrefs API credential you added in the previous step. 3. Enter the keyword you want to research in the 'Keyword' input field.

3

Configure Keyword Data Extraction in Latenode builder

1. Add a JavaScript node after the Ahrefs API node. 2. In the JavaScript node settings, write a JavaScript function to extract the main keyword data and 10 related keywords data from the Ahrefs API response. 3. Map the extracted data to the node's output.

4

Configure Gemini 1.5 Flash AI Agent in Latenode builder

1. Add a Gemini 1.5 Flash node after the Keyword Data Extraction node. 2. In the node settings, configure the system message and other parameters to generate the final SEO insights and recommendations report.

5

Configure Output Formatting in Latenode builder

1. Add a final JavaScript node to format the Gemini 1.5 Flash response into a clean, readable output. 2. Map the relevant data fields from the Gemini 1.5 Flash node to the JavaScript node's output.

Requirements

Obtain an Ahrefs API key with access to keyword search data
Set up the Gemini 1.5 Flash AI model within the Latenode workspace
Configure the Latenode workspace to access the Ahrefs API and Gemini 1.5 Flash
Ensure the Latenode workspace has the necessary permissions to retrieve data from the Ahrefs API and generate insights using Gemini 1.5 Flash

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
SEO, marketing & analytics

Comprehensive SEO Audit: Boost Website Performance and Rankings

The SEO On-site Audit workflow is an automated tool that provides a comprehensive analysis of a website's technical health, content quality, and user experience. By integrating with the Google PageSpeed API and DeepSeek API, the workflow collects and analyzes vital on-site data, including metadata, headings, links, and site speed. It then generates detailed, actionable reports with recommendations for improving search engine visibility and rankings. This turnkey solution enables users to optimize website performance and search rankings effortlessly, with the ability to scale audits across single pages or entire website portfolios.

31s$0.0019
SEO, marketing & analytics

Sync Google Ads search volume to your Google Sheet for SEO insights

This automation helps users retrieve search volume data for a list of SEO keywords from the Google Ads API, and automatically populate the results back into a Google Sheet. It enables users to generate accurate search volume data, identify seasonal trends, assess keyword difficulty, and gather data-driven insights to inform their SEO campaigns. The workflow connects to the Google Ads API to fetch the monthly search volume, historical trends, and competition metrics for each keyword. Users can customize the list of keywords and choose their own database or storage system to store the generated data.

9s$0.0006
SEO, marketing & analytics

Receive SMS alerts when new YouTube videos are published

This Latenode automation allows users to monitor a specific YouTube channel or keyword, and automatically receive SMS notifications via a service like Twilio or an SMS carrier whenever a new video is published. The integration is triggered by a 'New Video in Channel' event that monitors the specified YouTube channel, and then sends an SMS message with details about the new video, including the title and a link. This automation is designed to help users stay up-to-date on the latest content from their favorite YouTube creators or their own channel, without having to manually check for updates.

8s$0.0005