Track gold price changes and send Slack alerts with Gemini
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on a schedule (every day at 10:00) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model and Slack. It also calls api.metalpriceapi.com over HTTP.
How it runs
Trigger: On a schedule (every day at 10:00) (plus 1 other trigger).
- Get Latest Gold Price (HTTP Request): calls api.metalpriceapi.com
- Get all prices (Data table): get
- calculate third of one troy ounce (Code): runs custom JavaScript code
- Return last 7 days data (Limit): keeps the first few items
- rename field (Edit Fields (Set)): sets 1 field: gold_prices
- Get required fields (Edit Fields (Set)): sets 4 fields: gold_prices, price_change, percent_change…
- Insert gold record to table (Data table): uses Data table
- Combine data togather (Aggregate): combines items into one
- Fetch gold all prices (Data table): get
- Reporting Agent (AI Agent): runs an AI agent, with model: Gemini - report; 1 tool (Slack - report)
…plus 6 more steps. See the full node list below.
Services it uses
HTTP calls to: api.metalpriceapi.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 (11)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Limit
n8n-nodes-base.limit - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Slack Tool
n8n-nodes-base.slackTool - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Aggregate
n8n-nodes-base.aggregate
From the author
Quick Overview This workflow logs daily gold prices in INR from MetalpriceAPI into an n8n Data Table, calculates day-over-day changes, and uses Google Gemini to send Slack alerts for ±1% moves and a weekly trend report. How it works 1. Runs every morning at…