Automation library · Scheduling

Triage Gmail inbox and draft replies with Groq

Started by an arriving email, and works across Gmail, Google Calendar, Google Sheets and Slack. It hands the judgement calls to Groq. 20 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Groq

20 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 1Model 6Logic 6Service 7

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

  1. 1Gmail TriggerGmail triggerStarts it
  2. 2Groq, Classifier ModelLm Chat GroqModel
  3. 3Triage JSON ParserOutput Parser StructuredModel
  4. 4Groq, Drafter ModelLm Chat GroqModel
  5. 5Extract EmailCodeLogic
  6. 6Groq ClassifierChain LlmModel
  7. 7Draft, Meeting ReplyChain LlmModel
  8. 8Draft, Lead ReplyChain LlmModel
  9. 9Parse ClassificationCodeLogic
  10. 10Gmail, Save Meeting DraftGmailService
  11. 11Gmail, Save Lead DraftGmailService
  12. 12Intent SwitchSwitchLogic
  13. 13Normalize Triage ResultSetLogic
  14. 14Calendar Free/BusyGoogle CalendarService
  15. 15Append Lead to SheetGoogle SheetsService
  16. 16Gmail, Label SpamGmailService
  17. 17Gmail, Mark TriagedGmailService
  18. 18Compute 3 Free SlotsCodeLogic
  19. 19Slack Notify Enabled?IfLogic
  20. 20Slack, Triage NotificationSlackService

How it's built

Starts on
An arriving email
Steps
20, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Calendar, Google Sheets, Slack
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Calendar, Google Sheets and Slack 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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 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 20 steps before you point it at anything that matters.