Alert crop scouts to wind-driven pest threats with GBIF, Gemini, and Slack
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs on a schedule (cron 0 6 * * *). Along the way it connects Google Gemini Chat Model and Slack. It also calls api.gbif.org and api.open-meteo.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 6 * * *).
- Set Search Parameters (Edit Fields (Set)): sets 7 fields: farm_latitude, farm_longitude, radius_km…
- Fetch GBIF Pest Occurrences (HTTP Request): calls api.gbif.org
- Check for Nearby Pests (If): checks a condition and branches into true / false
- Fetch Wind Data (HTTP Request): calls api.open-meteo.com
- Calculate Wind Threat Alignment (Code): runs custom JavaScript code
- Check Wind Alignment Threat (If): checks a condition and branches into true / false
- Scout Alert Generator Agent (AI Agent): runs an AI agent, with model: Gemini LLM Model
- Send Slack Alert to Scouts (Slack): uses Slack
Services it uses
Other Google Gemini + Slack templates (309)
HTTP calls to: api.gbif.org, api.open-meteo.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Scout Alert Generator Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Scout Alert Generator Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Slack
n8n-nodes-base.slack
From the author
Quick overview Workflow Link: https://youtu.be/3ExkAWTyEXU?si=R7bAUzHqf1LpHnT This workflow runs daily at 6 AM to check GBIF for recent invasive pest occurrences near a farm, combines them with Open-Meteo wind data to assess whether winds could carry pests…