Automated Crypto Trading Bot using ICT, GPT-4o & Coinbase - n8n Workflow

Use this powerful n8n workflow template to automate cryptocurrency trading based on ICT Smart Money Concepts, verified by GPT-4o analysis, and executing trades via Coinbase Advanced. Requires custom code.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Algorithmic Traders: Users interested in automating complex trading strategies like Inner Circle Trader (ICT) concepts.
Crypto Enthusiasts: Individuals looking to connect AI analysis directly to a major exchange like Coinbase.
n8n Developers: Users seeking advanced n8n templates involving AI parsing, conditional logic, and external API integration.
Automation Specialists: Anyone wanting a robust n8n workflow example of financial operations and real-time decision-making.

Overview

Automating trading decisions based on specific, high-probability market times and structural analysis is complex. This innovative n8n workflow solves the challenge by integrating proprietary ICT (Inner Circle Trader) time-based methodology with advanced generative AI capabilities.

When a signal is received via the n8n trigger, the system first verifies if the current time falls within an optimal 'Kill Zone' for trading. It then uses the powerful GPT-4o model to perform a deep, structured analysis on the signal and current market data, checking for Smart Money Concepts, Order Blocks, and Liquidity Grabs. This analysis generates a confidence score.

Only if the AI confidence score is high (>=60) and the session alignment conditions are met does the n8n workflow proceed to execute a market order on Coinbase Advanced. This reliable n8n workflow ensures high-quality execution and automatically logs all executed and rejected signals to Notion, providing a complete audit trail for this sophisticated trading bot.

How it Works

This n8n workflow operates through a precise sequence of steps:


  1. Trigger Reception: The n8n trigger, a Telegram Trigger node, listens for incoming trading signal messages.

  2. Data Extraction: The Extract ICT Signal Data n8n node standardizes the raw data, extracting key parameters like the trading symbol, intended action (BUY/SELL), and quantity.

  3. Kill Zone Validation: The ICT Session Validator custom code n8n node calculates the exact GMT time and determines if the workflow is executing within one of the high-priority ICT 'Kill Zones' (Asian, London, NY, London Close).

  4. Market Data Fetch: The workflow uses an HTTP Request n8n node to query Coinbase Advanced for real-time market product data for the specified crypto pair.

  5. AI Analysis (GPT-4o): The core intelligence, the ICT AI Analysis n8n node, sends all aggregated data to GPT-4o. The AI returns a structured JSON object containing a confidence score and detailed ICT structural analysis (e.g., Fair Value Gap presence, Market Structure break).

  6. Filter/Decision Point: The ICT Quality & Session Filter n8n node checks four crucial criteria: signal quality (not LOW), confidence score (>= 60), session activity, and AI-confirmed session alignment. This is a critical flow control point in the n8n workflow.

  7. Execution (Success Branch): If the criteria pass, the Execute ICT Trade n8n node places a Market IOC order on the Coinbase Advanced platform. This successful trade is then logged to Notion, and a concise notification is generated by a second GPT-4o n8n node and broadcast via Telegram.

  8. Rejection (Failure Branch): If the criteria fail, the signal is logged by the Log ICT Rejected Signal n8n node into a separate Notion database, ensuring that low-quality signals are documented but not executed.

Installation Guide

To set up this advanced n8n template, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and paste it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Set Up Credentials:

Coinbase Advanced API: Configure credentials for Coinbase Advanced (used in Get Coinbase Market Data and Execute ICT Trade). This requires API keys with appropriate trading permissions.
OpenAI: Set up your OpenAI credential for the GPT-4o model (used in ICT AI Analysis and Generate ICT Notification).
Telegram: Set up a Telegram credential for the ICT Telegram Signal Trigger and Send ICT Telegram Alert nodes.
Notion: Set up Notion credentials.

  1. Define Variables: You must define several global variables using the n8n environment variables or the 'Settings' pane:

NOTIONTRADINGDBID: ID of the Notion database for successful trades.
NOTION
REJECTEDDBID: ID of the Notion database for rejected signals.
* TELEGRAMCHATID: The chat ID where alerts will be sent.

  1. Activate Trigger: Activate the ICT Telegram Signal Trigger n8n node to receive signals and start the automated process. Ensure the webhook is correctly linked to your Telegram bot.

Node Details

This n8n workflow relies on specific configurations for its core decision-making components:

ICT Telegram Signal Trigger (Telegram Trigger):
Function: Starts the n8n workflow upon receiving a message/signal via Telegram.
Key Configuration: Configured to watch for 'message' updates.
ICT Session Validator (Code n8n node):
Function: Custom JavaScript code defines and validates the current time against predefined GMT-based ICT Kill Zones (Asian: 0-3h, London: 7-10h, NY: 12-14h, London Close: 15-17h).
Key Configuration: Calculates activeKillZone, killzoneactive, and sessionstrength based on Date().getUTCHours(), crucial for the flow control.
ICT AI Analysis (OpenAI n8n node):
Function: Leverages gpt-4o to perform expert ICT analysis, assessing structural conditions like liquidity grabs and fair value gaps.
Key Configuration: Uses a highly detailed prompt instructing the AI to return a specific, machine-readable JSON output format, including confidencescore and signalquality.
Parse ICT AI Analysis (Code n8n node):
Function: Safely parses the JSON output from the AI, handling potential markdown wrapping or parsing errors, and implements a fallback analysis if the AI response is malformed.
ICT Quality & Session Filter (IF n8n node):
Function: The central gatekeeper. Only allows the n8n workflow to proceed to trade execution if multiple conditions are met, combining session timing and AI validation.
Key Configuration: Checks signal
quality != 'LOW', confidencescore >= 60, tradingallowed = true, and sessionalignment = true with an 'all' (AND) combination.
Execute ICT Trade (HTTP Request n8n node):
Function: Executes the trading instruction on Coinbase Advanced.
* Key Configuration: Method is POST, uses coinbaseAdvancedApi credential, body parameters define a market
marketioc order type, setting productid, side, and quote_size (quantity).

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by

Helping business owners & marketers automate their processes with n8n. Specialist in custom workflows, API integrations, and template development. 📈 100+ successful automation projects 🔧 Premium n8n templates available 💡 Free consultation for custom automation Book a consultation for your business digital transformation!"

Featured*