Skip to main content

Indonesian stock market research agent with Sectors App, Gemini & Tavily

Workflow preview

Workflow preview
100%
Indonesian stock market research agent with Sectors App, Gemini & Tavily 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 workflow demonstrate how to configure AI Agent for financial research purposes especially for IDX data through Sectors App API. use cases: research stock market in Indonesia. analyze the p...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.if, n8n-nodes-base.executeworkflow, @n8n/n8n-nodes-langchain.chat, n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Indonesian stock market research agent with Sectors App, Gemini & Tavily
Workflow name
Indonesian stock market research agent with Sectors App, Gemini & Tavily

This n8n workflow demonstrate how to configure AI Agent for financial research purposes especially for IDX data through Sectors App API.

use cases:

  • research stock market in Indonesia.
  • analyze the performance of companies belonging to certain subsectors or company
  • comparing financial metrics between BBCA and BBRI
  • providing technical analysis for certain ticker stock movement
  • and many more

all from conversational agent UI chat.

Main components

  • Input-n8nChatNative: handling and process input from native n8n chat ui
  • Input-TelegramBot: handling and process input from Telegram Bot
  • Input-WebUI(Webhook): handling and process input from hosted Web UI through webhook
  • Main Agent: processing raw user queries and delegate task to specialized agent if needed.
  • Spec Agent - Sectors App: make request to Sectors App API to get real time financial data listed in IDX from available endpoint
  • Spec Agent - Web Search: make web search from Google Grounding (Gemini API) and Tavily Search.
  • Vector Document Processing: process document upload from user into embedding and vector store.

How it works

  • user queries may received from multiple platform (we use three here: Telegram, hosted Web UI, and native n8n chat UI)
  • if user also uploading document, it will process the document and store it in vector store
  • the request send to the Main Agent to process the queries
  • the Main Agent decide the task to delegate to Specialized Agent if nedded.
  • the result then sent back to user based on the platform

How to use

You need this API:

you can optionally change the model or adding fallback model to handle token request, cause it may use quite many tokens.

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 - When chat message received

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

Block 2 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 3 - Call Sub-VectorStore

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 4 - Respond to Chat

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

Block 5 - Sub-MainAgent

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 6 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 7 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 9 - Call Sub-VectorStore1

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 10 - Sub-MainAgent1

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 11 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 12 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 13 - If2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Call Sub-VectorStore2

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 15 - Sub-MainAgent2

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 16 - AI Agent

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

Block 17 - Google Gemini Chat Model

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

Block 18 - Postgres Chat Memory

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

Block 19 - Embeddings Google Gemini1

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

Block 20 - VectorStore-CompanyKnowledge

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

Block 21 - Sub-SectorsApp

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

Block 22 - Sub-WebSearch

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

Block 23 - Start

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 24 - GetCompanies

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

Showing the first 24 of 44 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Indonesian stock market research agent with Sectors App, Gemini & Tavily
Complexity advanced
Nodes 44
Categories Market Research, AI Chatbot
Author Dzaky Jaya
Published 13 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9551/9551.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 Indonesian stock market research agent with Sectors App, Gemini & Tavily do?

This n8n workflow demonstrate how to configure AI Agent for financial research purposes especially for IDX data through Sectors App API. use cases: research stock market in Indonesia. analyze the p...

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 Market Research, AI Chatbot use case.