MohziDocsGuideOpen Mohzi
All pages

Scheduled tasks

Reminders, watches and tasks a bot runs on its own, on a schedule.

Ask a bot in plain words: "Every weekday at 8:30, summarize yesterday's orders and send it to me." The bot sets the task up and tells you when it will first run. In the Scheduled tasks tab of the bot's details you can run a task now, pause or resume it, and delete it. To change a task, ask the bot.

Kinds of task

KindWhat it doesModel used?
ReminderPosts a fixed message at a time.No
WatchChecks a public web page on a schedule and tells you once some text appears on it, or disappears. Organizations with their own database apps can also watch query results for new rows.No
TaskThe bot does the work in the background — searches, queries, reads files, makes a report — and posts the result.Yes
Follow-upChecks on something you're waiting for (a reply, a delivery, a deadline), says nothing until there's news, says it once, then ends.Yes

Tasks can also start when something happens instead of at a time: when new mail arrives, or when another system calls the task's address. See Triggers.

Schedules

The shortest interval is 5 minutes for a reminder or a web page, and 30 minutes for a task. A web page you ask to watch without a schedule is checked every 10 minutes for a week. Times are in the time zone you set the task in, shown with that zone's name.

Where results go

Results are posted in the bot's conversation. They're also sent to the chat apps you've connected — DingTalk, WeChat, WeCom, Feishu — unless you tell the bot to send a task's results to some of them only.

A task's result can carry one suggested next step as a button under it ("Send to the group chat", "Make it an Excel file"). Pressing it is the same as saying it to the bot.

What a background task may do

A task runs without you watching, so it can't stop to ask you anything.

When the computer is off

If a task needs your computer and the computer isn't connected when it runs, nothing is posted. The task runs again once the computer is back, within 12 hours, and says it's the run that was missed. This only happens when the run had only read things; a run that had already changed something posts what it got to, so nothing is done twice.

When a run fails

A failed run is posted with the reason. For a task that runs every few minutes, you're told on the first failure, not every time. A watch tells you after three failures in a row and carries on when it can.

Limits

Up to 20 active or paused tasks per account.