Skip to main content
Back

Scheduled Tasks

PilotDeck Agent Series

1. Overview​

PilotDeck automatically awakens the agent to perform tasks according to the set time, that is, automatically executes a preset prompt word at the specified time. It is suitable for work that has clear execution time, fixed operating rules, and needs to be processed on time or repeatedly, such as regularly sorting out project progress, checking file changes, or pushing daily news.

1.1 The Difference Between Scheduled Tasks and Permanent Tasks​

FunctionHow to triggerExecution contentsuitable task
scheduled tasksReach the time set by the userFixed prompt words pre-written by the userWeekly reports, regular inspections, fixed time reminders and recurring processing
permanentPilotDeck regularly analyzes project statusWork proactively discovered based on project conditionsContinuous maintenance, proactive completion and long-term promotion of projects

2. Use​

2.1 Create a Scheduled Task​

PilotDeck supports two ways to create scheduled tasks: creating within a conversation and creating on the "Card task" interface.

Create within a conversation:

  1. In the dialogue on the target project, clearly mention "create a scheduled task" and write down the task content, execution time, time zone, and whether it will be executed only once or repeatedly at a fixed period.

  2. Send a create request. For example, you can ask PilotDeck to create a task that generates a weekly project report every week:

    Please create a periodic scheduled task for the current project: executed every Friday at 18:00 (Asia/Shanghai). Read the "Progress Record.md" and "Project Plan.md" in the current workspace, sort out the completed items, risks and next week's plan this week, and save them to "Weekly Report/YYYY-MM-DD.md". The file name uses the date of the execution day. Do not modify the source file; if the file does not exist, explain why and do not make up data or create empty reports.

    If you only need to execute it once, you can change the time requirement to a specific date, time, and time zone, and indicate "Only execute once." If the dialogue requires supplementary task information, complete it first before continuing to create.

  3. After creation, open "Schedule Task → Task List", confirm that the task has appeared, and check the workspace, prompt words, execution rules and "next run" time. The actual record in the task list shall prevail. Just receiving a text plan does not mean that the task has been successfully created.

Create in the "Scheduled Tasks" interface:

  1. Enter the "Schedule Task" page and switch to "Create Task".

  2. Write down the task goal, processing scope, output location and completion criteria in the "prompt word".

  3. Select the project (workspace) that the task needs to use in the "Workspace".

  4. Select task type:

    • **One-time tasks:**Triggers only once on a specified date and time, suitable for posting inspections, deadline reminders, or appointment processing. After a task is triggered and completed, it will not remain as a pending task. The execution date, execution time and time zone need to be set.
    • **Cycle:**Repeat triggered tasks according to set rules. You need to set the recurrence period, execution day, time, time zone, or use advanced Cron expression settings.

    On the task creation page for scheduled tasks, you can fill in the prompt words, select the workspace and task type, and the screenshot shows the periodic tasks and advanced Cron expression entry that run every Thursday at 09:30 in the Asia/Shanghai time zone.

  5. Click "Create Task" and the task will appear in the "Task List". Check that the "next run" time is as expected.

  6. Open "Scheduled Tasks → Task List" to view the created tasks by project. "Scheduled" in the status bar means that it is waiting for triggering, and "Running" means that the task is being executed. The task can be run, stopped, edited or deleted immediately.

2.2 View Execution Results​

After the running time is reached, PilotDeck will automatically open a new dialogue within the project to send task prompts, and the Agent will execute the task and feedback the results.

2.3 Manage Scheduled Tasks​

Set scheduled task parameters

Enter the "Settings → Agent → Scheduled Tasks" page and set the time zone and maximum number of concurrent runs.

On the scheduled task page in the settings, you can edit the time zone and the maximum number of concurrent runs. The screenshots show UTC and 1 respectively.

3. How to Write Reminder Words for Timed Tasks​

Scheduled tasks run in the background and cannot stop to confirm missing information to you during execution. Therefore, cue words should be independently executable.

It is recommended to write the following clearly:

contentWriting example
Processing object"Read the current WorkSpace's progress.md and project-plan.md”
time range"Only count new or modified content since the last weekly report"
specific actions"Extract completed items, risks and next week's plan"
Output format"Use Markdown tables and sort them by priority"
output location"Save to weekly-reports/YYYY-MM-DD.md”
Exception handling"Explain why a file doesn't exist, don't make up data, and don't create empty reports"
Modify boundaries"Do not modify the source file, only add the weekly report file"

A prompt word suitable for timed execution should try to avoid expressions that rely on immediate context such as "help me deal with it" and "do it the same way as before". The rules, file names and saving paths that need to be quoted should be written directly in the prompt word.

4. Precautions for Use​

4.1 Keep the Operating Environment Available​

Scheduled tasks rely on the running PilotDeck service. The computer or server running the service needs to remain powered on, and ensure that the network, model service, and project directory can be accessed normally. Exiting the PilotDeck service, computer hibernation or shutdown, network interruption, model unavailability, and insufficient credit may prevent the task from triggering or cause the task to fail.

**Note:**Scheduled tasks cannot wake up a computer that has been shut down or hibernated.

4.2 What to Do If the Task Does Not Run on Time​

You can check in order:

  1. Whether the task is still in the list, whether the status and "next run" are normal;
  2. Whether there are other tasks occupying the entire number of concurrent runs;
  3. Whether the task time zone is correct;
  4. Whether the PilotDeck service and the computers or servers running the service are constantly online;
  5. The model, network, and selected workspace are accessible.

Developer Showcase

View all →