Skip to main content

Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts

Workflow preview

Workflow preview
100%
Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts preview
Open on n8n.io

1. Workflow Overview

Bitcoin Price Spike Detector with Gemini AI, NewsAPI & Gmail Alerts This workflow monitors Bitcoin price changes every 30 minutes. If the price increases or decreases by 3% or more, it fetches rece...

Best for

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

Tools used

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

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
Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts
Workflow name
Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts

Bitcoin Price Spike Detector with Gemini AI, NewsAPI & Gmail Alerts

This workflow monitors Bitcoin price changes every 30 minutes. If the price increases or decreases by 3% or more, it fetches recent Bitcoin-related news, summarizes it using AI (Google Gemini) and sends an email alert explaining the likely reason behind the price movement.

Quick Implementation Steps

  1. Set up a Schedule Trigger (default: every 30 minutes) in your n8n account.
  2. Configure CoinGecko API (already public, no key required).
  3. Ensure your Data Table (crypto_price_db) exists.
  4. Add your NewsAPI API key in HTTP Request node.
  5. Configure Google Gemini API credentials.
  6. Connect your Gmail account.
  7. Replace the email recipient with your own.
  8. Activate the workflow.

What It Does

This workflow continuously monitors Bitcoin price fluctuations by fetching the latest price from CoinGecko at regular intervals. Each new price is stored in a data table and compared with previous entries to detect significant changes.

When a price movement of ±3% or more is detected, the workflow automatically triggers a secondary process. It fetches recent Bitcoin-related news articles using NewsAPI, filters and aggregates relevant descriptions and sends them to an AI agent powered by Google Gemini.

The AI agent generates a concise summary of the news and explains the likely reason behind the price movement. Finally, it sends a well-crafted email alert with insights, helping users stay informed and react quickly to market changes.

Who It's For

  • Crypto traders and investors
  • Financial analysts monitoring Bitcoin trends
  • Automation enthusiasts using n8n
  • Developers building AI-powered alert systems
  • Anyone who wants real-time insights on Bitcoin price movements

Requirements

To use this workflow, you need:

How It Works & Set Up

1. Schedule Trigger

  • Node: Execute at every 30 minutes
  • Runs the workflow at regular intervals.
  • You can modify this interval as needed.

2. Fetch Bitcoin Price

  • Node: Fetch BitCoin Price
  • API: CoinGecko
  • Endpoint: https://api.coingecko.com/api/v3/simple/price
  • Query:
  • ids=bitcoin
  • vs_currencies=usd

3. Store Price in Data Table

  • Node: Add bitcoin price to sheet
  • Stores the latest price in crypto_price_db.

4. Retrieve Recent Prices

  • Nodes:
  • Get all prices from sheet
  • Get last two prices from sheet
  • Keeps only the latest two entries for comparison.

5. Prepare Data

  • Node: Edit Fields
  • Ensures the price field is properly formatted.

6. Detect Price Change

📈 Price Increase (≥ 3%)
  • Node: If new price is increased by 3%
  • Condition compares latest vs previous price.
📉 Price Decrease (≥ 3%)
  • Node: If new price is dropped by 3%

7. Fetch News

  • Nodes:
  • Fetch news about bitcoin
  • Fetch news about bitcoin1
  • API: NewsAPI
  • Query:
  • q=bitcoin
Setup NewsAPI
  1. Create account at https://newsapi.org/
  2. Generate API key
  3. Add it in HTTP Request node → Headers

8. Filter & Aggregate News

  • Nodes:
  • Filter all news
  • Aggregate filtered news
  • Extracts only article descriptions and combines them.

9. AI Processing (Google Gemini)

  • Nodes:
  • AI Agent
  • Google Gemini Chat Model
Setup Gemini API
  1. Go to https://aistudio.google.com/welcome
  2. Generate API key
  3. Add credentials in n8n:
  • Type: Google PaLM / Gemini
  • Paste API key
AI Task:
  • Summarize news
  • Explain price movement
  • Generate email subject & content

10. Send Email Alert

  • Nodes:
  • Send a message in Gmail
  • Sends AI-generated email.
Important:

Replace: [email protected] with your own email address.

How To Customize Nodes

  • Change Price Threshold

  • Modify IF node conditions (e.g., 5% instead of 3%)

  • Change Cryptocurrency

  • Update CoinGecko ids parameter

  • Modify Email Content

  • Adjust AI prompt inside AI Agent nodes

  • Adjust Frequency

  • Change Schedule Trigger interval

  • News Filtering

  • Modify Code node to include titles, sources or keywords

Add-Ons (Enhancements)

  • Add Slack / Telegram alerts
  • Store historical data in Google Sheets or database
  • Add support for multiple cryptocurrencies
  • Create a dashboard using n8n + external tools
  • Add sentiment analysis on news
  • Trigger trading bots or alerts

Use Case Examples

  1. Crypto Trading Alerts Get instant insights when Bitcoin price moves significantly.

  2. Market Analysis Automation Automatically correlate price changes with real-world news.

  3. Portfolio Monitoring Track assets and receive alerts without manual checks.

  4. AI-Powered Financial Reports Generate automated summaries for decision-making.

  5. Research & Insights Tool Understand market sentiment quickly.

And many more use cases can be built on top of this workflow.

Troubleshooting Guide

Issue Possible Cause Solution
No email received Gmail not configured Reconnect Gmail OAuth2 credentials
No news data Missing NewsAPI key Add API key in HTTP Request headers
AI not responding Gemini API not configured Verify Gemini credentials
Workflow not triggering Schedule not active Activate workflow
Incorrect price comparison Data table missing values Ensure table stores numeric USD values
Empty email content News descriptions missing Check Code node output

Need Help?

If you need assistance setting up this workflow, customizing it or extending it with advanced features like multi-crypto tracking, dashboards or AI enhancements — we’re here to help.

Contact WeblineIndia for:

  • Workflow setup & deployment
  • Custom automation solutions
  • AI-powered business workflows
  • Add-on feature development

Let us help you turn automation into a competitive advantage.

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 - AI Agent

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

Block 2 - Google Gemini Chat Model

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

Block 3 - Send a message in Gmail

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.2

Block 4 - AI Agent1

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

Block 5 - Google Gemini Chat Model1

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

Block 6 - Send a message in Gmail1

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.2

Block 7 - Fetch BitCoin Price

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

Block 8 - Add bitcoin price to sheet

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

Block 9 - Get all prices from sheet

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

Block 10 - Get last two prices from sheet

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

Block 11 - If new price is dropped by 3%

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

Block 12 - If new price is increased by 3%

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

Block 13 - Fetch news about bitcoin

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

Block 14 - Fetch news about bitcoin1

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

Block 15 - Filter all news

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

Block 16 - Filter all news1

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

Block 17 - Aggregate filtered news

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

Block 18 - Aggregate filtered news1

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

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Edit Fields

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

Block 24 - Execute at every 30 minutes

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

3. Summary Table

Workflow Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts
Complexity advanced
Nodes 24
Categories Crypto Trading, AI Summarization
Author WeblineIndia
Published 25 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15276/15276.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 Detect Bitcoin price spikes and send Gemini-powered NewsAPI Gmail alerts do?

Bitcoin Price Spike Detector with Gemini AI, NewsAPI & Gmail Alerts This workflow monitors Bitcoin price changes every 30 minutes. If the price increases or decreases by 3% or more, it fetches rece...

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.