Automation library · Strategy and planning

Run AI-powered market research with Groq and OpenAI

Started by someone opening a chat with it, and works across Gmail. It puts Groq and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 24 steps: large, and worth reading before you trust it with anything live.

LargeCalls a model: Groq, OpenAIRetrieval

24 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 19Logic 2Service 2

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3Simple Memory1Memory Buffer WindowModel
  4. 4Simple Memory2Memory Buffer WindowModel
  5. 5Simple Memory3Memory Buffer WindowModel
  6. 6Structured Output Parser1Output Parser StructuredModel
  7. 7Structured Output Parser2Output Parser StructuredModel
  8. 8Structured Output Parser3Output Parser StructuredModel
  9. 9Structured Output Parser4Output Parser StructuredModel
  10. 10Simple Memory4Memory Buffer WindowModel
  11. 11Groq Chat Model1Lm Chat GroqModel
  12. 12Groq Chat Model2Lm Chat GroqModel
  13. 13Groq Chat Model3Lm Chat GroqModel
  14. 14Groq Chat Model4Lm Chat GroqModel
  15. 15OpenAI Chat Model3Lm Chat Open AiModel
  16. 16Planner AgentAgentModel
  17. 17Customer Insights AgentAgentModel
  18. 18Market Scan AgentAgentModel
  19. 19Competitor Insights AgentAgentModel
  20. 20Synthesis AgentAgentModel
  21. 21MergeMergeLogic
  22. 22Format Data for DocumenteroCodeLogic
  23. 23DocumenteroDocumenteroService
  24. 24Send a messageGmailService

How it's built

Starts on
Someone opening a chat with it
Steps
24
Size
Large: read it before trusting it with anything live
Connects to
Gmail
Model
Groq, OpenAI
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 account, and a key for Groq and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls Groq and OpenAI. 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 24 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 24 steps before you point it at anything that matters.