As the core module of agents' automation capabilities, Scheduled Task can be used to add periodically-triggered backend tasks to configured agents. This can allow agents to automatically execute operations (such as data summarization, report generation, and anomaly alert) without requiring users to actively ask questions, and push results to target users through multiple channels, upgrading business analysis from passive Q&A to proactive services.
Daily data is regularly collected and organized, and pushed to targeted business and management personnel.
Periodic statistical reports, such as daily/weekly/monthly/annual reports, are automatically generated.
Data anomalies (if any) are monitored in real time, and quickly trigger anomaly alerts and message pushes.
Taking the scheduled push of sales risk alert in sales scenarios as an example, the following figure shows the effect.
Scheduled tasks can be configured through the following two entries:
Enter Admin Console, go to the agent configuration page, and click the + button in the Scheduled Task module to enter the creation process.
When using an agent on the frontend, click Scheduled Task in the left navigation bar to enter the scheduled task management page for the current agent.
There are two methods to create a scheduled task: creation from blanks or creation by a recommended template.
Creation from blanks is suitable for scenarios with clear custom requirements, which requires all configuration items to be set manually. In the Add Scheduled Task dialog box, click Start from Blank to enter the task configuration page.
Currently, the following two scenario templates are provided. The templates already contain structured task prompts and default execution frequencies. Users only need to modify the appropriate template content and supplement the target users and pushing channels to complete the creation.
Weekly Operation Report
Data Alert
The following table lists task configuration items.
Configuration Item
Mandatory or Not
Description
Task Name
Mandatory
Identifier name of the task. You are advised to use a name that clearly expresses the purpose of the task, for example, Daily Store Sales Analysis Report.
Task Prompt
Complete instructions received by the agent during task execution, which determine the agent's behavior and output content. For details, see section "Prompt Writing Guide for Scheduled Tasks" below.
Scheduled Execution Frequency
Time cycle and specific time point for the automatic task execution.
Target Receiver
Target users to whom the task execution results are pushed. Specific members can be selected.
Pushing Channel
Optional
Pushing channel for task execution results, which can be Platform and WeCom and allows multiple selections.
A well-structured prompt should include three parts: task goal, core rules, and output requirements.
Structured Template for Scheduled Task Prompts
Task goal: [Describe the core task the agent needs to complete in one sentence.]
Core rules:
1. [Rule 1: Specify the core content the agent needs to analyze or process.]
2. [Rule 2: Specify the dimensions the agent needs to deeply disassemble or compare.]
3. [Rule 3: Specify the direction the agent needs to identify or judge.]
Output requirements:
1. Title: [Specify the title format of the output content.]
2. Content: [Specify the scope the output content needs to cover.]
3. Tone: [Specify the language style and expression method of the output content.]
Prompt Example: Weekly Operation Report Task
Task goal: Generate a weekly report based on this week's business data to clearly display business progress, core issues, and optimization suggestions.
1. Core metric review: Display the completion status of core metrics, for example, [Sales Amount], for this week.
2. Key business analysis: Disassemble the top three contributing channels/regions/categories, and analyze the core reasons for growth/decline.
3. Risk and opportunity identification: Identify potential business risks in this week.
1. Title: [XX Business Line] Weekly Operation Report
2. Content: All content specified in the core rules
3. Tone: Concise and professional, with conclusions in front, data to support opinions, and no redundant descriptions
(1) Scheduled tasks rely on the Chat Subscription skill. This skill must also be added to the agent where the scheduled tasks are configured.
(2) Scheduled tasks of all agents can be managed under Admin Console > Agent Supervision > Scheduled Task.
(3) At least one channel must be selected. Otherwise, the task execution results cannot be pushed to users.
(4) Before messages are pushed to WeCom, the WeCom connection must be configured in the Connected IM Tool module first. Otherwise, the push will not take effect.
(5) Scheduled tasks added on the agent configuration page in Admin Console will be marked as Configured Within Agent. Scheduled tasks added on the frontend agent use page will be marked as Added by Me.