Skip to main content

Trading journal: log trades into Google Sheets via Telegram & Gemini AI

Workflow preview

Workflow preview
100%
Trading journal: log trades into Google Sheets via Telegram & Gemini AI 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 smart AI powered trading journal lets you easily log and update your trades using Telegram messages. Just send your trade details by text to your personal telegram bot, and the system will ext...

Best for

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

Tools used

n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatgroq, n8n-nodes-base.stickynote, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Trading journal: log trades into Google Sheets via Telegram & Gemini AI
Workflow name
Trading journal: log trades into Google Sheets via Telegram & Gemini AI

This smart AI-powered trading journal lets you easily log and update your trades using Telegram messages. Just send your trade details by text to your personal telegram bot, and the system will extract key information and save it in a Google Sheets journal for you.

Simply send messages to your personal trade journal assistant (bot) on Telegram, and it will handle the rest. After some time, you can review your journal to reflect, learn, and improve your trading skills.

The journal can record:

  1. Asset or trading pair
  2. Entry price
  3. Stop loss
  4. Take profit
  5. Trade direction (buy/sell)
  6. Additional trading notes

It also allows you to update existing trades with:

  1. Profit and loss after closing the trade
  2. Additional notes such as strategy details

1. How it works:

Trade Entry Example:

Send a message like: "Hey, log my trade on Tesla with entry price 300, stop loss 280, and direction buy."

The AI will extract: Asset or trading pair (e.g., Tesla) Entry price Stop loss (if provided) Take profit (if provided) Direction (buy/long or sell/short) Any additional notes (e.g., "EMA 20 crossed above EMA 50")

Trade ID: After logging, you’ll receive a unique trade ID (e.g., "233hdsf") to keep for future updates to the trade entry (e.g add profit/loss upon trade close).

Trade Update Example:

To update your trade with profit/loss or notes, send a message like: "Hey, update my trade with profit of 300+ and add note: trade was closed after 7 days. Trade ID: 233hdsf."

The system will locate your trade by ID and update the details accordingly.

2. Who is this for?

Traders who want a simple, hands-free way to track and manage their trades without manual data entry. Perfect for individual traders, prop firms, or anyone who prefers using Telegram to interact with their trading journal.

3. How to use:

  1. Create a Google Sheet with columns (ID (unique trade id auto generated for every trade), Asset/Pair, Entry Price, Stop Loss, Take Profit, Notes, Direction, Profit & Loss).
  2. Send trade details via Telegram message.
  3. Receive confirmation with a unique trade ID.
  4. Use the trade ID for any future updates to the trade entry.

All trades and updates are saved automatically in Google Sheets selected.

4. How to Set Up This Smart AI Trading Journal Workflow

This section guides you through setting up the workflow that logs and updates your trades via Telegram messages, using AI to extract trade details and storing them in Google Sheets.

  1. Telegram Bot Setup Create a Telegram bot using @BotFather: Send /newbot command. Choose a bot name and username. Copy the API token provided. In n8n, create Telegram credentials: Go to Credentials → Create new → Telegram API. Paste your bot API token. Use https://api.telegram.org as the base URL. Save the credentials.

  2. Google Sheets Setup Create a Google Sheet to store your trade journal with columns (ID (unique trade id auto generated for every trade), Asset/Pair, Entry Price, Stop Loss, Take Profit, Notes, Direction, Profit & Loss). Note the Spreadsheet ID from the URL (e.g., 1DeKt3teOs3R8Js9Go4rdhJCLKisLByMkO6LSPd5Be4c). Make sure your sheet has columns like: ID, Asset/Pair, Entry Price, Stop Loss, Take Profit, Direction, Notes, Profit & Loss. In n8n, create Google Sheets OAuth2 credentials: Follow n8n Google Sheets docs to set up OAuth2 (https://docs.n8n.io/integrations/builtin/credentials/google/). Save the credentials.

  3. AI Model Setup Use Google Gemini (PaLM) or Groq AI models for NLP: Sign up at Google AI Studio (https://aistudio.google.com/) or Groq Console (https://console.groq.com/). Create API credentials and get your API keys. In n8n, create credentials for any of the one AI model: Google Gemini API credentials. Groq API credentials.

The workflow uses these AI nodes to parse Telegram messages and extract structured trade data.

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 - Telegram Trigger

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

Block 2 - Google Gemini Chat Model1

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

Block 3 - Generate Unique Trade ID

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

Block 4 - Update the Sheet With Profit & Loss

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 5 - Log The Trade In Google Sheets Journal

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 7 - Groq Chat Model

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note4

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

Block 10 - Sticky Note5

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

Block 11 - Extract Journal Entry Fields

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

Block 12 - If (Trade Found => True)

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

Block 13 - Existing Entry Update OR New Entry

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

Block 14 - Send Response Back

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

Block 15 - Send Trade ID to Telegram For Further Updates

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

Block 16 - Agent Handles (If Trade Is Not Found)

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

Block 17 - Sends Response Back To Telegram

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

Block 18 - Sticky Note3

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

Block 19 - AI Agent (Extracts the Journal Entry)

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

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 Note6

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

3. Summary Table

Workflow Trading journal: log trades into Google Sheets via Telegram & Gemini AI
Complexity advanced
Nodes 22
Categories Crypto Trading, AI Summarization
Author Malik Hashir
Published 08 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5793/5793.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 Trading journal: log trades into Google Sheets via Telegram & Gemini AI do?

This smart AI powered trading journal lets you easily log and update your trades using Telegram messages. Just send your trade details by text to your personal telegram bot, and the system will ext...

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.