Skip to main content

Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto

Workflow preview

Workflow preview
100%
Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Try It Out! The SOL/USDT Multi Timeframe AI Market Analyzer and Trader with Telegram Approval is your fully automated Solana trading assistant powered by AI , AFK Crypto , and Telegram . It runs ho...

Best for

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

Tools used

n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.httprequest, n8n-nodes-base.telegram, n8n-nodes-base.scheduletrigger, n8n-nodes-base.if, n8n-nodes-base.wait, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto
Workflow name
Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto

Try It Out!

The SOL/USDT Multi-Timeframe AI Market Analyzer and Trader with Telegram Approval is your fully automated Solana trading assistant powered by AI, AFK Crypto, and Telegram.

It runs hourly by default, fetches real-time market data for the SOL/USDT pair, and uses AI-driven logic to determine optimal entry, exit, and risk management strategies. You receive a Telegram approval message that lets you confirm or reject the trade instantly. Once approved, the bot executes trades via your AFK Crypto Wallet and keeps monitoring for Take-Profit or Stop-Loss triggers — sending alerts directly to Telegram when they’re hit.

This system combines automation with manual oversight, giving you AI precision with human approval control.


How It Works

  1. Hourly Trigger – The workflow initiates every hour to analyze the current market status.

  2. Fetch SOL Market Data (Crypto Compare) – Retrieves multiple timeframe data (1m, 5m, 1h) for trend, momentum, and volatility analysis.

  3. AI Market Analyzer – Processes data through an AI agent to identify:

    • Market sentiment (bullish, bearish, neutral)
    • Recommended position: LONG / SHORT / HOLD
    • Stop-Loss and Take-Profit levels
    • Confidence rating and reasoning
  4. Balance Check (AFK Crypto) – Verifies wallet balance via /v1/wallets/balances?chain=solana and calculates position size based on 1% risk.

  5. Telegram Approval Message – Sends a Telegram message containing AI insights and trade details with “✅ Approve” or “❌ Decline” buttons.

  6. Trade Execution (AFK Trade API) – If approved, executes trade instantly via /v1/trade/swap using your AFK Crypto wallet.

  7. Live Trade Monitoring – Monitors SOL price in real-time. Once Take-Profit or Stop-Loss conditions are met:

    • The position auto-closes.
    • A Telegram notification is sent summarizing results and updated balance.

How to Use

  1. Import the workflow into your n8n workspace.

  2. Add your credentials:

    • AFK Crypto API Key – For balance and trading operations.
    • Telegram Bot Token + Chat ID – For sending messages and approvals.
    • Crypto Compare API Key – For fetching market data.
  3. Edit “Fetch SOL Market Data” Node: Update the endpoint if you want different timeframes or markets.

  4. Set the schedule: Default trigger = every hour (modifiable in the “Every Hour” node).

  5. Deploy and activate. The bot will send you hourly market analyses via Telegram — allowing you to approve or skip each suggested trade.


(Optional) Extend This Workflow

  • Auto Mode: Allow the AI to auto-trade when confidence > 90%.
  • Portfolio Sync: Log every trade and PnL automatically to Notion or Airtable.
  • Risk Adjuster: Dynamically modify the 1% risk per trade based on balance or volatility.
  • Multi-Pair Trading: Expand to include ETH/USDT or BTC/USDT using the same logic.

Requirements

  • AFK Crypto Wallet + API Key
  • Telegram Bot Token + Chat ID
  • Crypto Compare API Key
  • n8n Instance with HTTP Request, AI, and Telegram nodes enabled

AFK APIs Used

  • GET https://api.afkcrypto.com/v1/wallets/balances?chain=solana
  • POST https://api.afkcrypto.com/v1/trade/swap

Summary

The SOL/USDT Multi-Timeframe AI Market Analyzer and Trader with Telegram Approval workflow is an intelligent trading automation system that merges AI analytics, Telegram decision prompts, and AFK Crypto execution.

It empowers you to make data-driven trading decisions — with AI doing the heavy lifting and you retaining the final say before every trade. A perfect hybrid between automation and control, optimized for active Solana traders who value precision and security.


Our Website: https://afkcrypto.com/ Check our blogs: https://www.afkcrypto.com/blog

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

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

Block 2 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 3 - Fetch_1m

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

Block 4 - Fetch_5m

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

Block 5 - Fetch_1h

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

Block 6 - Parse AI Output

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

Block 7 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Hourly

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

Block 9 - If

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

Block 10 - If1

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

Block 11 - Get Wallet Balance

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

Block 12 - Buy Confirmation

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Sell Confirmation

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 14 - If2

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

Block 15 - Send a text message2

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Approved/Disapproved

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

Block 17 - Send a text message3

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 18 - If3

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

Block 19 - SELL SOL/USDC1

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

Block 20 - BUY SOL/USDC1

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

Block 21 - If4

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

Block 22 - SELL SOL/USDC2

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

Block 23 - Send a text message4

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 24 - Send a text message5

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

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

3. Summary Table

Workflow Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto
Complexity advanced
Nodes 56
Categories Crypto Trading, AI Summarization
Author AFK Crypto
Published 15 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9691/9691.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 Automate Solana trading with Gemini AI, multi-timeframe analysis & AFK Crypto do?

Try It Out! The SOL/USDT Multi Timeframe AI Market Analyzer and Trader with Telegram Approval is your fully automated Solana trading assistant powered by AI , AFK Crypto , and Telegram . It runs ho...

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.