Generate Professional Documents with Claude AI Skills🤹🤖 & Upload to Google Drive
Go to WorkflowDescription
🤹🤖 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.
Key Advantages
✅ 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:
PPTX (Presentations)
PDF (Reports)
DOCX (Documents)
XLSX (Spreadsheets)
✅ Professional Output**
Each format includes tailored Claude system prompts with detailed formatting and design principles:
Layout structure
Typography
Visual hierarchy
Consistency and readability
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:
Centralized storage
Easy sharing and access
Automatic organization
✅ Reusable and Scalable**
This workflow can be used as a foundation for:
Automated report generation
Client deliverables
Internal documentation systems
AI-driven content creation pipelines
How it Works
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:
Specific system prompts tailored for each document type (PowerPoint, PDF, Word, or Excel)
The user's input prompt
Appropriate Anthropic skills (pptx, pdf, docx, xlsx) for specialized document creation
Code execution capabilities for complex formatting
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.
Set Up Steps
API Configuration:
Set up HTTP Header authentication with Anthropic API
Add x-api-key header with your Anthropic API key
Configure required headers: anthropic-version and anthropic-beta
Google Drive Integration:
Connect Google Drive OAuth2 credentials
Specify the target folder ID where documents will be uploaded
Ensure proper permissions for file upload operations
Custom Skills (Optional):
Use the "Get All Skills" node to retrieve available custom skills
Update skill_id fields in JSON bodies if using custom Anthropic skills
Modify the form dropdown to include custom skill options if needed
Form Configuration:
The form is pre-configured with prompt field and file type selection
No additional setup required for basic functionality
Execution:
Activate the workflow
Access the form trigger URL
Submit prompts and select desired output formats
Generated files will automatically appear in the specified Google Drive folder
The workflow handles the entire process from AI-powered document creation to cloud storage, providing a seamless automated solution for professional document generation.
👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.
Need help customizing?
Contact me for consulting and support or add me on Linkedin.