Quick overview
This workflow runs daily to fetch XAU/USD price, DXY, and US 10Y yield data, pulls related US financial news from GDELT and RSS feeds, uses Groq-hosted LLM analysis to generate a BUY/SELL/WAIT bias with probabilities, and sends the brief to Telegram.
How it works
- Runs every day at 12:00 via a cron schedule.
- Fetches the latest DXY and US10Y daily closes from Stooq and the current XAU/USD quote from TwelveData.
- Collects up to 25 related US-market headlines from GDELT and reads top stories from CNBC and Yahoo Finance RSS.
- Normalizes and deduplicates the market data and headlines, then flags “high impact” macro topics (for example CPI, NFP, or FOMC) based on keyword detection.
- Sends the compiled context to a Groq chat model through an AI agent to produce a structured macro bias, indicative signal (BUY/SELL/WAIT), probabilities, and confidence.
- Formats the AI output into a Telegram-friendly message (including probability bars) and sends it to the configured Telegram chat.
Setup
- Add your TwelveData API key and replace
YOUR_TWELVEDATA_API_KEY in the TwelveData HTTP request URL.
- Create a Groq credential/connection and select it for the Groq chat model used by the AI agent.
- Create a Telegram bot, add Telegram credentials in n8n, and replace
YOUR_TELEGRAM_CHAT_ID in both Telegram send nodes.
- Review and adjust the cron schedule time if you want the daily report to run at a different hour.