Office tasks
Send reminders for contracts expiring within 30 days with Duaer
In Duaer, read the contract register daily, find contracts expiring within 30 days, and email each owner a reminder.
Build the reminder in Duaer
- Add Schedule Trigger: Trigger Interval Days, Trigger at Hour 9am.
- Add Google Sheets with Get Row(s) on the contract register. It needs Contract, Customer, Expires, and Owner email columns, with dates like 2026-12-31.
- Add Filter with both conditions: {{ $json.Expires }} date is after {{ $now.startOf("day").toISO() }}, and {{ $json.Expires }} date is before {{ $now.plus({ days: 30 }).toISO() }}.
- Add Send Email: To Email {{ $json["Owner email"] }}, Subject Contract expiring: {{ $json.Contract }}, Text The contract with {{ $json.Customer }} expires on {{ $json.Expires }}. Please arrange renewal. One email per contract.
- Publish the digital organization.
Stop daily repeats
- Remind only at 30, 7, and 1 days: use one boolean Filter condition, {{ [30, 7, 1].includes(Math.round(DateTime.fromISO($json.Expires).diff($now.startOf("day"), "days").days)) }} is true.
- Log it: after Send Email, add Google Sheets Update Row to write a Reminded on date, and exclude rows reminded today in Filter.
- For dates like 12/31/2026, use DateTime.fromFormat($json.Expires, "M/d/yyyy"). Refer to Work with dates using Luxon in Duaer.
Questions
Can the Duaer contract register be an Excel file?
Yes. Replace Google Sheets in the Duaer flow with a file read plus Extract from File. Filter and email stay the same.
Can Duaer post the reminder to a chat group instead of email?
Yes. Swap Duaer Send Email for the WeCom node, or HTTP Request to a Feishu or DingTalk robot.
In this section
Run a Duaer digital organization on a schedule
In Duaer, Schedule Trigger starts a digital organization on the interval you set. It keeps that clock only after you publish. Execute on the canvas runs once now and does not wait for the clock.
NodesFilter items in Duaer
In Duaer, Filter has two outputs: Kept and Discarded. Set Conditions for the rule. Ignore Case under Options is on by default.
NodesSend mail with Send Email in Duaer
In Duaer, the node is named Send Email. Operation defaults to Send. Set From Email, To Email, and Subject. On the current version Email Format defaults to HTML.
DatesWork with dates using Luxon in Duaer
Dates in a Duaer expression are Luxon DateTime values. $now and $today already are. The Code node uses native Luxon—format() and plus(amount, unit) do not carry over unchanged.