Discover and save niche web content to Google Sheets with Kagi and OpenRouter AI
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model and Google Sheets. It also calls kagi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Kagi API Token (Edit Fields (Set)): sets 1 field: KagiToken
- GET Kagi Enrich Web Data (HTTP Request): calls kagi.com
- Extract Enrich Search Results (Code): runs custom JavaScript code
- Loop Over Enrich Results (Loop Over Items (Split in Batches)): loops over the items in batches
- Respond to Webhook: sends the response back to the webhook caller
- AI Categorize and Score Content (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
- Merge AI Output with Metadata (Code): runs custom JavaScript code
- Append Content Row to Sheets (Google Sheets): append
Services it uses
HTTP calls to: kagi.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches
From the author
Discover and save niche web content to Google Sheets with Kagi and AI How it works 1. A webhook trigger receives a request. 2. The Kagi API token is set and a request is made to Kagi’s enrich endpoint. 3. Raw search results are extracted and split into…