Skip to main content

Automated stock technical analysis with xAI Grok & multi-channel notifications

Workflow preview

Workflow preview
100%
Automated stock technical analysis with xAI Grok & multi-channel notifications preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Who is this for? This workflow is designed for stock traders, financial analysts, investment enthusiasts, and anyone interested in automated stock market analysis. It's particularly useful for thos...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-rapiwa.rapiwa, n8n-nodes-base.gmail, n8n-nodes-base.httprequest, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.memorybufferwindow, @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 SpaGreen Creative.

Original n8n.io source

1.1 Workflow description

Title
Automated stock technical analysis with xAI Grok & multi-channel notifications
Workflow name
Automated stock technical analysis with xAI Grok & multi-channel notifications

Who is this for?

This workflow is designed for stock traders, financial analysts, investment enthusiasts, and anyone interested in automated stock market analysis. It's particularly useful for those who want to make data-driven trading decisions based on technical indicators without spending hours manually analyzing charts and data.

Who is this for?

This workflow is designed for:

  • Stock traders who want automated technical analysis
  • Investment enthusiasts seeking data-driven insights
  • Financial analysts who need daily market summaries
  • Portfolio managers tracking multiple stocks
  • Anyone interested in algorithmic trading signals

What this Workflow Does / Key Features

  • Automatically triggers daily at 9 PM to analyze stock market data
  • Checks if the market is open before proceeding with analysis
  • Fetches historical price data for major tech stocks (GOOGL, NVDA, META, AMZN, TSLA, MSFT)
  • Calculates technical indicators:
    • RSI (Relative Strength Index) to identify overbought/oversold conditions
    • MACD (Moving Average Convergence Divergence) to identify trend changes
  • Generates Buy/Sell/Hold signals based on technical indicators
  • Uses AI (xAI's Grok model) to analyze and interpret the technical data
  • Distributes analysis results through multiple channels:
    • Email via Gmail
    • Personal Telegram chat
    • Telegram channel
    • WhatsApp via Rapiwa
    • Google Sheets for historical tracking
  • Fetches market news via RSS feed to enhance analysis

Requirements

  • Alpaca API credentials (for market data)
  • xAI API credentials (for AI analysis)
  • Gmail OAuth2 credentials (for email notifications)
  • Telegram Bot API credentials (for Telegram notifications)
  • Rapiwa API credentials (for WhatsApp notifications)
  • Google Sheets OAuth2 credentials (for data storage)

How to Use — step-by-step Setup

1. Configure Credentials

  • Alpaca API: Add your Alpaca API credentials to n8n (named "Custom Auth account" in the example)
  • xAI API: Add your xAI API credentials to n8n (named "xAI account" in the example)
  • Gmail OAuth2: Set up Gmail OAuth2 credentials (named "Gmail account" in the example)
  • Telegram Bot API: Configure Telegram Bot API credentials (named "Telegram account" in the example)
  • Rapiwa API: Add Rapiwa API credentials (named "Rapiwa account 2" in the example)
  • Google Sheets OAuth2: Set up Google Sheets OAuth2 credentials (named "Google Sheets" in the example)

2. Configure Stock Symbols

  • In the "Currency/Symble List" node, modify the JSON to include your preferred stock symbols
  • Default symbols are: "GOOGL, NVDA, META, AMZN, TSLA, MSFT"

Useful Links

  • n8n Documentation: docs
  • Alpaca API Documentation: docs
  • xAI API Documentation: [docs)
  • Telegram Bot API: docs
  • Technical Analysis Concepts: docs

Support & Help

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

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

Block 2 - Interpret Data

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

Block 3 - Rapiwa

Type / Role
n8n-nodes-rapiwa.rapiwa - rapiwa
Config choices
Version 1

Block 4 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 5 - Fetch Stock Market Data

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

Block 6 - Send warning message

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

Block 7 - Send Market Summary message

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

Block 8 - Memory

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

Block 9 - Analysis Agent

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

Block 10 - Send Market Summary On Channel

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

Block 11 - Get Market Condition

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

Block 12 - Check Market is open/close

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

Block 13 - Currency/Symble List

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

Block 14 - RSS Read

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

Block 15 - xAI

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

Block 21 - Sticky Note5

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

Block 23 - Append row in sheet

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

Block 24 - Sticky Note7

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

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

3. Summary Table

Workflow Automated stock technical analysis with xAI Grok & multi-channel notifications
Complexity advanced
Nodes 25
Categories Crypto Trading, AI Summarization
Author SpaGreen Creative
Published 09 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11621/11621.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 Automated stock technical analysis with xAI Grok & multi-channel notifications do?

Who is this for? This workflow is designed for stock traders, financial analysts, investment enthusiasts, and anyone interested in automated stock market analysis. It's particularly useful for thos...

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.