AI Stock Analysis and Chart Generation
detail.loadingPreview
Automate stock analysis using AI, generate technical charts, and receive them via Telegram.
About This Workflow
This workflow leverages n8n's Langchain nodes and other integrations to provide advanced stock analysis. It can respond to user queries via Telegram, interpret voice or text messages, transcribe voice to text, perform technical analysis using AI models, and generate stock charts using external APIs. The workflow supports both real-time interaction and scheduled analysis of a list of stocks.
Key Features
- Real-time Telegram Interaction: Receive and process messages (text and voice) from Telegram.
- Voice Transcription: Transcribe voice messages to text for AI processing.
- AI-powered Stock Analysis: Utilize OpenAI's GPT-4o for in-depth technical analysis of stock charts.
- Tool Integration: Employ the
getCharttool to generate stock charts based on user input. - Chart Generation API: Integrate with a Chart-img API to create visual stock charts.
- Scheduled Analysis: Analyze a predefined list of stocks at scheduled intervals.
- Data Storage: Save ticker symbols to Airtable for future reference and analysis.
- Structured Output: Delivers analysis and charts directly to the user via Telegram.
How To Use
Scenario 1: AI Agent (Telegram Interaction)
- Start a chat with the n8n Telegram bot.
- Send a text message with the stock ticker and desired chart style (e.g., 'AAPL candle').
- Send a voice message with the stock ticker and desired chart style.
- The workflow will transcribe voice messages, process the request using the AI agent, generate a chart if requested, perform technical analysis, and send the analysis and chart (if applicable) back to you via Telegram.
Scenario 2: Scheduled Analyses
- Configure the
Schedule Triggerto define how often analyses should run. - The
Get tokensnode fetches a list of ticker symbols from Airtable. - The
Loop Over Itemsnode iterates through each ticker. - The
Run Agentnode (currently points to a webhook) should be configured to trigger the analysis for each ticker. - The
Get Charttool and subsequent analysis nodes will process each ticker, and the results will be sent via Telegram.
Important Configuration Notes:
- Telegram Connection: Ensure your Telegram credentials (
credentials.telegramApi) are correctly set up. - OpenAI API Key: Configure your OpenAI API credentials (
credentials.openAiApi). - Chart-img API Key: Update the
Get Chart URLnode with your API key if required (currently using a credential). - Chat ID: Replace placeholder Chat IDs in Telegram nodes (e.g.,
chatId: "335458847") with your actual Telegram chat ID. - Airtable Credentials: Ensure your Airtable credentials (
credentials.airtableTokenApi) are set up for saving and fetching tickers.
Apps Used
Workflow JSON
{
"id": "bb2a603b-45de-448d-9a39-b6fd06aabd5d",
"name": "AI Stock Analysis and Chart Generation",
"nodes": 8,
"category": "AI",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: bb2a603b-45de...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Build an AI Documentation Expert Chatbot with Gemini RAG
This n8n workflow automates the creation of an AI-powered expert chatbot capable of answering questions based on your documentation. It intelligently ingests, cleans, and processes your knowledge base, preparing it for a Retrieval Augmented Generation (RAG) pipeline with Google Gemini.
Generate Multilingual Image Captions and Overlay
This workflow generates captions for images using Google Gemini and overlays them onto the image, with support for multilingual output.
LangChain Workflow Retriever Example
Demonstrates using LangChain's Retriever QA Chain to query data retrieved from another workflow.