AI-Powered Crypto Analysis Using OpenRouter, Gemini, and SerpAPI

Go to Workflow
3,515 views
Built by Udit Rawat Udit Rawat
Created on June 09, 2026

Description

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:

OpenRouter (Google Gemini 2.0 Flash) Get a free API key from https://openrouter.ai/
Serp API (for news retrieval) Get a free API key from https://serpapi.com/
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. 🚀

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
HTTP Request
n8n-nodes-base.httpRequest
SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow