Darmowy szablon automatyzacji

Zautomatyzowane raporty analizy akcji z technicznymi i informacyjnymi nastrojami przy użyciu GPT-4o

3304
27 dni temu
45
bloków


Stock Analysis Agent (Hebrew, RTL, GPT-4o)

Przegląd

Otrzymaj kompleksową analizę akcji dzięki temu zautomatyzowanemu procesowi, który dostarcza praktyczne wnioski wspierające Twoje decyzje inwestycyjne. Co tydzień workflow wykonuje następujące czynności:

  • Analizuje dane akcji z wielu źródeł (Chart-img, Twelve Data API, Alphavantage)
  • Przeprowadza analizę techniczną z użyciem zaawansowanych wskaźników (RSI, MACD, Bollinger Bands, poziomy wsparcia i oporu)
  • Skanuje wiadomości finansowe z Alpha Vantage w celu określenia nastrojów rynkowych
  • Wykorzystuje OpenAI GPT-4o do identyfikacji wzorców, trendów i okazji handlowych
  • Generuje w pełni sformatowaną, responsywną wiadomość HTML (z poprawnym układem RTL) w języku hebrajskim
  • Wysyła szczegółowe rekomendacje bezpośrednio na Twoją skrzynkę mailową

Idealne rozwiązanie dla inwestorów, traderów i analityków finansowych, którzy chcą otrzymywać oparte na danych analizy akcji - łączące wskaźniki techniczne z nastrojami rynkowymi dla lepszych decyzji.

Instrukcja konfiguracji

Szacowany czas konfiguracji: 15 minut

Wymagane dane dostępowe:

  • Klucz API OpenAI
  • Klucz API Chart-img (darmowa wersja)
  • Klucz API Twelve Data (darmowa wersja)
  • Klucz API Alpha Vantage (darmowa wersja)
  • Dane dostępowe SMTP (do wysyłki email)

Kroki:

  1. Zaimportuj ten szablon do swojej instancji n8n
  2. Dodaj swoje klucze API w sekcji credentials
  3. Skonfiguruj węzeł SMTP Email podając: Host (np. smtp.gmail.com), Port (465 lub 587), Nazwę użytkownika (Twój email), Hasło (specjalne hasło aplikacji)
  4. Aktywuj workflow
  5. Wypełnij formularz
  6. Ciesz się automatyzacją! (Sprawdź folder Spam)

Porady dotyczące dostosowywania

  • Zmodyfikuj okres analizy (dzienny, tygodniowy, miesięczny)
  • Dodaj integracje z platformami tradingowymi lub narzędziami do zarządzania portfelem
  • Dostosuj kryteria rekomendacji zgodnie z Twoją tolerancją ryzyka

Przykłady zastosowań

Ta automatyzacja znajduje zastosowanie w wielu scenariuszach związanych z inwestowaniem i analizą rynku. Oto najważniejsze przypadki użycia:

  • Regularne raportowanie stanu portfela inwestycyjnego
  • Wykrywanie okazji inwestycyjnych na podstawie analizy technicznej
  • Monitorowanie nastrojów rynkowych w oparciu o wiadomości finansowe
  • Automatyczne alerty o potencjalnych punktach zwrotnych na wykresach
  • Generowanie gotowych rekomendacji dla klientów firm brokerskich
  • Wsparcie w podejmowaniu decyzji dla indywidualnych inwestorów
  • Integracja z systemami tradingowymi w celu częściowej automatyzacji transakcji

Dlaczego warto użyć tego rozwiązania?

To nie tylko dane o akcjach. To inteligentny asystent finansowy, który łączy analizę techniczną z nastrojami rynkowymi, dostarczając praktyczne rekomendacje - w pełni automatycznie.

Ważna uwaga

