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
| Kind | What it does | Model used? |
|---|---|---|
| Reminder | Posts a fixed message at a time. | No |
| Watch | Checks 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 |
| Task | The bot does the work in the background — searches, queries, reads files, makes a report — and posts the result. | Yes |
| Follow-up | Checks 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
- Once: at a date and time, or in some minutes from now.
- Daily: at a time, optionally on chosen weekdays, from and until a date.
- Every N minutes: optionally within hours of the day and on chosen weekdays.
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.
- It can use the apps that read: search, mail, databases, the knowledge base, files on your computer.
- Actions that need your approval are refused, unless you've already allowed them with Always allow or Full access. See Approvals and permissions.
- It can make files (Excel, Word, PDF), and in an organization, send its results to colleagues when the task says so.
- It can't send email.
- A task runs for up to 3 minutes. A task with many steps plans its work and can run for up to two hours. See Long tasks.
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.