Sticky Note Automate

用于Sticky Note,自动化处理Gmail邮件,定期检查特定标签的邮件,利用OpenAI助手生成回复草稿,并将其添加到邮件线程中,提升工作效率,节省时间。

7/8/2025
23 nodes
Complex
schedulecomplexsticky notegmailmarkdownlangchainsplitinbatchesschedule triggerautomationadvancedapiintegrationcron
Categories:
Communication & MessagingSchedule TriggeredComplex Workflow
Integrations:
Sticky NoteGmailMarkdownLangChainSplitInBatchesSchedule Trigger

Target Audience

This workflow is ideal for:
- Freelancers who need to manage multiple email threads efficiently.
- Small business owners looking to automate customer responses and save time.
- Customer support teams that handle numerous inquiries and require quick replies.
- Individuals who want to streamline their email communication without manual intervention.

Problem Solved

This workflow automates the process of responding to emails with specific labels by utilizing OpenAI Assistant to generate replies. It eliminates the manual work of drafting responses, allowing users to focus on more critical tasks while ensuring timely communication with clients or customers.

Workflow Steps

  • Schedule Trigger: The workflow is triggered every 1 minute to check for new emails with specific labels.
    2. Get Threads with Specific Labels: It retrieves email threads that have the designated labels for processing.
    3. Loop Over Threads: Each thread is processed individually to handle multiple inquiries efficiently.
    4. Get Single Message Content: The last message from each thread is fetched for context.
    5. Ask OpenAI Assistant: The email content is sent to OpenAI Assistant, which generates a reply draft.
    6. Map Fields for Further Processing: Relevant fields like recipient, subject, and response are mapped for email composition.
    7. Convert Response to HTML: The generated Markdown response is converted into HTML format for email compatibility.
    8. Build Email Raw: A raw email message is constructed using the mapped fields and HTML content.
    9. Convert Raw to Base64: The raw email message is encoded into a base64 string for Gmail API compatibility.
    10. Add Email Draft to Thread: The encoded message is added as a draft to the original email thread.
    11. Remove AI Label from Email: The trigger label is removed from the email thread to avoid reprocessing.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying the Schedule: Adjust the time interval in the Schedule Trigger node to fit their needs (e.g., every 5 minutes instead of 1 minute).
    - Changing Labels: Update the labels in the Get Threads with Specific Labels node to target different email threads.
    - Customizing OpenAI Prompts: Edit the prompt sent to OpenAI Assistant to refine the type of responses generated based on specific business requirements.
    - Altering Email Formatting: Adjust the email format in the Build Email Raw node to include additional headers or change the content type as necessary.