Ten raport jest generowany automatycznie i nie stanowi rekomendacji inwestycyjnej. Przed podjęciem jakichkolwiek decyzji inwestycyjnych skonsultuj się z licencjonowanym doradcą inwestycyjnym.


   Skopiuj kod szablonu   
{"meta":{"instanceId":"6c3d8936583f8a98fa8ebe06f510117c0e8fff2df771e73deba4126a853eb55e"},"nodes":[{"id":"a9bbe9d0-51aa-40f8-8931-f405c695c732","name":"Window Buffer Memory","type":"@n8n/n8n-nodes-langchain.memoryBufferWindow","position":[1140,140],"parameters":{"sessionKey":"=335458847","sessionIdType":"customKey"},"typeVersion":1.3},{"id":"2d6315d6-959d-4e16-97ed-30839d826ce2","name":"AI Agent","type":"@n8n/n8n-nodes-langchain.agent","position":[1080,-100],"parameters":{"text":"=Ticker = {{ $json["Ticker symbol:"] }}","options":{"systemMessage":"=# OverviewnYou are an AI agent specialized in stock analysis. You provide technical analysis and sentiment for stock investments by combining chart data and news sentiment.nn# Instructionsn1. When a user requests an analysis of a stock with its symbol:n - Send the stock symbol to both tools **technical_analysis** and **trends_analysis**n - Analyze the combined data and prepare a JSON report with your insightsn - Provide a clear recommendation (positive, neutral, or negative)n2. Your output must be in the format of a structured JSON object that will be used to fill an HTML template.n3. Translate the article titles in topArticles to Hebrewn4. Translate the sentimentHebrew results to only one of these values:n"חיובי-חזק/חיובי-חלש/נייטרלי/שלילי-חלש/שלילי-חזק". Somewhat=חלש.n5. Write the Date value in each article: "topArticles" only in this format: "DD/MM/YYYY".n6. Update the technicalAnalysis value as a detailed technical analysis of three paragraphs, which explains even to those who don't understand economics what you did and how you reached your conclusions. Touch on all the indicators examined (Volume, EMA, RSI, Fibonacci retracement, MACD, Bollinger bands, Resistance and support levels)n7. Ensure that the text in the technicalAnalysis value is written in proper Hebrew, like a professional analyst. Use the think tooln8. In the Recommendation value - recommend to buy or sell only if you think with high probability that there will be a rise or fall. Use the think tool to verify your Recommendation based on recommendationText. Advise something only if you really believe it. Your default is the "ממליץ לחכות" value.nn## Toolsn- **technical_analysis**: Generates technical analysis based on stock chartsn- **trends_analysis**: Analyzes news sentiment for the requested stocknn## Response FormatnYou must respond with a JSON object containing exactly the following keys to fill the HTML template:nn```jsonn{n "stockSymbol": "סימול",n "analysisDate": "DD/MM/YYYY",n "recommendationClass": "positive/neutral/negative",n "recommendationTitle": "כותרת המלצה בעברית",n "recommendationText": "הסבר מפורט של ההמלצה בעברית",n "bullishCount": 0,n "neutralCount": 0, n "bearishCount": 0,n "bullishHeight": 0,n "neutralHeight": 0,n "bearishHeight": 0,n "overallSentiment": "חיובי/נייטרלי/שלילי",n "Recommendation": "ממליץ לקנות/ ממליץ לחכות/ ממליץ למכור",n "sentimentScore": 0.00,n "chartImageUrl": "URL_PLACEHOLDER",n "technicalAnalysis": "ניתוח טכני מפורט בעברית עם תגי

",n "topArticles": [n {n "title": "כותרת המאמר בעברית",n "url": "כתובת URL של המאמר",n "source": "שם המקור באנגלית",n "date": "DD/MM/YYYY",n "sentimentClass": "bullish/neutral/bearish",n "sentimentHebrew": "חיובי-חזק/חיובי-חלש/נייטרלי/שלילי-חלש/שלילי-חזק"n }n ],n "hotTopics": [n {n "topic": "שם הנושא בעברית",n "article_count": 0,n "average_relevance": "0.00"n }n ]n}"},"promptType":"define","hasOutputParser":true},"typeVersion":1.7},{"id":"14112026-19eb-493f-971b-28455a8d4412","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[680,-220],"parameters":{"color":4,"width":1820,"height":580,"content":"# AI AgentnAI agent powered by GPT-4o that analyses stocks by combining technical analysis and news sentiment, generating detailed reports in Hebrew with data-driven investment recommendations"},"typeVersion":1},{"id":"8b2e573e-7acc-4b0b-a708-4ce33873a893","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[680,380],"parameters":{"width":2820,"height":920,"content":"# Technical Analysis ToolnA tool that performs in-depth technical analysis of stock charts by combining visual pattern recognition with quantitative indicators. It fetches data from Chart-img API for generating visual charts, Twelve Data API for historical prices and technical indicators (Bollinger Bands, MACD), and uses OpenAI's GPT-4o for visual chart pattern recognition.nThe system synthesizes this multi-source data into a comprehensive technical assessment with actionable trading insights based on support/resistance levels, Fibonacci retracements, and candlestick patterns."},"typeVersion":1},{"id":"b0d49fa6-5c57-4ab5-a752-93d7d278b8fa","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[2520,-220],"parameters":{"width":980,"height":580,"content":"# Trends Analysis ToolnA tool that analyses news sentiment for requested stocks by fetching recent financial news articles, calculating sentiment metrics, identifying influential stories, and extracting trending topics. It processes data from Alpha Vantage's news API, determines overall market sentiment, and delivers structured analysis on stock sentiment, relevance, and market outlook."},"typeVersion":1},{"id":"13a242cf-0a01-4aea-a58e-9b734aed912c","name":"Structured Output Parser","type":"@n8n/n8n-nodes-langchain.outputParserStructured","position":[1900,140],"parameters":{"schemaType":"manual","inputSchema":"{n "stockSymbol": "סימול",n "analysisDate": "DD/MM/YYYY",n "recommendationClass": "positive/neutral/negative",n "recommendationTitle": "כותרת המלצה בעברית",n "recommendationText": "הסבר מפורט של ההמלצה בעברית",n "bullishCount": 0,n "neutralCount": 0, n "bearishCount": 0,n "bullishHeight": 0,n "neutralHeight": 0,n "bearishHeight": 0,n "overallSentiment": "חיובי/נייטרלי/שלילי",n "Recommendation": "ממליץ לקנות/ ממליץ לחכות/ ממליץ למכור",n "sentimentScore": 0.00,n "chartImageUrl": "URL_PLACEHOLDER",n "technicalAnalysis": "ניתוח טכני מפורט בעברית עם תגי

",n "topArticles": [n {n "title": "כותרת המאמר",n "url": "כתובת URL של המאמר",n "source": "שם המקור",n "date": "DD/MM/YYYY",n "sentimentClass": "bullish/neutral/bearish",n "sentimentHebrew": "חיובי-חזק/חיובי-חלש/נייטרלי/שלילי-חלש/שלילי-חזק"n }n ],n "hotTopics": [n {n "topic": "שם הנושא בעברית",n "article_count": 0,n "average_relevance": "0.00"n }n ]n}"},"typeVersion":1.2},{"id":"bb5dd63a-a3e6-408e-a5c9-13e9f72f2b26","name":"GPT 4o","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","position":[960,140],"parameters":{"model":{"__rl":true,"mode":"list","value":"gpt-4o","cachedResultName":"gpt-4o"},"options":{}},"credentials":{"openAiApi":{"id":"2m1HH5crgPAhTJlv","name":"OpenAi account"}},"typeVersion":1.2},{"id":"94d820d2-eb20-4184-8e21-1ed5936c9166","name":"Generate HTML","type":"n8n-nodes-base.html","position":[1860,-100],"parameters":{"html":"nnnnnניתוח מניית {{ $('AI Agent').item.json.output.stockSymbol }}nnn n

n n n
n
n

ניתוח מניית {{ $('AI Agent').item.json.output.stockSymbol }}

n
תאריך: {{ $('AI Agent').item.json.output.analysisDate }}
n
n n n
n n n
n
n
n
n
n ⚖️n
n

{{ $('AI Agent').item.json.output.recommendationTitle }}

n

{{ $json.message.content.recommendationText }}

nn
n
nn n
n

ניתוח טכני

n n
n גרף טכני {{ $('AI Agent').item.json.output.stockSymbol }}n
n n
n {{ $json.message.content.technicalAnalysis }}n
n
n n n
n

ניתוח סנטימנט שוק

n n nnnnnnn
n
{{ $('AI Agent').item.json.output.bullishCount }}
n
n
חיובי
n
n
{{ $('AI Agent').item.json.output.neutralCount }}
n
n
נייטרלי
n
n
{{ $('AI Agent').item.json.output.bearishCount }}
n
n
שלילי
n
n n
n הסנטימנט הכללי למניית {{ $('AI Agent').item.json.output.stockSymbol }} הוא n {{ $('AI Agent').item.json.output.overallSentiment }} n עם ציון של {{ $('AI Agent').item.json.output.sentimentScore }}n
n
n n n
n

מאמרים משפיעים

n nn nnnn n nnnn n nnnn n nnnn n nnnn
nnnnnn
n

n {{ $('AI Agent').item.json.output.topArticles[0].title }}n

nnnnnn
{{ $('AI Agent').item.json.output.topArticles[0].source }} | {{ $('AI Agent').item.json.output.topArticles[0].date }}n
n {{ $('AI Agent').item.json.output.topArticles[0].sentimentHebrew }}n
n
n
n
nnnnnn
n

n {{ $('AI Agent').item.json.output.topArticles[1].title }}n

nnnnnn
{{ $('AI Agent').item.json.output.topArticles[1].source }} | {{ $('AI Agent').item.json.output.topArticles[1].date }}n
n {{ $('AI Agent').item.json.output.topArticles[1].sentimentHebrew }}n
n
n
n
nnnnnn
n

n {{ $('AI Agent').item.json.output.topArticles[2].title }}n

nnnnnn
{{ $('AI Agent').item.json.output.topArticles[2].source }} | {{ $('AI Agent').item.json.output.topArticles[2].date }}n
n {{ $('AI Agent').item.json.output.topArticles[2].sentimentHebrew }}n
n
n
n
nnnnnn
n

n {{ $('AI Agent').item.json.output.topArticles[3].title }}n

nnnnnn
{{ $('AI Agent').item.json.output.topArticles[3].source }} | {{ $('AI Agent').item.json.output.topArticles[3].date }}n
n {{ $('AI Agent').item.json.output.topArticles[3].sentimentHebrew }}n
n
n
n
nnnnnn
n

n {{ $('AI Agent').item.json.output.topArticles[4].title }}n

nnnnnn
{{ $('AI Agent').item.json.output.topArticles[4].source }} | {{ $('AI Agent').item.json.output.topArticles[4].date }}n
n {{ $('AI Agent').item.json.output.topArticles[4].sentimentHebrew }}n
n
n
n
n
n n n
n

נושאים חמים

n n
n

הנושאים המרכזיים שמופיעים בחדשות על {{ $('AI Agent').item.json.output.stockSymbol }}:

n n n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[0].topic }}n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[0].article_count }} מאמריםn
n
n
n
n
n
n
רלוונטיות: {{ $('AI Agent').item.json.output.hotTopics[0].average_relevance }}
n
n n n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[1].topic }}n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[1].article_count }} מאמריםn
n
n
n
n
n
n
רלוונטיות: {{ $('AI Agent').item.json.output.hotTopics[1].average_relevance }}
n
n n n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[2].topic }}n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[2].article_count }} מאמריםn
n
n
n
n
n
n
רלוונטיות: {{ $('AI Agent').item.json.output.hotTopics[2].average_relevance }}
n
n n n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[3].topic }}n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[3].article_count }} מאמריםn
n
n
n
n
n
n
רלוונטיות: {{ $('AI Agent').item.json.output.hotTopics[3].average_relevance }}
n
n n n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[4].topic }}n
n
n
n {{ $('AI Agent').item.json.output.hotTopics[4].article_count }} מאמריםn
n
n
n
n
n
n
רלוונטיות: {{ $('AI Agent').item.json.output.hotTopics[4].average_relevance }}
n
n
n
nt n n
n
n

