Automation and collection
Let agents push analysis reports on a schedule
Set analysis instructions and a frequency, and send reports to Feishu or email on schedule.
Scheduled tasks let an agent run an analysis on a schedule, such as analyzing yesterday's orders every morning, and send the conclusion to a Feishu group or email. Each run leaves a record and a corresponding conversation.
| Need | Use |
|---|---|
| Receive an analysis report at fixed times | Scheduled tasks (this page) |
| Get alerted when a number goes out of range | Metric monitors |
| Let colleagues ask a bot at any time | Feishu bot, Slack |
Project members can manage their own tasks; project owners and administrators can switch to “All project tasks” to manage others' tasks.
Entry: main navigation on the left → “Automation”.
Steps
Prepare a notification method
Notifications are sent through an Action. If you have none, click “Manage Actions” in “Automation” and create a Feishu notification or email Action. Several tasks can share one Action.
Create a task
Click “New scheduled task”, choose an agent you can use, and fill in:
| Field | Description |
|---|---|
| Name | Required, up to 255 characters |
| Description | Optional, up to 1024 characters |
| Instruction | Required; tell the agent what to analyze, such as “Analyze yesterday's orders and output key metrics” |
| Frequency | Every 10 minutes, every 30 minutes, hourly, daily, weekly; applied in your current device time zone |
You can also create one quickly from a conversation, which prefills the current agent and the latest question.
Choose an Action
Choose an Action as the notification method in the task details. New tasks are disabled, and they cannot be enabled without an Action.
Test, then enable
Click “Trigger now” to run once, confirm the conclusion and format in “View history”, then turn on the enable switch. Clicking “Trigger now” on a disabled task asks you to enable it before running.
How to write good instructions
- State the time range and definition: “Calculate sales (amount paid minus refunds) for each store yesterday, by payment date”, not “look at recent sales”.
- State what to compare with: “compare with the same day last week”, and give the data cutoff time.
- Specify the output format: “Summarize in three sentences, then no more than 3 tables”. Feishu cards show at most 3 tables.
- Use skills for fixed methods: write the report structure as a skill attached to the agent, and keep only this run's requirements in the instruction.
Running and management
- Execution identity: tasks run with the owner's current membership, agent access, and data role. Even when an administrator edits or triggers a task, the administrator's permissions are not used.
- Report language and time zone: use the task owner's current preferences.
- Missed periods are not rerun: after enabling or changing frequency, runs start from the next future time.
- Run history: each run is running, succeeded, execution failed, or notification failed; records with conclusions can “View conversation”. Task conversations can be filtered under “Scheduled task” in “All conversations”.
- Copy a task: creates a new task owned by you, disabled by default; check the notification target and data scope before enabling.
- Disable and delete: disabling keeps the task and history. A task must be disabled before deletion, and deletion also removes run records permanently.
- Automatic disable: when the member leaves the project, the agent is deleted, or access is revoked, the task is disabled automatically and history is kept.
- Recipient unsubscribe: emails and Feishu cards end with an “Unsubscribe” entry; unsubscribing disables the task. Unsubscribe links are valid for 90 days.
- Feishu push retries: rate limits, network errors, and server errors are retried up to 4 times; content or signature errors fail immediately.
Common issues
| Symptom | Cause | Action |
|---|---|---|
| Nothing pushed at the scheduled time and no history record | The task is disabled, or the frequency was just changed | Check the enabled state and next trigger time |
| Status is execution failed | Problems with the owner's permissions, agent, data source, or model | Have the owner reproduce it in a conversation with the same agent and question |
| Status is notification failed | Wrong Action address or recipients | Check the configuration in “Manage Actions” |
| Cannot enable | No Action chosen | Choose an Action first |
| The task was disabled automatically | The owner left, the agent was deleted, access was revoked, or a recipient unsubscribed | Copy it as your own task, check it, and enable it |
| Conclusions use different definitions each time | The instruction does not state the time range or calculation | Rewrite the instruction as above |
To manage scheduled tasks with the CLI, see CLI.