Triage social crisis mentions with Google Gemini and webhook routing
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Gemini Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set High-Risk Social Mention Data (Edit Fields (Set)): sets 5 fields: platform, author_handle, follower_count…
- Attach PR Matrix & Context (Code): runs custom JavaScript code
- AI Crisis Triage Agent (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Mode; output parser: Parse Crisis Data
- Route by Severity Level (Switch): routes items into 3 branches
- Format War-Room Alert (Code): runs custom JavaScript code
- Format Support Escalation Alert (Code): runs custom JavaScript code
- Set Community Voice Data (Edit Fields (Set)): sets 2 fields: incident_tier, status
- Merge: merges the data from its input branches
- Final Ledger Sync Code (Code): runs custom JavaScript code
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge
From the author
Quick overview This workflow receives social mention payloads via a webhook, uses Google Gemini to triage them against a PR crisis matrix, and routes the result into P0/P1/P2 handling paths while generating a structured incident record and response drafts.…