Automation library · Data collection

Generate Indian stock investment ideas with Groq AI

Started by a clock, and works across Gmail, Google Sheets and RSS. It puts Groq behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 19 steps, 3 branches: a working afternoon to understand properly.

MediumCalls a model: GroqRetrieval

19 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 10Service 5

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

  1. 1Groq Chat ModelLm Chat GroqModel
  2. 2get_existing_ideasGoogle Sheets ToolService
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Executes Workflow Everyday at 9 AMSchedule triggerStarts it
  5. 5Generate Investment IdeasAgentModel
  6. 6Fetch Trending StocksHttp RequestService
  7. 7Fetch Indian Market NewsRss Feed ReadService
  8. 8Handle AI FailureIfLogic
  9. 9Handle API FailureIfLogic
  10. 10getting latest 5 newsLimitLogic
  11. 11AI FailedSetLogic
  12. 12Format for SheetsCodeLogic
  13. 13API FailedSetLogic
  14. 14Combine Market DataMergeLogic
  15. 15Combine all the errorsMergeLogic
  16. 16Json Format Error CheckIfLogic
  17. 17Format Data for AISetLogic
  18. 18Send Error Message on GmailGmailService
  19. 19Append row in sheetGoogle SheetsService

How it's built

Starts on
A clock
Steps
19, with 3 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, RSS
Model
Groq
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and RSS accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Groq. 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?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 steps before you point it at anything that matters.