Generate C API HTML docs from Google Drive headers with GPT-4o and Gmail
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive, Gmail and OpenAI.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get all files from folder (Google Drive): work with file folder
- Filter .h files only (Code): runs custom JavaScript code
- Process one file at a time (Loop Over Items (Split in Batches)): loops over the items in batches
- Build email body (Code): runs custom JavaScript code
- Download file (Google Drive): download
- Send completion email (Gmail): uses Gmail
- Extract from File: extracts data from a file (text)
- Extract structured docs (GPT-4o) (OpenAI): uses OpenAI
- Parse JSON response (Code): runs custom JavaScript code
- Generate HTML (Code): runs custom JavaScript code
…plus 1 more step. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Google Drive templates (628) · Other Gmail + Google Drive templates (465)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Extract from File
n8n-nodes-base.extractFromFile - Manual Trigger
n8n-nodes-base.manualTrigger - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
🚀 Overview This n8n workflow automatically generates professional API documentation from C header (.h) files using AI. It scans a Google Drive folder for header files, extracts the source code, sends it to GPT-4o for structured analysis, and generates a…