Skip to main content

AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI

Workflow preview

Workflow preview
100%
AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n automation is designed to analyze cryptocurrency trends by extracting, processing, and interpreting candlestick charts using AI powered agents. The workflow enhances technical analysis by ...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.toolserpapi, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI
Workflow name
AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI

This n8n automation is designed to analyze cryptocurrency trends by extracting, processing, and interpreting candlestick charts using AI-powered agents. The workflow enhances technical analysis by integrating real-time market data, ensuring traders receive accurate and actionable insights.

Workflow Breakdown:

🔹 1. Chat Node – Provide Crypto Information Users enter a crypto symbol in the required format (EXCHANGE:SYMBOL), such as BINANCE:BTCUSDT. This ensures the workflow retrieves the correct market data.

🔹 Retrieve Daily Candlestick Chart Once the input is received, the workflow fetches the full-day candlestick chart for the selected crypto, providing a macro-level market trend.

🔹 AI Agent – Analyze Daily Chart The first AI agent, powered by Google Gemini 2.0 Flash via OpenRouter, analyzes the daily candlestick pattern to detect trends and potential market signals.

🔹 Fetch 5-Minute Candlestick Chart To refine the analysis, the workflow retrieves a 5-minute interval candlestick chart, allowing for real-time market movement evaluation.

🔹 AI Agent – Advanced Candlestick Analysis This AI agent combines the 5-minute chart with the daily analysis to provide an in-depth market prediction. Here’s where the real magic happens—AI interprets short-term trends in the context of long-term movements.

🔹 Shared Windows Buffer – Store Intermediate Results The Windows Buffer temporarily stores analysis results, ensuring seamless data flow between AI agents for a more structured interpretation.

🔹 Serp API – Retrieve Crypto News To add fundamental analysis, the Serp API tool fetches the latest crypto-related news from the web, providing additional market context.

🔹 Chat Window – Deliver Final Insights Once all data points are processed, the final market analysis is displayed in the chat window, combining technical and fundamental analysis for a more comprehensive trading strategy.

Use Case:

This automation simplifies crypto market analysis by integrating AI-driven technical and fundamental insights. It’s ideal for:

✅ Traders looking for automated market insights ✅ Analysts seeking structured candlestick interpretations ✅ Developers wanting to integrate AI-powered trading analysis into applications

By automating candlestick chart analysis, this workflow enhances decision-making and reduces manual effort, making it a valuable tool for anyone involved in cryptocurrency trading.

Setup Instructions:

1️⃣ Import the workflow to your n8n instance

2️⃣ Prepare & add credentials:

  1. OpenRouter (Google Gemini 2.0 Flash) Get a free API key from https://openrouter.ai/
  2. Serp API (for news retrieval) Get a free API key from https://serpapi.com/
  3. Chart Img (For candlestick chart) Get a free API key from https://chart-img.com/

3️⃣ Run the workflow and get AI-powered crypto insights!

NOTE

Remember: Not all LLM models are capable of analyzing image data, so choose your model wisely.

Limitations: All free services come with usage limits. For example, OpenRouter has a daily limit, and once it's consumed, the workflow will stop processing further requests.

Disclaimer

This workflow is designed purely for educational and research purposes. It does not provide financial advice. 🚀

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 - Provide Crypto Symbol

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - 5m_Chart

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

Block 3 - AI Agent

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

Block 4 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - 1d_Chart

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

Block 6 - OpenRouter Chat Model

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

Block 7 - crypto_symbol

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

Block 8 - Long Term Agent

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

Block 9 - SerpAPI

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

3. Summary Table

Workflow AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI
Complexity intermediate
Nodes 12
Categories Crypto Trading, AI Summarization
Author Udit Rawat
Published 14 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2906/2906.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 AI-powered crypto analysis using OpenRouter, Gemini, and SerpAPI do?

This n8n automation is designed to analyze cryptocurrency trends by extracting, processing, and interpreting candlestick charts using AI powered agents. The workflow enhances technical analysis by ...

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.