How to Create an Auto-Email Organizer Using Make.com

How to Create an Auto-Email Organizer Using Make.com

This guide will help you set up an automation in Make.com that categorizes incoming emails into labels based on their content (e.g., Upwork, newsletter, important) using Gmail and OpenAI. Follow these steps.

Step 1: Set Up a New Scenario

  1. Log into Make.com and create a new scenario.
  2. Select Google Mail and the Trigger New Email module.Authorize your Gmail account.Set the folder to [Gmail]/All Mail.Use "ALL" for the criteria.Leave markSeen unchecked to keep emails unread.Set maxResults to your preferred number, like 10.

Step 2: Add the ChatGPT Module

  1. After setting up the email trigger, click the plus sign and add the OpenAI - Create Chat Completion module.Connect your OpenAI account.Choose gpt-4 for the model.Set temperature to 1 for creativity.Use the prompt: Classify this email as either Upwork, newsletter, Important: {{14.text}}.

Step 3: Create a Router

  1. Add a Router to split the workflow based on classification results.
  2. Create routes for each email category (e.g., Sales, Newsletter, Important).

Step 4: Add Label Modification Modules

  1. For each route, add the GMail - Modify Labels module to apply the appropriate label based on classification.

Route 1: Label Emails as Sales

  1. Add a Google Mail Module.
  2. Map the Message ID to {{14.messageId}} and select the Sales label.
  3. Set a filter: {{2.result}} contains "Sales".

Route 2: Label Emails as Newsletters

  1. Add another Google Mail Module.
  2. Map the Message ID to {{14.messageId}} and select the Newsletter label.
  3. Set a filter: {{2.result}} contains "newsletter".

Repeat for other categories.

Step 5: Test and Activate the Scenario

  1. Run the scenario in testing mode.
  2. Send test emails to check classification.
  3. Activate the scenario if all works well.

Conclusion

You've now set up an automated email organizer that categorizes emails using AI and applies labels in Gmail.

4o mini

要查看或添加评论,请登录

社区洞察

其他会员也浏览了