Boost your SEO by automatically finding internal linking opportunities using this practical n8n workflow. Connect Google Sheets and SerpAPI to generate link suggestions efficiently.
Download this n8n workflow template and start using it instantly.
SEO Specialists and Content Managers: Professionals focused on improving website structure and search engine rankings.
Website Owners: Individuals running large blogs or e-commerce sites needing systematic internal link auditing.
n8n Users: Anyone looking for practical n8n templates that combine external API data extraction (SerpAPI) with database management (Google Sheets).
Automation Enthusiasts: Those seeking a sophisticated n8n workflow demonstration involving looping, batching, and conditional data processing.
Internal linking is a cornerstone of effective SEO, helping search engines crawl your site and establishing topical authority. Manually identifying relevant pages that should link to a new target URL is time-consuming. This powerful n8n workflow eliminates that manual effort.
This n8n template automates the process by taking a list of target URLs and keywords from a Google Sheet. It uses the SerpAPI to perform targeted, site-specific searches, ensuring that the results are relevant internal pages (excluding the target page itself). By providing this comprehensive list of potential source pages, this n8n automation allows SEO teams to focus purely on implementation, drastically improving the efficiency of internal linking strategy.
Running this repeatable n8n workflow ensures your linking strategy remains consistent and up-to-date.
This efficient n8n workflow is designed for sequential processing and high reliability:
Internal link 1 column is not empty), preventing duplicate processing in subsequent runs.site: -inurl: . This request asks Google to find pages on your site related to the keyword, while explicitly excluding the page you are currently optimizing.organic_results links, preparing them for insertion into the spreadsheet.if statements) to insert "N/A" if fewer than ten links are found, ensuring the data remains clean and predictable.To deploy and run this powerful n8n workflow, follow these setup steps:
Domain, URL, and Keyword. Create the columns Internal link 1 through Internal link 10 where the results will be written.SerpAPI credential within your n8n environment and link it to the 'Get search results using SerpAPI' n8n node.This n8n workflow leverages several core n8n node types to achieve its goal:
Manual Trigger (n8n trigger): The starting point of the n8n workflow, allowing manual initiation of the data process.
Google Sheets (Get URLs and keywords n8n node):
Function: Reads input data (URL, Keyword, Domain) and filters out already processed rows.
Key Configuration: Operation set to read, with a UI filter checking if the column Internal link 1 is empty.
Split In Batches (Loop Over Items n8n node):
Function: Controls the flow by splitting the incoming list of URLs into batches of 5, crucial for rate limit management.
Key Configuration: Batch Size set to 5.
HTTP Request (Get search results using SerpAPI n8n node):
Function: Executes the targeted search query against Google via SerpAPI to find related internal pages.
Key Configuration: URL set to https://serpapi.com/search. Query parameter q uses expressions: = {{$json.Keyword}} site:{{$json.Domain}} -inurl:{{$json.URL}}.
Set (Extract links from JSON n8n node):
Function: Transforms the data by extracting and mapping the link properties from the nested organicresults array.
Key Configuration: Uses a map function to capture the list of URLs: = {{$json.organicresults.map(item => item.link)}}.
Google Sheets (Add internal URL to Google Sheet n8n node):
Function: Updates the input sheet with the discovered internal linking opportunities.
Key Configuration: Operation set to update. Uses expressions like = {{ $json.organicresults[0] ? $json.organicresults[0] : "N/A"}} to conditionally insert data or "N/A" into the output columns.
Find and verify LinkedIn profile URLs automatically using this advanced n8n workflow. Leverage Airtop integration for accurate profile validation and high-quality data enrichment.

Build a powerful research tool using this advanced n8n workflow template. It combines GPT-4o agents and SerpAPI to find, analyze, and compare up to five online tools simultaneously.

Leverage an n8n workflow to automatically find valid promo codes and vouchers using an AI Agent powered by GPT-5 Mini, SerpAPI, and the Decodo Scrapper n8n node.

Use this powerful n8n workflow to automate high-volume keyword research, analyze difficulty scores via DataForSEO, and export untapped SEO opportunities directly to Google Sheets.

Hi, I'm Robin. I'm a veteran marketer of 7 years and love automation. If you have any questions about automation feel free to reach out to me on LinkedIn: https://www.linkedin.com/in/rgeuens/







































