Schedule a task
Make an agent do work on a schedule, from a webhook, or when an App trigger is true.
A task tells an agent to do work at a set time or on a repeat. For example, a task can make a summary of new refund requests each morning. A task can also wait for an App trigger before it runs the prompt.
See your tasks
In the sidebar, select Tasks.

The page opens in Calendar:
- At the top, Watching shows how many tasks wait for an App condition. It is closed when you open the page. Select Watching to see each task with its next check and its condition. These tasks do not show in the upcoming runs. See Only run when.
- Then come the upcoming runs, by day. Each task shows once, at its next run, with Upcoming. A task that runs often, for example every minute, still shows only its next run. Select a task to open it.
- Waiting for a webhook shows the tasks that run only from a webhook.
- At the bottom, Already ran shows the runs that already happened, newest day first. It is closed when you open the page. Its heading shows the number of runs, the number that failed, and the number of checks where the condition was not met. Select Already ran to open it.
- In Already ran, a task that ran more than one time on a day shows as one row with the count. Select the row to see each run, then select a run to open it.
Already ran shows the most recent runs only. For older runs, see Runs.
Select List to see your tasks in groups: Scheduled, Runs on webhook, Runs when an App condition is met, Paused, and Done. Paused and Done are closed when you open the page. Prajvis remembers the view that you select.
To show fewer tasks, select filter tags:
- + Agent: show the tasks of one or more agents.
- Schedule, Webhook, or App condition: show the tasks that start in that way.
- Active, Paused, or Done: show the tasks with that status.
A selected tag shows a check mark. Select it again to remove it, or select Clear to remove all filters.
To see the tasks of one agent, open the agent and select the Tasks tab. The tab has the same views and filters, without + Agent. New task on that tab selects the agent for you.
Unread runs
When threads of a task have new messages, the task shows the number, for example 4 unread. The number shows next to the task in List view and on the page of the task. Select it to open All threads with the unread threads of that task.

To mark them read together, see Mark several threads read or unread.
Create a task
- On the Tasks page, select New task. You can also select + in the sidebar and then select New task.
- In Task name, enter a name, for example
Morning refund queue summary. - In Triggers, keep Schedule. For a webhook trigger, see Run a task from a webhook.
- In Frequency, select how often the task runs: Once, Hourly, Daily, Weekly, Monthly, or Yearly.
- Set the Date (for Once) or the Time. For Weekly, also select one or more Days of week.
- In Agent, select the agent.
- Optional: in Sub-agent, select a profile of the agent. See Sub-agents and profiles.
- In Prompt, write what the agent must do. The limit is 15,000 characters.
- Optional: turn on Only run when to wait for an App trigger. See Only run when.
- In Thread behavior, select where the runs go. See the table below.
- Optional: turn on Show runs in thread lists to show the threads of this task in Recent and All threads. It is off by default. See Threads from tasks.
- Select Create Task.

| Thread behavior | Result |
|---|---|
| New thread each run | Each run starts a new thread. |
| Same thread always | All runs add to one thread. |
| New thread per day | Runs on the same day go to one thread. |
| New thread per week | Runs in the same week go to one thread. |
| New thread per month | Runs in the same month go to one thread. |

When Show runs in thread lists is on, the page of the task shows Shown in thread lists in Threads. You can turn it on or off later. The change also applies to the threads of earlier runs.
Times use the timezone of the workspace. See Workspace defaults.
Only run when
A task can wait for an App trigger. The task still uses its schedule or webhook. It runs the prompt only when the trigger is true.
- Create or edit the task.
- Turn on Only run when.
- In Trigger, select a trigger. The list shows the app name, then the trigger name.
- Fill in any trigger fields that show.
- In Fire, select when the task should run after the trigger is true:
| Fire | Result |
|---|---|
| Once | Pause the task after it fires. |
| When data changes | Fire only when the data is new. |
| Every time | Fire on every positive trigger result. |
- Save the task.
On the Tasks page, an enabled task with Only run when is in Watching in Calendar, and in Runs when an App condition is met in List. It shows Only when: with the app name and the trigger name. If checks fail, the task shows the number of failed checks. When you turn the task off, it moves to Paused.
If the selected agent has no App triggers, the form shows No triggers available for this agent's Apps. If you have not selected an agent, it shows Select an agent to see available triggers.
Only run when is not available for pipeline tasks or for Post as agent message. The form then shows App triggers are only available for prompt tasks that are not posted as agent messages.
Apps that have triggers list them in app Settings under Triggers. See App settings.
Write a good task prompt
The agent runs the task alone. Give it all the information that it needs:
- what to check, and where
- what to include in the result
- the format and the length of the result
Example:
Summarize refund requests that came in since yesterday morning: count by status,
list any request over $2,000, and flag requests older than 3 business days that
are still New. Keep it to one short message for the support team.Run a task now
- Open the task.
- Select Run now.
Prajvis shows Task has been queued for execution. The run shows on the Runs page while it works. See Runs.
If the task has Only run when, Run now still checks the trigger. If the trigger does not fire, the run stays in history with Outcome Not fired.
Change, pause, or delete a task
Open the task:
- To change the task, select Edit.
- To pause the task, turn off the Enabled switch. Turn it on again to continue the schedule.
- For more actions, select More actions.
Schedule one message from a thread
In a thread, write your message, then select Schedule this message in the message box. Select the Date and the Time, then select Save.