⚡ Automated water consumption tracker - stored in sheet and notify in Slack

873 views · ⚡ Personal Productivity

Description

Water Reminder Workflow

This workflow demonstrates how to use n8n and Slack to build an intelligent water drinking reminder system, combined with Google Sheets for data recording and OpenAI for generating personalized reminder messages.


Google Sheet Template

The iOS shortcut template: IMG_5835_5dcead4a70_1_09d5e26b6c 1.jpg

The result in iOS health: IMG_0378_35d2c74ab3 1.png

The template demo in Youtube


Key Features

  1. Scheduled Reminders: Automatically sends water reminders at random times every hour.
  2. Intelligent Scheduling: Delays the next reminder if you’ve recently had water.
  3. AI-Generated Messages: Uses OpenAI to generate friendly and non-repetitive reminder messages.
  4. Data Tracking: Records daily water intake and calculates percentage of goal achievement.
  5. Quick Response: Easily record water intake through Slack buttons.
  6. iOS Integration: Provides iOS shortcut links to sync data with the Health app.

Pre-Configuration Requirements

To use this workflow, you need to set up the following:

  1. Google Sheets:

    • Create a Google spreadsheet with log and setting sheets
    • The log sheet should include date, time, and value columns
    • The setting sheet is used to store daily water intake goals
  2. Slack:

    • Create a Slack app and obtain an API token
    • Configure permissions for interactive buttons
  3. OpenAI:

    • Obtain an OpenAI API key
  4. iOS Shortcut (optional):

    • Create an iOS shortcut named darrell_water for recording health data

Node Configurations

1. Scheduled Triggers and Data Collection

1.1. Schedule Trigger

1.2. Google Sheets - Get Target

1.3. Google Sheets - Get Log

1.4. Summarize

1.5. Limit


2. Intelligent Reminder Logic

2.1. Combine Data

2.2. If

2.3. Wait


3. AI Message Generation and Sending

3.1. OpenAI

3.2. Slack Send Drink Notification


4. User Interaction and Data Recording

4.1. Slack Drink Webhook

4.2. Slack Action Payload

4.3. Slack Action Drink Data

4.4. Google Sheets

4.5. Send to Slack with Confirm


Author Information

This workflow was created by darrell_tw_, an engineer focused on AI and Automation.

Contact:

🔗 Nodes Used

Google Sheets, Slack, Webhook, Schedule Trigger, Summarize, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup