Triage irrigation incidents with Google Gemini, Open-Meteo, and Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model and Slack. It also calls api.open-meteo.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Sensor Data Parameters (Edit Fields (Set)): sets 8 fields: zoneId, cropType, moisturePercent…
- Fetch Local Weather Data (HTTP Request): calls api.open-meteo.com
- Prepare AI Input Prompt (Code): runs custom JavaScript code
- Evaluate Agronomy with AI (Basic LLM Chain): sends a prompt to an LLM, with model: Activate Gemini Chat Model; output parser: Extract Structured Output
- Enhance Diagnostic Analysis (Code): runs custom JavaScript code
- Route by Severity Level (Switch): routes items into 4 branches
- Set Critical Escalation Params (Edit Fields (Set)): sets 4 fields: escalationChannel, targetAudience, dispatchUrgency…
- Set High Priority Params (Edit Fields (Set)): sets 4 fields: escalationChannel, targetAudience, dispatchUrgency…
- Set Advisory Rain Params (Edit Fields (Set)): sets 4 fields: escalationChannel, targetAudience, dispatchUrgency…
- Set Nominal Health Params (Edit Fields (Set)): sets 4 fields: escalationChannel, targetAudience, dispatchUrgency…
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.open-meteo.com
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.
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - 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 - Respond to Webhook
n8n-nodes-base.respondToWebhook - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow ingests irrigation telemetry via a webhook, enriches it with hyperlocal weather from Open-Meteo, uses Google Gemini to classify incident severity and generate remediation steps, then posts a work-order style alert to Slack and…