Quick Overview
This workflow runs every day at 8 AM, pulls the last 24 hours of emails from your Gmail Primary inbox, summarizes their full content using Groq’s Llama 3.3, and posts an actionable daily inbox briefing to a Slack channel.
How it works
- Runs daily at 8 AM on a schedule.
- Fetches all Gmail messages from the last day in the Primary category using a Gmail search query.
- Strips HTML, truncates long bodies, and combines all email subjects, senders, dates, and content into a single capped text block.
- Sends the compiled inbox text to Groq (Llama 3.3 70B) to generate a Slack-formatted briefing with a TL;DR, urgent items, and an email-by-email summary with tags.
- Posts the generated briefing to the selected Slack channel.
Setup
- Connect a Gmail OAuth2 credential and ensure the Gmail query (default:
newer_than:1d category:primary) matches the emails you want to include.
- Add a Groq API key credential and confirm the model selection (default:
llama-3.3-70b-versatile) and prompt meet your formatting needs.
- Connect a Slack API credential and choose the target channel to post the briefing.
- Update the schedule time and confirm your n8n instance timezone so the workflow runs at the intended hour.