# Stock analysis (Indonesia Language) with Gemini: n8n workflow

> Started by an event in a connected app. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/stock-analysis-indonesia-language-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Stock analysis (Indonesia Language) with Gemini

Started by an event in a connected app. It calls services over plain HTTP rather than through connectors. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 29 steps, 4 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fstock-analysis-indonesia-language-with-gemini)

**29 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**5** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Model 9 Logic 11 Service 8

The steps in the order they run, from what starts it.

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **WAHA Trigger** Waha trigger *Starts it*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **Google Gemini Chat Model5** Lm Chat Google Gemini *Model*
- 5 **Google Gemini Chat Model6** Lm Chat Google Gemini *Model*
- 6 **Postgres Chat Memory** Memory Postgres Chat *Model*
- 7 **AI Agent** Agent *Model*
- 8 **Switch** Switch *Logic*
- 9 **AI Agent1** Agent *Model*
- 10 **Extract Data** Information Extractor *Model*
- 11 **AI Agent4** Agent *Model*
- 12 **Wait** Wait *Logic*
- 13 **Set Ticker** Set *Logic*
- 14 **Code** Code *Logic*
- 15 **Wait1** Wait *Logic*
- 16 **Download Data** Http Request *Service*
- 17 **Wait2** Wait *Logic*
- 18 **Send a text message** WAHA *Service*
- 19 **Get Chart URL** Http Request *Service*
- 20 **Switch3** Switch *Logic*
- 21 **Start Typing** WAHA *Service*
- 22 **Switch4** Switch *Logic*
- 23 **Switch2** Switch *Logic*
- 24 **Extract from File** Extract From File *Service*
- 25 **Download Chart** Http Request *Service*
- 26 **Wait3** Wait *Logic*
- 27 **Wait4** Wait *Logic*
- 28 **Start Typing1** WAHA *Service*
- 29 **Send a text message1** WAHA *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 29, with 4 branches, 5 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** Gemini
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 29 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 29 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fstock-analysis-indonesia-language-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**AI-powered Telegram news broadcaster with Gemini and MongoDB** 29 steps · calls a model · MongoDB, RSS](https://millionrounds.com/workflow/ai-powered-telegram-news-broadcaster-with-gemini-and-mongodb)
- [**Research web topics and email a Claude report with Gmail** 29 steps · calls a model · Gmail](https://millionrounds.com/workflow/research-web-topics-and-email-a-claude-report-with-gmail)
- [**Find top-performing Instagram Reels & save insights to Notion** 29 steps · Apify, Notion](https://millionrounds.com/workflow/find-top-performing-instagram-reels-and-save-insights-to-not)
- [**Automate ESG compliance routing and reporting with OpenAI** 30 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/automate-esg-compliance-routing-and-reporting-with-openai)
- [**Automated competitor research agent with OpenAI and Notion** 30 steps · calls a model · Notion](https://millionrounds.com/workflow/automated-competitor-research-agent-with-openai-and-notion)
- [**Brand visibility & sentiment analysis across AI search tools** 30 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/brand-visibility-and-sentiment-analysis-across-ai-search-too)
