• The OpenAI API is used for automatic email classification, which incurs a small per-request cost. See OpenAI Pricing for up-to-date info.
• You can easily expand the categories or connect more Slack channels to fit your workflow.
• The Supabase integration ensures you don’t process the same thread twice.
1. Gmail Trigger checks for unread emails.
2. Supabase Get Row verifies if the thread already exists.
3. If it’s a new thread, the OpenAI node classifies the email into categories such as “support” or “new-request.”
4. The Switch node routes messages to the correct Slack channel based on classification.
5. Supabase Create Row logs thread details (sender, subject, IDs) to your database.
6. Finally, the Gmail node marks the message as read to prevent duplication.
• The workflow uses a manual Gmail trigger by default, but you can adjust the polling frequency.
• Modify category names or Slack channels to match your internal setup.
• Extend the workflow to include auto-replies or ticket creation in your CRM.
• Gmail account (with OAuth2 credentials)
• Slack workspace (with channel access)
• OpenAI account for classification
• Supabase project for storing thread data
Use this automation to triage incoming requests, route sales leads to specific teams, or even filter internal communications. You can add nodes for auto-responses, CRM logging, or task creation in Notion or ClickUp.