A robust n8n workflow for scheduled financial portfolio analysis using Perplexity and OpenAI, delivering PDF reports via Telegram, and supporting real-time conversational AI.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow functions as a comprehensive, two-pronged financial analysis system. It addresses the need for both proactive, scheduled reporting and reactive, on-demand query handling. The scheduled component automates market research and portfolio analysis for a roster of clients, leveraging Perplexity for up-to-date information and multiple OpenAI n8n node agents for structuring and formatting the data into professional HTML and PDF reports. These reports are then automatically delivered via Telegram. The second crucial feature is the conversational AI assistant, activated by a Telegram n8n trigger, which manages user sign-ups, maintains chat memory using a Postgres chat memory n8n node, and can analyze uploaded documents (like personal portfolio statements) for instant feedback. This powerful n8n solution drastically reduces manual reporting time and enhances client engagement through personalized, real-time AI interactions.
The n8n workflow operates across two primary execution paths:
Schedule Trigger n8n node. It then uses the Search Clients (Postgres n8n node) to fetch all users requiring analysis.Loop Over Items n8n node iterates through each client record.RESEARCH REQUEST SPECIALIST AGENT (backed by an OpenAI Chat Model n8n node) defines a specific research query based on the client's portfolio needs.Message a model (Perplexity n8n node) executes the defined financial research.HTML FORMATTER AGENT. This agent structures the data and generates professional HTML content using several OpenAI n8n node components and output parsers.PDF Generator (PDFco n8n node). This file is then delivered to the client via a Telegram n8n node.Update Sent (Supabase n8n node) to log the delivery status.Telegram Trigger n8n node.IF User Exists n8n node to check user status and register new users if necessary.Conversation Agent (utilizing a Postgres Chat Memory n8n node for history and an OpenAI Conversation n8n node) responds intelligently. It can use tools defined in the n8n workflow, such as update_wallet.HTTP Request n8n nodes, and the Agent Analysis PDF performs complex analysis on the file content. This action then triggers a secondary research and report generation loop similar to the scheduled path, providing the user with a customized, document-specific financial report delivered immediately via a Telegram n8n node.Telegram Trigger n8n node.PDF Generator n8n node for converting HTML to PDF reports.clients, chat_history, wallets) as expected by the n8n node operations. Schedule Trigger n8n node: Initiates the periodic execution of the reporting flow, acting as the primary n8n trigger for automation.
Telegram Trigger n8n node: Serves as the real-time n8n trigger, initiating conversational flow or PDF analysis upon user interaction.
@n8n/n8n-nodes-langchain.agent (RESEARCH REQUEST SPECIALIST / HTML FORMATTER / Conversation Agent): These powerful n8n node agents coordinate complex multi-step AI tasks, utilizing various OpenAI Chat Model n8n nodes for reasoning, research planning, and output structuring.
Perplexity n8n node (Message a model): Used as the primary tool for fetching up-to-date, specialized financial information within the n8n workflow.
n8n-nodes-base.postgres (Search Clients, Postgres Chat Memory): Retrieves the list of clients for scheduled reporting and maintains the history for the conversational AI n8n node.
n8n-nodes-base.supabase (GET Supabase User, Update Sent, Update wallet): Manages user persistence, registration, and status updates across this complex n8n workflow.
n8n-nodes-pdfco.PDFco Api (PDF Generator): A critical n8n node for converting the finalized, professionally structured HTML report into a downloadable PDF document.
n8n-nodes-base.code (PARSE RESEARCH, HTML Report Generator): Custom scripting n8n node elements necessary to transform and refine data between AI steps and ensure proper HTML assembly.
Use this powerful n8n workflow template to automate real-time URL and IP threat analysis using NixGuard AI and Wazuh integration, triggering SOAR incident response actions. Get started quickly with this dispatcher n8n workflow.

Automate current affairs preparation for UPSC exams. This n8n workflow scrapes The Hindu, uses Gemini AI to filter and summarize the top news, and stores the digest in Google Sheets.

Use this powerful n8n workflow to automatically generate UGC videos using Gemini and SORA 2 (via custom HTTP requests), handling polling, storing files in Google Drive, and logging status to Google Sheets. Leverage advanced n8n templates for generative AI.

Use this n8n workflow to create a seamless web upload form, automatically calculate large file size, and handle secure, multi-part file transfers via the TransferNow API.

Automate Upwork job monitoring using this advanced n8n workflow. Scrape listings, filter duplicates using MongoDB, and receive instant Slack alerts for new jobs. This reliable n8n template ensures you never miss an opportunity.








































