学生和教师的自动化作业提醒与截止日期跟踪器
这是一个Personal Productivity领域的自动化工作流,包含 7 个节点。主要使用 If, Notion, EmailSend, ItemLists, ScheduleTrigger 等节点。 使用Notion和邮箱为师生提供作业截止日期提醒
- •Notion API Key
分类
{
"id": "JQJJ4grDpEMqRBfa",
"meta": {
"instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
"templateCredsSetupCompleted": true
},
"name": "学生和教师的自动化作业提醒与截止日期跟踪器",
"tags": [],
"nodes": [
{
"id": "81408bba-7960-4776-ad5b-8cab6a1be7f4",
"name": "Notion - 获取作业",
"type": "n8n-nodes-base.notion",
"notes": "Queries the Notion database for assignments with due dates within the next 3 days. Replace 'your_notion_database_id' with your actual Notion database ID. Ensure 'Due Date' is a valid date property.",
"position": [
120,
140
],
"parameters": {
"resource": "database",
"databaseId": {
"__rl": true,
"mode": "id",
"value": "=asdcvbhuy7654344444bhju765"
}
},
"credentials": {
"notionApi": {
"id": "cBfYIcYXfHyfHlZ7",
"name": "Notion account - test"
}
},
"typeVersion": 1
},
{
"id": "509165a7-1401-4420-a81a-cf296c1fa312",
"name": "如果存在作业",
"type": "n8n-nodes-base.if",
"notes": "This IF node checks if there are any assignments returned from the Notion query. Proceeds to send reminders if assignments exist, otherwise stops the workflow.",
"position": [
340,
140
],
"parameters": {
"conditions": {
"string": [
{
"value1": "{{$node['Notion - Get Assignments'].json['results'].length}}",
"value2": "0",
"operation": "larger"
}
]
}
},
"typeVersion": 1
},
{
"id": "ddb1e8bd-ca1f-46c2-9322-42f0bf229b2c",
"name": "发送邮件提醒",
"type": "n8n-nodes-base.emailSend",
"notes": "Sends an email reminder for each assignment. Uses fallback values if properties are missing. Update 'your_email@example.com' with your email and configure SMTP credentials. Ensure 'Email', 'Assignment Name', and 'Due Date' match your Notion database schema.",
"position": [
780,
140
],
"parameters": {
"text": "Dear Student/Teacher,\n\nThis is a reminder for the assignment '{{$json['properties']['Assignment Name']['title'][0]['plain_text'] || 'Unnamed Assignment'}}' due on {{$json['properties']['Due Date']['date']['start'] || 'No Date Set'}}. Please ensure it is completed on time.\n\nBest regards,\nYour School Automation System",
"options": {},
"subject": "Assignment Reminder: {{$json['properties']['Assignment Name']['title'][0]['plain_text'] || 'Unnamed Assignment'}}",
"toEmail": "{{$json['properties']['Email']['rich_text'][0]['plain_text'] || 'default_email@example.com'}}",
"fromEmail": "your_email@example.com"
},
"credentials": {
"smtp": {
"id": "G1kyF8cSWTZ4vouN",
"name": "SMTP -test"
}
},
"typeVersion": 1
},
{
"id": "c189406c-ddf0-4e6f-a97b-39b8c669ecd7",
"name": "无作业",
"type": "n8n-nodes-base.noOp",
"notes": "This node is a placeholder for when no assignments are due within the next 3 days. The workflow stops here if no assignments are found.",
"position": [
560,
340
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d2f78ed0-606f-4d51-8644-c7f8bbe49f25",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-680,
-240
],
"parameters": {
"color": 3,
"width": 760,
"height": 280,
"content": "## 系统架构"
},
"typeVersion": 1
},
{
"id": "aff6db0a-985f-450b-9ff8-016bda6dcb6f",
"name": "拆分输出项目 项目列表",
"type": "n8n-nodes-base.itemLists",
"notes": "Expands the list of assignments into individual items to process each one separately for sending reminders.",
"position": [
560,
140
],
"parameters": {
"options": {},
"fieldToSplitOut": "Name"
},
"typeVersion": 1
},
{
"id": "488f6c7c-33f5-4b4e-95b3-63d054a83d21",
"name": "设置触发器计划",
"type": "n8n-nodes-base.scheduleTrigger",
"notes": "This node triggers the workflow every weekday at 9 AM to check for upcoming assignment deadlines.",
"position": [
-100,
140
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "467e7d8b-b7ee-4662-a449-c7a8516f11e9",
"connections": {
"IF Assignments Exist": {
"main": [
[
{
"node": "SplitOutItems itemList",
"type": "main",
"index": 0
}
],
[
{
"node": "No Assignments",
"type": "main",
"index": 0
}
]
]
},
"SplitOutItems itemList": {
"main": [
[
{
"node": "Send Email Reminder",
"type": "main",
"index": 0
}
]
]
},
"Notion - Get Assignments": {
"main": [
[
{
"node": "IF Assignments Exist",
"type": "main",
"index": 0
}
]
]
},
"Set Schedule For Trigger": {
"main": [
[
{
"node": "Notion - Get Assignments",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 个人效率
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Oneclick AI Squad
@oneclick-aiThe AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.
分享此工作流