Automate water tracking using n8n. This n8n workflow template uses a scheduled n8n trigger, Google Sheets, OpenAI for personalized reminders, and interactive Slack buttons to manage hydration goals.
Download this n8n workflow template and start using it instantly.
Individuals aiming to improve daily hydration consistency.
Teams looking for innovative n8n templates for health and wellness tracking.
Users who need an automated system to link Slack interactions to structured data storage (Google Sheets).
Automation specialists seeking complex examples of n8n workflows combining AI, scheduling, and custom webhook logic.
Maintaining consistent hydration can be challenging. This comprehensive n8n workflow solves this by providing a highly personalized and interactive tracking system. Instead of generic alerts, the system uses an n8n node integrating OpenAI to craft empathetic, health-focused reminders based on your last logged water intake and daily progress, ensuring maximum motivation. The n8n workflow leverages a scheduled n8n trigger to check intake periodically. When a reminder is sent to Slack, the user can log their intake directly via interactive buttons. This action triggers a dedicated n8n webhook, which instantly records the data in Google Sheets and provides a special link back to an iOS Shortcut to log the data into the user's Health app. This sophisticated n8n template demonstrates how n8n can bridge communication platforms (Slack), data storage (Google Sheets), and advanced logic (OpenAI, scheduling) seamlessly.
This n8n workflow operates via two main parallel paths:
The automation begins with the Schedule Trigger n8n node, which activates multiple times per hour between 8 AM and 11 PM.
target from the 'setting' Google Sheet and retrieves all current day's water log entries from the main log sheet using the Google Sheets - Get Today Water Log n8n node.Limit n8n node isolates the timestamp of the last drink, while the Summarize n8n node calculates the total consumed volume. This data is merged into a single item using the combine data n8n node.Edit Fields-Set progress n8n node calculates the progress percentage and generates a visual progress bar using emojis, providing context for the reminder.If n8n node checks if the user drank water within the last 30 minutes. If they did, the workflow is routed to the Wait n8n node, introducing a random delay (21-31 minutes) to avoid immediate nagging. OpenAI n8n node, where the consumption data (last drink time, count, current time) is fed into a prompt. A custom 'Chinese medicine practitioner' persona generates a persuasive, brief, and health-focused reminder message in JSON format.Slack send drink notification n8n node sends the AI-generated message and the interactive '100ml', '150ml', etc., action buttons to the target Slack channel, completing the scheduled n8n workflow loop.This path is initiated when a user clicks one of the action buttons in the Slack message, utilizing the slack drink webhook n8n trigger.
slackactionpayload n8n node extracts the necessary action data, including the water value and the original message timestamp (messagets).slackactiondrinkdata n8n node structures the data, specifically constructing a complex, URL-encoded string containing the logged value and timestamp, designed to be passed to an external iOS Shortcut application.Google Sheets - log water value to sheet n8n node records the current date, time, and logged value to the main log sheet.Send to Slack with confirm n8n node responds to the original thread, confirming the log and providing the crucial 'iOS Health' button containing the Shortcut URL, completing the action within this n8n workflow.To deploy this powerful n8n workflow, follow these steps:
OpenAI n8n node. Ensure the selected model (e.g., GPT-4o-mini) is available.slack drink webhook n8n trigger. You must configure Slack's interactive components settings to point to this specific n8n webhook URL. This is crucial for the logging path of the n8n workflow to function. Schedule Trigger: This core n8n trigger initiates the reminder part of the n8n workflow at randomized intervals between 8 AM and 11 PM to prevent repetitive timing.
slack drink webhook (n8n trigger): This dedicated n8n webhook trigger listens for interactive events (button clicks) originating from the Slack notifications.
Google Sheets (Get Target & Log Water): These n8n nodes handle all persistence. One node retrieves the daily goal, another filters to get today's log entries, and the logging n8n node appends new data when the user interacts via Slack.
Summarize: A critical n8n node that aggregates the 'value' column from the log entries to calculate the total water consumed today.
If: This n8n node implements flow control logic, diverting the n8n workflow path to a Wait n8n node if a recent drink was logged (within 30 minutes).
OpenAI: Uses the gpt-4o-mini model with custom prompt engineering to generate personalized, empathetic hydration reminder messages, improving user engagement with the n8n workflow.
Slack send drink notification: This n8n node sends the AI message and the interactive buttons to the user. It utilizes Slack Block Kit functionality for rich formatting.
slackactiondrink_data (Set n8n node): Manages data transformation for the logging path, specifically creating the complex URL-encoded string required to trigger an external iOS Shortcut with dynamic data, which is essential for this complete n8n workflow.
Use this powerful n8n workflow to automate proactive voice appointment reminders. It integrates Google Calendar, GPT-4o for scripting, ElevenLabs for audio generation, and Gmail for delivery. Get the best n8n templates for advanced automation.

Automate scheduling using an AI voice agent (Vapi) and Google Calendar. This sophisticated n8n workflow uses custom logic to check real-time availability, apply buffers, and confirm bookings.

Automate viral content creation using this advanced n8n workflow. Scrape top LinkedIn posts, repurpose them with AI Agents, generate images, and auto-publish to X/Twitter, saving hours in content production.

Use this robust n8n workflow template to automate Wazuh custom rule deployment via GitHub push events. Features XML validation, SSH file transfer, and Telegram alerts using the powerful n8n node ecosystem.

Use this powerful n8n workflow to reliably scrape current weather data using Bright Data, extract key metrics (like temperature), and automatically log the results into a Google Sheet for historical analysis. Explore more n8n templates.

Use this comprehensive n8n workflow to automatically fetch 5-day weather forecasts from OpenWeatherMap and deliver formatted, detailed daily reports directly to Telegram. Leverage custom JavaScript logic within an n8n node for perfect formatting.

Martech Engineer with automation. here is my website: https://www.darrelltw.com/







































