Indonesian stock market research agent with Sectors App, Gemini & Tavily
Ready for 3.0What this workflow does
This AI workflow has 37 nodes and runs when another workflow calls it (plus 3 other triggers). Along the way it connects Telegram, Google Gemini Chat Model, Postgres Chat Memory and Embeddings Google Gemini and 2 more. It also calls api.sectors.app, api.tavily.com and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When another workflow calls it (plus 3 other triggers).
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 3 tools (Sub-WebSearch, Sub-SectorsApp, VectorStore-CompanyKnowledge); memory: Postgres Chat Memory
- If: checks a condition and branches into true / false
- Sub-MainAgent (Execute Sub-workflow): calls another n8n workflow
- Sub-MainAgent (Execute Sub-workflow): calls another n8n workflow
- If: checks a condition and branches into true / false
- Sub-MainAgent (Execute Sub-workflow): calls another n8n workflow
- If: checks a condition and branches into true / false
- Call Sub-VectorStore (Execute Sub-workflow): calls another n8n workflow
- Respond to Chat (Chat): uses Chat
- Send a text message (Telegram): uses Telegram
…plus 6 more steps. See the full node list below.
Services it uses
HTTP calls to: api.sectors.app, api.tavily.com, generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (17)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - If
n8n-nodes-base.if - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Chat
@n8n/n8n-nodes-langchain.chat - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Http Request Tool
n8n-nodes-base.httpRequestTool - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader
From the author
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…