Send daily AI market briefings to Telegram, Discord and Postgres with OpenAI, Twelve Data, CoinGecko, FRED, QuantGist and Marketaux
Quick overview This workflow runs every weekday morning, pulls market prices, crypto quotes, US 10Y yields, macro calendar events, and top market news from Twelve Data, CoinGecko, FRED, QuantGist, and Marketaux, then uses OpenAI to generate a market briefing, posts it to Telegram, and stores it in Postgres.
How it works Runs on a weekday schedule at 07:45 (Europe/Berlin). Fetches daily market ETF/FX time series from Twelve Data, crypto prices from CoinGecko, the US 10-year yield series from FRED, a near-term macro events calendar from QuantGist, and recent market news from Marketaux. Normalizes each provider’s response into a consistent structure and captures errors or missing/invalid payloads without guessing. Combines all sources and sends the normalized dataset plus source health to OpenAI to produce a strictly JSON-formatted market briefing with a single market regime label. Validates and reshapes the AI output (including enforcing allowed market_regime values and array fields) and attaches the raw source data for traceability. Formats the briefing into an HTML Telegram message and sends it to the configured Telegram chat. Inserts the full briefing (headline, summary, assets, events, news, drivers, opportunities, and raw sources) into a Postgres table.
Setup Add credentials for Twelve Data, CoinGecko, FRED, QuantGist, and Marketaux and ensure each API key is passed via the configured HTTP header/query authentication. Add an OpenAI API credential and select/allow access to the configured model (gpt-5.6-luna) in your n8n environment. Create a Telegram bot, connect Telegram credentials, and replace the chat ID with your target recipient/channel. Add Postgres credentials and create the public.briefings table with columns matching the INSERT statement (including jsonb fields for assets/events/news/drivers/opportunities/watch_next/raw_sources). Review and adjust the tracked symbols, countries/language filters, and the timezone/schedule if you want different coverage or delivery time.
Related Templates
Get Airtable data via AI and Obsidian Notes
I am submitting this workflow for the Obsidian community to showcase the potential of integrating Obsidian with n8n. Whi...
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Reply to Outlook Emails with OpenAI
Who is this template for? This template is for any Microsoft Outlook user who wants a trained AI agent to reason and rep...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments