Triage urgent messages across email and social with OpenAI GPT-4.1-mini and Nilyo
UnknownWhat this workflow does
This AI workflow has 16 nodes and runs on Nilyo events (message.new) (plus 1 other trigger). Along the way it connects OpenAI and Nilyo (community).
How it runs
Trigger: On Nilyo events (message.new) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 4 fields: alert_recipient, timezone, quiet_hours_start…
- Normalize the event (Code): runs custom JavaScript code
- Inbound only (If): checks a condition and branches into true / false
- Email or conversation (If): checks a condition and branches into true / false
- Read the conversation (Nilyo): list messages (messaging)
- Merge: merges the data from its input branches
- Already answered (Code): runs custom JavaScript code
- Still waiting on you (If): checks a condition and branches into true / false
- Worth interrupting you (OpenAI): uses OpenAI
- Urgent only (If): checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-nilyo is verified or supports 3.0 (used in New message on a social or messaging account, New email).
- Check that n8n-nodes-nilyo is verified or supports 3.0 (used in Read the conversation, Alert me on WhatsApp).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (8)
- Nilyo Trigger
n8n-nodes-nilyo.nilyoTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Nilyo
n8n-nodes-nilyo.nilyo - Merge
n8n-nodes-base.merge - OpenAI
@n8n/n8n-nodes-langchain.openAi - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow triggers on new emails via Nilyo (Gmail, Outlook, or IMAP), uses OpenAI GPT to classify each message as urgent or not, and sends a WhatsApp alert through Nilyo only when the email needs a reply today. How it works 1. Triggers when…