Skip to main content

Track gold price changes and send Slack alerts with Gemini

Workflow preview

Workflow preview
100%
Track gold price changes and send Slack alerts with Gemini preview
Open on n8n.io

1. Workflow Overview

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 ...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.datatable, n8n-nodes-base.limit, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Track gold price changes and send Slack alerts with Gemini
Workflow name
Track gold price changes and send Slack alerts with Gemini

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 10:00 to fetch the latest XAU price in INR from MetalpriceAPI.
  2. Converts the returned rate into a per-10g gold price and stores it as a new row in an n8n Data Table.
  3. Retrieves all saved prices, takes the last two entries, calculates absolute and percentage change, and updates the latest row with these metrics.
  4. If the percentage change is ≥ 1% or ≤ -1%, Google Gemini drafts a short alert message and posts it to a Slack channel.
  5. Runs weekly at 10:00, fetches all Data Table records, and keeps the most recent seven entries.
  6. Aggregates the last seven days of prices and changes, Google Gemini generates a formatted summary report, posts it to Slack, and saves the report text back to the latest Data Table row.

Setup

  1. Add your MetalpriceAPI credentials (HTTP header auth) and confirm the request parameters (base=INR, currencies=XAU) match your needs.
  2. Create or select an n8n Data Table with columns for gold_prices, price_change, percent_change, and alert_message, and update the workflow’s Data Table ID to point to it.
  3. Add Google Gemini (PaLM) API credentials for the alert and reporting prompts.
  4. Add Slack credentials and set the target channel for both Slack posting steps.
  5. Review the schedule triggers (daily and weekly at 10:00) and adjust the timezone/time as needed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Latest Gold Price

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 2 - calculate third of one troy ounce

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - rename field

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Insert gold record to table

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 5 - Fetch gold all prices

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 6 - Get last two records

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 7 - Calculate price_change & percent_change

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Update table with new data

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 9 - Route based on spike

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 10 - Slack alert assistant

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 11 - Gemini - slack

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 12 - Slack - alert tool

Type / Role
n8n-nodes-base.slackTool - slackTool
Config choices
Version 2.4

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Execute every morning

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 20 - Execute at weekend

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 21 - Get all prices

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1.1

Block 22 - Return last 7 days data

Type / Role
n8n-nodes-base.limit - limit
Config choices
Version 1

Block 23 - Get required fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Combine data togather

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Track gold price changes and send Slack alerts with Gemini
Complexity advanced
Nodes 31
Categories Crypto Trading, AI Summarization
Author WeblineIndia
Published 12 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16303/16303.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track gold price changes and send Slack alerts with Gemini do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.