Skip to content
Gmail Inbox Triage

Module 06 · business · intermediate

Exercises 06 · Gmail Inbox Triage

Start from workflow/starter.json (Webhook, validation, Prepare Email) or your finished lesson workflow.

Exercise 1: Archive newsletters

Task: After labeling, mark newsletters as read and remove them from the inbox, so only real conversations stay.

Done when: a newsletter email ends up labeled, read, and out of the inbox.

Hint

IF category = newsletter → Gmail Mark as Read → Gmail Remove Label INBOX. System labels like INBOX and UNREAD use their names as IDs.

Exercise 2: Urgent alerts

Task: Replace Notify Me (Exercise 2) with a real notification (Telegram, Slack, or an email to yourself) containing who, subject and the AI summary.

Done when: an email saying "URGENT, our site is down" notifies you within a minute.

Hint

The alert data is in $('Label Map (edit me)').item.json. The Gmail node's output is the label API response.

Exercise 3: Draft replies for sales leads

Task: For sales emails, have AI write a short reply and save it as a Gmail draft (not sent) so you can review it.

Done when: a sales email gets a draft reply in its thread.

Hint

Basic LLM Chain (OpenAI model) to write the reply → Gmail Draft → Create with Thread ID in options so it lands in the right conversation.