Set Automate

用于Set Automate,通过自动化工作流程定期提醒用户喝水,结合LangChain生成友好的健康建议,并记录饮水数据到Google Sheets,确保用户保持良好的水分摄入,提升健康意识。

7/8/2025
21 nodes
Complex
webhookcomplexlangchainschedule triggergooglesheetssummarizewaitsticky noteslackautomationadvancedcronlogicconditionalintegrationapicommunicationnotification
Categories:
Communication & MessagingComplex WorkflowData Processing & AnalysisWebhook Triggered
Integrations:
LangChainSchedule TriggerGoogleSheetsSummarizeWaitSticky NoteSlack

Target Audience

This workflow is designed for individuals and organizations looking to improve hydration habits and health awareness. It is particularly beneficial for:
- Health Enthusiasts: Individuals who prioritize wellness and want to stay hydrated throughout the day.
- Corporate Wellness Programs: Companies aiming to promote healthy habits among employees.
- Fitness Trainers: Professionals who want to encourage their clients to maintain adequate hydration during workouts.
- Busy Professionals: People with hectic schedules who may forget to drink water regularly.

Problem Solved

This workflow addresses the common issue of dehydration by providing timely reminders to drink water. It automates the process of logging water intake and encourages users to maintain their hydration goals, thus improving overall health and well-being. The integration with Slack allows for instant notifications, making it easier to stay on track.

Workflow Steps

  • Schedule Trigger: The workflow starts with a scheduled trigger that activates at random times between 8 AM and 11 PM daily, ensuring reminders are not predictable.
    2. Google Sheets Integration: It retrieves target hydration goals and today's water log from Google Sheets. This data is crucial for determining how much water the user needs to drink.
    3. Data Combination: The workflow combines recent drinking data and hydration goals to calculate progress.
    4. Condition Check: It checks if the user has logged water intake within the last 30 minutes. If they have, it waits for a random time between 21 to 31 minutes before sending another reminder.
    5. OpenAI Interaction: If the user hasn't logged water recently, it generates a personalized reminder using OpenAI, emphasizing the importance of drinking water and its benefits, such as replenishing qi and avoiding blood stasis.
    6. Slack Notification: The reminder is sent to the user via Slack, including interactive buttons for logging different amounts of water (e.g., 100ml, 150ml, 200ml, 250ml, 300ml).
    7. Logging Water Intake: When the user clicks a button, the workflow logs the water intake to Google Sheets and sends a confirmation message back to Slack, including a shortcut link to log the water intake in iOS Health.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying the Schedule: Adjust the cron expression in the Schedule Trigger to change when reminders are sent.
    - Updating Google Sheets: Change the linked Google Sheets document or sheet names to fit their data structure.
    - Personalizing Messages: Modify the OpenAI message templates to reflect their unique tone and health advice.
    - Changing Hydration Goals: Update the target hydration values in Google Sheets to align with individual or organizational health goals.
    - Integrating with Other Platforms: Expand the workflow by integrating with additional platforms like email or SMS for reminders.