Skip to main content

Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord

Workflow preview

Workflow preview
100%
Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 o...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.discord, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by aditya vadaganadam.

Original n8n.io source

1.1 Workflow description

Title
Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord
Workflow name
Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord

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

  • Not financial advice: Use for insights only; verify independently.
  • Model availability can vary by region. If you see “model not found,” it may be geo‑restricted.
  • Costs depend on model and tokens. Check current Gemini pricing for updates.
  • Discord messages are limited to ~2000 characters per post; long reports may need splitting.
  • Rate limits: Discord webhooks are rate‑limited; add short waits for bursts.

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

  • Start with the built‑in Chat Trigger: click Open chat, ask a question, and verify the Discord post.
  • Replace or augment with a Cron or Webhook trigger for scheduled or programmatic runs.
  • For richer context, add HTTP Request nodes (prices, news, filings) and pass summaries to the agent.

Requirements

  • n8n instance with internet access
  • Google AI (Gemini) API key
  • Discord server with a webhook URL

Customising this workflow

  • System Message: Adjust tone, depth, risk profile, and required sections (Summary, Drivers, Risks, Metrics, Next Steps, Takeaway).
  • Model settings: Switch models or tune temperature/tokens in Connect Gemini.
  • Schema: Extend the parser and formatter with fields like drivers[], risks[], or metrics{}.
  • Formatting: Edit the Code node to change headings, emojis, disclaimers, or add timestamps.
  • Operations: Add retries, message splitting for long outputs, and rate‑limit handling for Discord.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Introduction Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Example Chat

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 5 - Conversation Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 6 - Connect Gemini

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Discord

Type / Role
n8n-nodes-base.discord - discord
Config choices
Version 2

Block 9 - agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 10 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 11 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note18

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord
Complexity advanced
Nodes 19
Categories AI Chatbot, Multimodal AI
Author aditya vadaganadam
Published 24 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7800/7800.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Financial analysis report chatbot agent with Gemini 2.5 Flash and Discord do?

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 o...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.