Generate SEO-friendly robots.txt with OpenAI and Google Drive
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI Chat Model and Google Drive.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Website Url (Edit Fields (Set)): sets 2 fields: website_url, sitemap
- robots.txt (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Get HTML (HTTP Request): calls an HTTP API
- Discover CMS (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Parser (Code): runs custom JavaScript code
- Robots.txt Generator (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Convert to File: converts data to a file (to text)
- Upload file (Google Drive): uses Google Drive
Services it uses
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 (10)
- If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - No Operation, do nothing
n8n-nodes-base.noOp - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Convert to File
n8n-nodes-base.convertToFile - Google Drive
n8n-nodes-base.googleDrive
From the author
Quick overview This workflow runs manually to check a website’s existing robots.txt, detect the site’s CMS from the homepage HTML using OpenAI, and generate an optimized robots.txt (including the provided sitemap URL) that is saved as a file and uploaded to…