Back to Templates
This n8n workflow automates the collection and archival of compliance reports submitted via Google Forms. Uploaded documents (PDF, DOCX, etc.) are archived into Google Drive and submission metadata is logged into a MySQL database. It ensures compliance documentation is properly stored, searchable and auditable without manual effort.
/submit-report
webhook.Set Config
node with your:
Tool | Purpose |
---|---|
n8n Instance | Workflow automation |
Google Drive | To archive uploaded reports |
MySQL Database | To log submission metadata |
Google Forms / HTML Form | Report submission source |
CREATE TABLE report_logs (
id INT AUTO_INCREMENT PRIMARY KEY,
reporter VARCHAR(100),
category VARCHAR(100),
timestamp DATETIME,
file_name VARCHAR(255),
mime_type VARCHAR(50),
folder_id VARCHAR(100)
);
dbHost
, dbUser
, dbPassword
, dbName
, dbTable
driveFolderId
Customization | How |
---|---|
Add more form fields | Extend the metadata mapping in the Function node |
Rename files before upload | Modify filename in Google Drive node |
Add email confirmation | Add an Email Send node after DB insert |
Filter file types | Add IF node before upload to validate MIME type |
Add-on | Description |
---|---|
📤 Email Acknowledgment | Email sender a confirmation with Drive link |
🧾 PDF Parser | Auto-parse content using PDF.co or OpenAI |
📊 Admin Dashboard | Display logs in Supabase or Metabase |
🗃 File Backup | Copy files to Dropbox or S3 after Drive upload |
Issue | Possible Cause | Solution |
---|---|---|
File not uploaded | Drive ID is invalid | Check permissions and folder ID |
DB not logging | Connection or table issue | Verify DB credentials and schema |
Webhook not triggered | Form not integrated correctly | Ensure form POSTs file to n8n webhook |
Wrong file type | MIME mismatch | Validate acceptable types via Function/IF node |
Want to integrate this with audit dashboards or add Google Sheet exports?
👉 Contact WeblineIndia — Experts in compliance automation and renewable energy workflows.