Triage blood donor deferrals and component release with Gmail, OpenAI, and Telegram
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Telegram.
How it runs
Trigger: On Gmail events.
- Normalize Screening Intake (Edit Fields (Set)): sets or maps fields
- Fetch Prior Deferral History (HTTP Request): calls an HTTP API
- Extract Donor Risk Flags (Information Extractor): extracts structured fields from text with AI, with model: Extractor Model
- Split Out: splits a list into separate items
- Calculate Flag Deferral Days (Execute Sub-workflow): calls another n8n workflow
- Flag Indicates Permanent Deferral? (If): checks a condition and branches into true / false
- Tag Permanent Flag (Edit Fields (Set)): sets or maps fields
- Tag Temporary Flag (Edit Fields (Set)): sets or maps fields
- Recombine Flag Results (Merge): merges the data from its input branches
- Aggregate: combines items into one
…plus 7 more steps. See the full node list below.
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 Donor Screening Email).
Nodes used (14)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Split Out
n8n-nodes-base.splitOut - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Data table
n8n-nodes-base.dataTable - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow monitors a Gmail label for donor screening questionnaire emails, extracts AABB-style risk flags with OpenAI, calculates the effective donor deferral and component release status via a linked sub-workflow, then logs the decision to…