דוח זה נוצר באופן אוטומטי ואינו מהווה המלצת השקעה.

n

יש להתייעץ עם יועץ השקעות מורשה לפני קבלת החלטות השקעה.

n
n
n נבנה ב-❤️ ע"י עילי גזn
n
n n
nnn"},"typeVersion":1.2},{"id":"84a2fe62-e936-49ca-83d6-a02371e02166","name":"Send Stock Analysis","type":"n8n-nodes-base.emailSend","position":[2280,-100],"webhookId":"0de4d8cd-3519-4a4a-a05b-a9c973b64141","parameters":{"html":"={{ $json.html }}","options":{},"subject":"=הסקירה היומית של מניית {{ $('AI Agent').item.json.output.stockSymbol }}: {{ $('AI Agent').item.json.output.analysisDate }}","toEmail":"={{ $('On form submission').item.json["Email:"] }}","fromEmail":"Elay's AI Assistant "},"credentials":{"smtp":{"id":"583PMpoYf46gbncd","name":"SMTP account"}},"executeOnce":false,"typeVersion":2.1},{"id":"36943e20-b0fc-40b0-b695-e0bdbd9182d1","name":"Adjust HTML Colors","type":"n8n-nodes-base.code","position":[2080,-100],"parameters":{"jsCode":"// New function to remove topics with only one article - ultra-simple approachnfunction removeSingleArticleTopics(html) {n // First, see if there are any topics with exactly 1 articlen if (!html.includes('1 מאמרים')) {n console.log('No topics with 1 article found');n return html;n }nn // Find each line that contains the "נושא" commentn // and check if it has exactly 1 article mentionedn const lines = html.split('\n');n const linesToRemove = [];nn // For each line containing "1 מאמרים", find the topic it belongs ton for (let i = 0; i < lines.length; i++) {n if (lines[i].includes('1 מאמרים')) {n console.log(`Found line ${i} with 1 article mention`);n n // Go back to find the start of this topicn let startLine = -1;n for (let j = i; j >= 0; j--) {n if (lines[j].includes(' magic-wandmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram