Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 20

Automate with Button Blocks

Recommended resources

Hello! In our last lesson, you mastered Synced Blocks, a fantastic tool for keeping content like navigation bars and footers consistent across your workspace. We ended by previewing how these can be combined with our next topic to create powerful, user-friendly systems.

Today, we dive into that topic: Button Blocks. If Synced Blocks are about maintaining identical content, Buttons are about triggering identical actions. They are your first step into true automation in Notion, allowing you to condense multi-step, repetitive tasks into a single click. For your goal of building professional, sellable templates, buttons are non-negotiable. They transform a static page into a dynamic, interactive system that is far more valuable and easier to use.

This lesson will teach you how to create button blocks to automate the two most common actions: adding new pages to a database and editing the properties of existing ones.


1. What is a Notion Button?

At its core, a button is a block that you configure to perform one or more actions in a specific sequence. You can create a button for almost any repetitive workflow you can imagine.

To create a button, simply type /button and press Enter. This will open the configuration panel where you define the button's steps.

A button's power comes from five core actions that you can mix and match:

  1. Insert blocks: Adds pre-defined content (text, checklists, etc.) to the current page.
  2. Add page to: Creates a new entry in a database.
  3. Edit pages in: Modifies properties of existing entries in a database.
  4. Show confirmation: A pop-up to prevent accidental clicks.
  5. Open page: Opens a specified page.

Let's start with a video that walks through creating a button and demonstrates the first, most basic action: inserting blocks.

Best (& Worst!) Ways to Use Notion Buttons | Notion Button Tutorial

In this first clip from her tutorial 'Best (& Worst!) Ways to Use Notion Buttons', YouTuber Kat Waugh will show you how to create a button and configure a simple action.

Watch from 02:29 to 04:47. Focus on how to add a button to the page, name it, and then add a step. The example here is 'Insert blocks,' which is great for creating a recurring to-do list.



2. Core Actions: Adding and Editing Database Pages

While inserting blocks is useful, the real power for system-building lies in interacting with your databases. This is how you'll create the project managers and content creators you aim to sell.

Action 1: Add a New Page to a Database

Imagine you're on your main dashboard and have a great idea for a blog post. Instead of navigating to your Content Hub, opening the database, and clicking "New," you can use a button to do it all from where you are.

When you configure a button to Add page to a database, you can:

  • Select which database to add the new page to.
  • Pre-fill any property. For a new task, you could set the Status to "To-Do" and Priority to "Medium" automatically.
  • Combine it with the Open page action to immediately open the new page you just created, ready for you to start typing.

This video segment demonstrates this exact workflow.

Best (& Worst!) Ways to Use Notion Buttons | Notion Button Tutorial

Let's continue with Kat Waugh's tutorial. She'll now demonstrate how to create a button that adds a page to a database and then immediately opens it.

Watch the following clips: 04:47 - 05:45: See how to configure the 'Add page to' action, including pre-filling properties. 06:20 - 06:57: Learn about the 'Open page' action and how it can be used to open the page you just created. 10:59 - 11:33: Watch a practical example combining these steps to create and open a new journal entry.

Action 2: Edit Existing Pages in a Database

This action allows you to perform bulk updates. For example, you could create a "Weekly Reset" button that finds all tasks with a status of "Done" and archives them.

The key to this action is the filter. You define which pages the button should edit by setting up filter rules, just like you would in a database view.

Configuring a Notion Button to Edit Filtered Database Pages
In this image, a button is being configured to edit pages in a 'Tasks' database. The filter ensures that the button will only affect pages where the 'Department' property is set to 'HR'.

Once you've filtered for the right pages, you can change any of their properties. For instance, you could create a button to:

  • Find all tasks where the Due Date is before today and change their Priority to "High".
  • Assign all unassigned tasks in the "Bugs" project to yourself.
  • Move all tasks from "In Progress" to "In Review."
Test your understanding!

You want to create a button that adds a new "High Priority" task to your Tasks database and immediately lets you edit it. Which actions do you need, and in what order?

Show answer

You need two actions in this order:

  1. Add page to: Select your Tasks database. In the properties section, set the Priority property to "High".
  2. Open page: In the configuration for this step, choose the option New page added in Step 1.


3. Advanced Use Case: Default Tasks for Projects

Here's where buttons become a game-changer for your goal of selling templates. A common frustration in Notion is that when you create a new project, you have to manually create all the standard tasks that go with it.

With a button, you can solve this. By placing a button inside your project database template, you can create a "Generate Default Tasks" button. When a user clicks it, it will automatically create all the standard tasks and—crucially—link them to that specific project.

This is achieved using a dynamic variable called "This Page" when setting the relation property in the button's configuration.

Notion Buttons: The Ultimate Guide

The article 'Notion Buttons: The Ultimate Guide' by Matthias Frank explains this powerful technique perfectly. This is one of the most valuable features you can build into a project management template.

Read the section titled 'Use Notion Buttons for Default Tasks in Projects'. Focus on how the button is placed inside a database template and how the 'This Page' variable is used in the relation property to link the new tasks back to the project they were created from.



4. Best Practice: Add a Confirmation Step

With great power comes great responsibility. An Edit pages button with a poorly configured filter can accidentally change your entire database. To prevent this, you can add a confirmation step.

This adds a pop-up that asks "Are you sure?" before running the other actions.

Crucial Tip: Always make the Show confirmation step the very first step in your button's sequence. If you put it last, the button will perform all its actions before asking for confirmation, defeating the purpose.

Best (& Worst!) Ways to Use Notion Buttons | Notion Button Tutorial

Let's watch one final clip from Kat Waugh that explains this critical safeguard.

Watch from 06:57 to 08:16. Pay close attention to why the confirmation step must be placed at the top of the action list.



✍️ Exercise: Build Your First Automations

Let's apply what you've learned to the Project & Task Management system you started building in earlier modules.

  • Create a "Quick Capture Task" Button:

    • On your main dashboard (not inside a database), create a new button.
    • Name it "➕ New Task".
    • Add the first step: Add page to your Tasks database.
    • In the properties, set the Status to "To-Do".
    • Add a second step: Open page. Configure it to open the New page added in Step 1 in a Side peek view.
    • Click Done and test your button!
  • Create a "Prioritize Overdue" Button:

    • On the same dashboard, create a new button.
    • Name it "⚠️ Prioritize Overdue".
    • Add the first step: Show confirmation. You can customize the text to something like, "This will set all overdue tasks to High priority. Continue?"
    • Add a second step: Edit pages in your Tasks database.
    • Configure the filter: Due date is Before Today, AND Status is Not Done.
    • Set the property to edit: Change the Priority property to High.
    • Click Done and test it on a sample task you've marked with a past due date.


Conclusion

You've just learned one of the most powerful features for creating dynamic, user-friendly Notion systems. Buttons bridge the gap between a static document and an interactive application, which is exactly what makes a template valuable and sellable.

Key Takeaways:

  • Buttons automate workflows by executing a sequence of actions with a single click.
  • The most powerful actions are Add page to and Edit pages in a database.
  • Combining a button with a database template (using the "This Page" variable) is a killer feature for project management systems.
  • Always use the Show confirmation step for potentially destructive actions like bulk-editing.

Preview of the Next Lesson:
You now know how to automate tasks with a manual click of a button. But what if you wanted an action to happen automatically, without any click at all? In our next lesson, we will explore Database Automations, which trigger actions based on property changes—like automatically setting the "Completion Date" when you change a task's status to "Done".