LogoFLO.W
  • Pricing
  • Blog
  • Docs
  • Thinking
  • About
Get Started
  • The Old Method and Its Problems
  • Demo
  • Implementation
  • Define Variables
  • Create Check-in Sub-item
  • Edit the Parent Item
  • Spaced Repetition Template
Notion 技巧·
2024/12/14

Notion Automation Tips: Build Auto Spaced Repetition Tasks with Function Variables

Use Notion Automation and Button function variables to build automatic spaced repetition check-in tasks — no repeated page creation needed, with customizable interval days and check-in record tracking.

avatar for 二一
二一
Notion Automation Tips: Build Auto Spaced Repetition Tasks with Function Variables

The Old Method and Its Problems

Previously, if you wanted to build spaced repetition tasks in a Notion database, the best approach was to use the database's "Recurring Template" to periodically generate tasks:

Recurring template generating tasks

However, this approach had two problems:

  1. Even if the previous task wasn't completed, the next task would still be automatically generated
  2. Periodically generated tasks would clutter the database

But now that Notion's Automation and Buttons support function variables, we can finally build more efficient and smarter spaced repetition tasks.

Demo

  1. Customizable "interval days"

After clicking the "Check-in" button, the "Next check-in date" will be updated to the date after the specified interval days. For example, in the image below, the initial check-in dates are all December 14, with interval days of 1, 2, and 3 respectively. After clicking "Check-in", they become the 15th, 16th, and 17th:

Custom interval days demo

  1. After checking in, a check-in sub-item is automatically created

Auto-generated check-in sub-item

  1. You can track the total number of check-ins

Check-in count statistics

In the "Gallery" view, it looks more like check-in cards

Gallery view check-in cards

  1. Shows the next check-in date

Next check-in date display

Most importantly, since we directly modify the date of this check-in task, no extra check-in tasks are generated, preventing the calendar view from becoming bloated and messy.

  1. A separate calendar view displays all generated check-in sub-items, making it easy to review what you checked in on each date

All check-in records calendar view

Implementation

All the above actions are encapsulated in a single button. Let's break down this button step by step.

Define Variables

Variable 1

Since we need to generate a check-in record as a sub-item of the current check-in task, and we want the sub-item's title to match the parent item, I defined a variable that assigns the parent item's name to it.

Variable 1: Parent item name

Variable 2

Since we want to add the interval days to the "Next check-in date" after each check-in, we need to define another variable with the following value:

Variable 2: Next check-in date calculation

This involves two functions:

  • dateAdd
  • toNumber

Variable 3

Since we want the total check-in count to increase by 1 each time the "Check-in" button is clicked, the simplest approach is to define an "add one on completion" variable as shown below:

Variable 3: Completion count plus one

Create Check-in Sub-item

  1. Since we want the check-in sub-item's title to match the parent item, we need to set the sub-item's title to Variable 1.

  2. Since we want the sub-item to be placed under the parent item, we need to set the sub-item's Relation to the current page (i.e., the parent item page that triggered the action).

  3. Set the sub-item's check-in date to the action's trigger date.

Check-in sub-item configuration

Edit the Parent Item

  1. Set the next check-in date to Variable 2

  2. Set the completion count to Variable 3

Parent item edit configuration

With this setup, you can achieve the spaced repetition check-in effect described at the beginning of this article.

Spaced Repetition Template

  • Template link: Click here

📘 FLO.W — Notion Personal Management System

FLO.W is a Notion-based personal management template that integrates tasks, notes, projects, habits, and more, complete with comprehensive tutorials.

Ready-to-use Notion template system
Complete tutorials included, beginner-friendly
Continuously updated and maintained
Learn About FLO.W Template✨ 1237+ users chose FLO.W
2024/12/14
Share this post
All Posts

More Posts

Write WordPress Blog Posts with Notion
#Notion 技巧

Write WordPress Blog Posts with Notion

Use the WP Sync for Notion plugin to publish Notion content to your WordPress blog. A step-by-step guide with screenshots to help you configure the API and plugin.

2024/07/07
Notion Chinese Version Preview: Full UI Localization and AI Upgrade
#Notion 技巧

Notion Chinese Version Preview: Full UI Localization and AI Upgrade

A sneak peek at the Notion Chinese version Android beta, covering block localization, Database field translations, Formula Chinese descriptions, Notion AI localization, and how to join the Android Beta.

2024/08/12
Notion AI to the Rescue: Effortlessly Classify Thousands of Data Rows
#Notion 技巧

Notion AI to the Rescue: Effortlessly Classify Thousands of Data Rows

Use Notion AI's auto-fill feature to classify thousands of food entries in one click — no coding required, simple to use, and highly accurate.

2025/01/09

Newsletter

Join the community

Subscribe to our newsletter for the latest news and updates

LogoFLO.W
TwitterX (Twitter)YouTubeYouTubeBilibiliXiaoHongShuEmail
Product
  • Features
  • Pricing
  • FAQ
Resources
  • Blog
  • Documentation
  • Notion Custom Agent
Company
  • About
  • Contact
Legal
  • Cookie Policy
  • Privacy Policy
  • Terms of Service

Subscribe for more Notion tips and updates

© 2026 FLO.W, All rights reservedNotion is a trademark of Notion Labs, Inc. This is an independent third-party site, not affiliated with or endorsed by Notion.
Featured on Uneed