Store Gmail email details in MySQL database
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 3 nodes and runs on Gmail events. Along the way it connects Gmail and MySQL.
How it runs
Trigger: On Gmail events.
- Get Client Name and Email (Code): runs custom JavaScript code
- Insert New Client in MySQL (MySQL): create or update
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Receive Email).
Nodes used (3)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - MySQL
n8n-nodes-base.mySql
From the author
This workflow processes emails received in Gmail and saves detailed information about each email to a MySQL database. Before using, you need to have: - Gmail credentials - MySQL database credentials - A table in your database with the following columns: -…