🤖 Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord

617 views · 🤖 AI Chatbots & Agents

Description

This n8n template turns chat questions into structured financial reports using Gemini and posts them to a Discord channel via webhook. Ask about tickers, sectors, or theses (e.g., “NVDA long‑term outlook?” or “Gold ETF short‑term drivers?”) and receive a concise, shareable report.

Good to know

How it works

  1. Chat Trigger collects the user’s question (public chat supported when the workflow is activated).
  2. Conversation Memory keeps a short window of recent messages to maintain context.
  3. Connect Gemini provides the LLM (e.g., gemini‑2.5‑flash‑lite) and parameters (temperature, tokens).
  4. Agent (agent1) applies a financial analysis System Message to produce structured insights.
  5. Structured Output Parser enforces a simple JSON schema: idea (one‑line thesis) + analysis (Markdown sections).
  6. Code formats a Discord‑ready Markdown report (title, question, executive summary, sections, disclaimer).
  7. Edit Fields maps the formatted report to a clean content field.
  8. Discord Webhook posts the final report to your channel.

How to use

Requirements

Customising this workflow

🔗 Nodes Used

Discord, AI Agent, Simple Memory, Structured Output Parser, Chat Trigger, Google Gemini Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup