Skip to main content

Financial data Q&A chatbot with Google Finance, SerpAPI, and OpenAI

Workflow preview

Workflow preview
100%
Financial data Q&A chatbot with Google Finance, SerpAPI, and OpenAI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Replace with your actual SerpApi key. 2️⃣ Set Up OpenAI Connection 1. Go to OpenAI Platform 2. Navigate to Billing and ensure your account has credits/fundin...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Financial data Q&A chatbot with Google Finance, SerpAPI, and OpenAI
Workflow name
Financial data Q&A chatbot with Google Finance, SerpAPI, and OpenAI

Replace YOUR_API_KEY with your actual SerpApi key.

2️⃣ Set Up OpenAI Connection

  1. Go to OpenAI Platform
  2. Navigate to Billing and ensure your account has credits/funding
  3. Copy your API Key into the OpenAI credentials in n8n

🧠 Workflow Breakdown

  1. Chat Trigger → User enters a financial question (e.g., “What’s the current price of Tesla?”).
  2. HTTP Request (SerpApi Finance Search) → Fetches the latest market data for the requested ticker or index.
  3. OpenAI Node → Takes both the raw financial data and the user’s query, then formulates a natural language response.
  4. Output → Returns a clear, conversational answer that can be displayed in chat, Slack, or another integration.

🎛️ Customization Guidance

  • Multiple Tickers: Update the workflow to query multiple tickers (e.g., TSLA, AAPL, AMZN) and return a combined report.
  • Scheduling: Add a Schedule Trigger to run this workflow every morning and send a market recap.
  • Delivery Channels: Use Slack, Email, or Google Sheets nodes to distribute reports automatically.
  • Extended Data: Adjust the SerpApi query to include more than prices — e.g., company info, market news, or related tickers.
  • Custom Prompts: Change the OpenAI system prompt to make the chatbot more formal (for reporting) or casual (for quick insights).

💬 Example Questions & Responses

Question: “What’s the current price of the S&P 500?”
Expected Response:
“The S&P 500 (^GSPC) is currently trading at 4,725.13, down 0.8% today.”

Question: “Summarize the performance of Tesla and Apple today.”
Expected Response:

  • Tesla (TSLA): $238.45, up 1.5%
  • Apple (AAPL): $192.11, down 0.3%

Question: “Give me a quick market recap.”
Expected Response:
“Markets are mixed today — the S&P 500 is slightly down, while tech stocks like Tesla are showing gains. Apple dipped slightly after earnings news.”


📬 Contact

Need help customizing this workflow (e.g., multiple tickers, daily summaries, or integrating into dashboards)?

📧 [email protected]
🔗 Robert Breen
🌐 ynteractive.com

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 - OpenAI Chat Model5

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Simple Memory1

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

Block 3 - Turn Objects to Text1

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

Block 4 - Sticky Note60

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

Block 5 - Sticky Note17

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

Block 6 - SerpAPI Finance Search1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Chat with Google Finance

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

Block 8 - Sticky Note31

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

Block 9 - Sticky Note32

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

3. Summary Table

Workflow Financial data Q&A chatbot with Google Finance, SerpAPI, and OpenAI
Complexity intermediate
Nodes 9
Categories AI Chatbot, Multimodal AI
Author Robert Breen
Published 22 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7743/7743.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 data Q&A chatbot with Google Finance, SerpAPI, and OpenAI do?

Replace with your actual SerpApi key. 2️⃣ Set Up OpenAI Connection 1. Go to OpenAI Platform 2. Navigate to Billing and ensure your account has credits/fundin...

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.