This workflow (AI Document Generator with Anthropic Agent Skills and Uploading to Google Drive) automates the process of generating, downloading, and storing professionally formatted files (PDF, DOCX, PPTX, XLSX) using the Anthropic Claude API and Google Drive.
This workflow connects user prompts with the Anthropic API to generate professional documents in multiple formats, automatically retrieves and uploads them to Google Drive — providing a complete AI-powered document automation system.
✅ Full Automation
From user input to file delivery, the entire pipeline — creation, extraction, download, and upload — runs without manual intervention.
✅ Multi-Format Support
Handles four major business document types:
✅ Professional Output
Each format includes tailored Claude system prompts with detailed formatting and design principles:
This ensures that every file produced follows professional standards.
✅ Easy Customization
You can modify the prompt templates or add new Skills using the “Get All Skills” node.
The form and switch logic make it simple to extend with additional file types or workflows.
✅ Seamless Cloud Integration
Generated files are automatically uploaded to a Google Drive folder, enabling:
✅ Reusable and Scalable
This workflow can be used as a foundation for:
This n8n workflow enables users to create professional documents using Anthropic's Claude AI and automatically save them to Google Drive. The process works as follows:
Form Trigger: The workflow starts with a web form where users submit a prompt and select their desired file type (PPTX, PDF, DOCX, or XLSX).
Document Type Routing: A switch node routes the request based on the selected file type to the appropriate document creation node.
AI Document Generation: Each document type has a dedicated HTTP Request node that calls Anthropic's Messages API with:
File ID Extraction: Custom JavaScript code nodes extract the generated file ID from Anthropic's response using recursive search algorithms to handle nested response structures.
File Download: HTTP Request nodes download the actual file content from Anthropic's Files API using the extracted file ID.
Cloud Storage: Finally, the downloaded files are automatically uploaded to a specified Google Drive folder, organized and ready for use.
API Configuration:
x-api-key header with your Anthropic API keyanthropic-version and anthropic-betaGoogle Drive Integration:
Custom Skills (Optional):
Form Configuration:
Execution:
The workflow handles the entire process from AI-powered document creation to cloud storage, providing a seamless automated solution for professional document generation.
Contact me for consulting and support or add me on Linkedin.