Handle Gmail reply-based scheduling with Google Calendar and GPT-4o-mini
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI, Google Calendar and Gmail.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Sample Input (Edit Fields (Set)): sets 2 fields: text, timezone
- Normalize Incoming Reply (Edit Fields (Set)): sets 3 fields: reply_text, from_email, thread_id
- Message a model (OpenAI): uses OpenAI
- Check Selected Option (1 or 2) (If): checks a condition and branches into true / false
- Prepare Calendar Payload (Edit Fields (Set)): sets 3 fields: title, start_datetime, end_datetime
- Prepare Confirmed Slot Data (Edit Fields (Set)): sets 5 fields: selected_option, chosen_start, chosen_end…
- Prepare Alternative Request (Edit Fields (Set)): sets 2 fields: is_valid_reply, reply_reason
- Get availability in a calendar (Google Calendar): work with calendar
- Is Valid Confirmation (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other Google Calendar + Gmail templates (239) · Other Google Calendar + OpenAI templates (184)
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) (Gmail Trigger (User Reply)).
Nodes used (7)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Calendar
n8n-nodes-base.googleCalendar - If
n8n-nodes-base.if - Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail
From the author
Reply Handling (Optional Extension) This optional workflow handles email replies after availability options have been sent. It extends the main scheduling flow by enabling two-way, email-based confirmation. What this extension does Listens for user replies…