按钮
在 Notion 中,你可以轻松自动化简单且重复的任务以节省时间 🍣
跳转到常见问题你的许多工作流程可能包含一些小的、重复的任务,例如制作会议议程或更改任务状态。只需点击一下按钮,你就可以自动化这些任务并节省时间。
按钮适用于所有方案,但某些按钮操作仅适用于付费方案。你可以在下方 →了解更多信息。
如果某人在页面中拥有
全部权限或允许编辑权限,他们就可以在该页面中创建、编辑和点击按钮。
要创建按钮:
在页面中输入
/,然后找到并选择按钮。为按钮命名并添加表情符号。
选择
新建操作并选择一个操作。在下方 →了解更多关于按钮操作的信息。如果需要,可以添加更多操作,然后选择
完成。
Try using buttons to instantly notify people. Find out how in this guide →
Note: If you’d like your automation to add or edit pages and databases, make sure that you have permission to edit those pages and databases. Additionally, make sure edited pages are available are not Private or Shared. Otherwise, your automation won’t work.
插入块会将你选择的块(如文本、项目符号、折叠列表等)添加到页面中。你可以选择将这些块添加到按钮上方、按钮下方、页面顶部或页面底部。添加页面到将页面添加到你选择的数据库中,并编辑该页面的属性。编辑页面在将编辑你选择的数据库中的页面及其属性。发送通知给将向你在 Notion 工作空间中的特定人员发送通知。收件人最多可包含工作空间中的 20 人,或与你数据库中特定人员属性关联的人员。添加你希望随通知发送的消息。发送邮件给将从你的 Gmail 帐户向一个或多个收件人发送电子邮件。此操作仅适用于付费方案用户。在下方了解更多相关信息。发送 Webhook将向特定 URL 发送 HTTP POST 请求。此操作仅适用于付费方案用户。在此处 →了解更多信息。显示确认将在有人点击按钮时打开一个小确认屏幕。例如,你可以使用它在按钮更改页面或数据库之前显示警告。打开页面或 URL将打开选定的页面或链接。如果你选择将按钮设置为打开 Notion 页面,这可以是现有页面,也可以是在按钮内创建的页面。发送 Slack 通知到将向你指定的 Slack 频道发送自定义通知。此功能仅在 Plus、Business 和 Enterprise 方案中可用。了解更多请点击 这里 →。定义变量将允许你使用提及和公式创建自定义变量,然后你可以在其他按钮操作中使用该变量。在下方了解更多相关信息。
发送(电子)邮件到
Note:
You need a Gmail account to use this automation.
Once someone has linked their Gmail account to a button, only they will be able to edit the button. Others will only be able to click the button.
Emails sent using this automation may take up to two minutes to arrive in your recipient’s inbox.
Be mindful of Gmail’s limits for how many recipients a message can have, or how many emails you can send in a day.
当触发器发生时,这将从你的 Gmail 帐户 向一个或多个电子邮件地址发送电子邮件。要设置你的按钮以通过 Gmail 发送电子邮件:
在你的按钮设置中,选择
添加操作。如果你没有将 Gmail 帐号关联到你的 Notion 帐号,系统会提示你进行关联。如果你的 Notion 帐号已关联一个 Gmail 帐号,你会在
发送邮件自旁看到你的邮件地址。如果你想为此自动化使用另一个 Gmail 帐号,请点击你的邮件地址 →添加 Gmail 帐号。否则,系统会提示你关联一个新帐号。你可以设置电子邮件的各个部分:
To:这可以是一个人员属性(例如 Whoever clicked 或 Page creator)、你在 Notion 工作空间中的某个人,或一个特定的(电子)邮件地址。该邮件地址可以是外部地址——不必属于工作空间或组织内的人员。在
To字段旁边选择CC/BCC,以选择性地抄送或密送其他人。
Subject:输入邮件的主题。如果你希望主题提及某个人、特定的 Notion 页面或日期,请在
Subject字段中选择@。如果你想使用按钮的属性(例如点击者、触发按钮操作的日期等)为主题创建函数,请在Subject字段中选择∑。Message:输入邮件的消息内容。如果你希望消息提及某个人、特定的 Notion 页面或日期,请在
Message字段中选择@。如果你想使用按钮的属性(例如点击者、触发按钮操作的日期等)为消息创建函数,请在Message字段中选择∑。Send with display name:当收件人收到邮件时,此可选显示名称将出现在你的邮件旁边。如果你希望显示名称提及某个人、特定的 Notion 页面或日期,请在显示名称字段中选择@。如果你想使用按钮的属性(例如点击者、触发按钮操作的日期等)为显示名称创建函数,请在显示名称字段中选择∑。
Send replies to:如果你希望邮件回复发送到发送邮件时使用的地址以外的其他地址,你可以使用这个可选设置,将回复发送到点击你按钮的人,或你在 Notion 工作空间中的某个人。
点击
Done。
定义变量
这将允许你使用提及和函数创建自定义变量。然后,你可以在其他按钮操作中使用该变量。要定义变量:
在你的按钮设置中,选择
添加操作。添加一个步骤并选择
定义变量。点击
Variable 1为变量命名、编辑函数或创建副本。你也可以选择Add variable。在变量字段中选择
@或∑来定义你的变量。你可以在其他按钮操作中使用这些变量。
Note:
At this time, mentions and formulas can only be used in button actions, not triggers.
Formulas can’t be used in the following button actions:
Inserting blocks.
Opening a page or URL.
Sending Slack notifications.
你可以在按钮操作中使用提及和函数,来让自动化更好地为你服务。例如:
你可能希望在按钮于特定数据库中创建的新页面的名称中提及日期。
你可能希望设置一个按钮,向某人发送提及 Notion 工作空间中特定页面的通知。
要在按钮操作中包含提及或函数:
将鼠标悬停在你的按钮上并点击
⚙️。找到一个现有操作或选择
添加另一步骤。在设置按钮操作时,如果你想包含日期、人员、页面或群组,请在字段中选择
@。如果你想创建函数,请在字段中选择∑。选择
完成。
Notion AI can help create and edit formulas, as well as answer questions about formulas. Learn more here →
为确保你的自动化正常运行,我们会帮助你找出问题所在。
如果你的自动化在 设置过程中遇到任何错误:
在构建或编辑自动化时,你会看到有关错误位置和具体内容的信息。
在进行必要更正之前,你将无法保存该自动化。
如果你的自动化之前运行正常但现在遇到错误,可能是因为:
如果你的自动化正在添加或编辑的数据库丢失了。
你的自动化正在编辑的数据库属性缺失了。
第三方连接(如 Gmail 或 Slack)已失效或需要验证。
你可以前往损坏的自动化进行修复,让它重新可用。
要编辑你的按钮:
将鼠标悬停在你的按钮上并点击
⚙️。编辑你的按钮样式、名称和操作。
要删除你的按钮:
将鼠标悬停在你的按钮上,然后点击左侧边距中的
⋮⋮。点击
删除以彻底移除你的按钮。
常见问题
Can I use an @-tag such as @today inside a template button?
Can I use an @-tag such as @today inside a template button?
test
What permission level do I need to interact with a button?
What permission level do I need to interact with a button?
A user must have Full access or Can edit permissions to interact with a button on a page.
If the button is interacting with or making changes to another page or database, additional permissions will be required:
If the button is adding a page to or editing a page in a database, the person who clicks the button must be an editor of the target database.
If the button is opening a page, the person who clicks the button must have access to view the page.
Why is my button not naming a created page properly?
Why is my button not naming a created page properly?
One reason this might happen is if you're using a template within a button to create a page. The values from the template overwrite the values from the button.
