Generate AI SOPs from Google Drive with GPT‑4o, Google Docs and Sheets
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on Google Drive events (file updated). Along the way it connects Google Drive, OpenAI Chat Model, Google Docs and Google Sheets and 2 more.
How it runs
Trigger: On Google Drive events (file updated).
- Workflow Configuration (Edit Fields (Set)): sets 5 fields: qualityThreshold, sopFolderId, sheetsDocumentId…
- Download Document from Drive (Google Drive): download
- Extract Text from Document (Extract from File): extracts data from a file (pdf)
- Normalize Content and Metadata (Edit Fields (Set)): sets 4 fields: documentText, documentName, documentId…
- Generate SOP Structure (AI Agent): runs an AI agent, with model: OpenAI Model for SOP Structure; output parser: SOP Structure Output Parser
- Refine for Clarity and Consistency (AI Agent): runs an AI agent, with model: OpenAI Model for Refinement; output parser: Refined SOP Output Parser
- Check Quality Threshold (If): checks a condition and branches into true / false
- Create SOP Document (Google Docs): uses Google Docs
- Log SOP Metadata (Google Sheets): append or update
- Notify Operations Team (Slack): uses Slack
…plus 1 more step. See the full node list below.
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 (12)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Google Docs
n8n-nodes-base.googleDocs - Google Sheets
n8n-nodes-base.googleSheets - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
This workflow automatically converts unstructured internal documentation into clear, actionable Standard Operating Procedures (SOPs). Instead of manually rewriting internal knowledge, teams can upload or update documents and let AI generate consistent,…