Automation library · AI assistants

Automated email classification & response system with Groq AI

Started by an arriving email, and works across Email, Pinecone and X. It puts Groq behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 34 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GroqRetrieval

34 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 14Logic 6Service 13

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

  1. 1Email Trigger (IMAP)Email Read ImapService
  2. 2Groq Chat ModelLm Chat GroqModel
  3. 3Groq Chat Model1Lm Chat GroqModel
  4. 4Groq Chat Model2Lm Chat GroqModel
  5. 5Groq Chat Model3Lm Chat GroqModel
  6. 6Embeddings CohereEmbeddings CohereModel
  7. 7When clicking ‘Execute workflow’Manual triggerStarts it
  8. 8Embeddings Cohere1Embeddings CohereModel
  9. 9Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  10. 10CodeCodeLogic
  11. 11Basic LLM ChainChain LlmModel
  12. 12Sentiment Analysis of feedbackSentiment AnalysisModel
  13. 13RAG INQURY REPLYAgentModel
  14. 14Basic LLM Chain1Chain LlmModel
  15. 15Pinecone Vector StoreVector Store PineconeModel
  16. 16HTTP RequestHttp RequestService
  17. 17Pinecone Vector Store1Vector Store PineconeModel
  18. 18Default Data LoaderDocument Default Data LoaderModel
  19. 19Switch1SwitchLogic
  20. 20CLEAN AI AGENT OUTPUTCodeLogic
  21. 21XTwitterService
  22. 22send email to teamEmail SendService
  23. 23send reply to customerEmail SendService
  24. 24Code2CodeLogic
  25. 25Extract from FileExtract From FileService
  26. 26bill send to teamEmail SendService
  27. 27Send to customerEmail SendService
  28. 28TO SALES TEAMEmail SendService
  29. 29SwitchSwitchLogic
  30. 30Code3CodeLogic
  31. 31send to support teamEmail SendService
  32. 32accepted confirm to candidateEmail SendService
  33. 33rejection emailEmail SendService
  34. 34to hrEmail SendService

How it's built

Starts on
An arriving email
Steps
34, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Email, Pinecone, X
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 Email, Pinecone and X accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

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?

Take your time. At 34 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 34 steps before you point it at anything that matters.