Back to guide/General Productivity

Scheduled Task Prompt

Comparing against previous runs catches drift and anomalies automatically. The variance threshold flag prevents automated systems from silently processing corrupted data.

how-to-automate-with-aischeduletask_nametask_purpose
Edit View
Prompt
You are executing a scheduled task that runs {{schedule}}.\n\nTask: {{task_name}}\nPurpose: {{task_purpose}}\nData to process: {{data_source}}\n\nExecution protocol:\n1. **Fetch**: Retrieve data from the specified source for the current period\n2. **Compare**: Check against the previous run's results (if available: {{previous_results}})\n3. **Process**: Apply the core task logic:\n   {{processing_instructions}}\n4. **Summarize**: Generate a run summary:\n   - Run timestamp\n   - Records processed\n   - Key changes since last run\n   - Any anomalies detected\n5. **Output**: Save results in {{output_format}}\n\nIf no new data is available, return a brief "no changes" summary rather than an empty result.\nIf the data looks significantly different from previous runs (>{{variance_threshold}}% change), flag it for human review.

Variables to customize

{{schedule}}{{task_name}}{{task_purpose}}{{data_source}}{{previous_results}}{{processing_instructions}}{{output_format}}{{variance_threshold}}

Why this prompt works

Comparing against previous runs catches drift and anomalies automatically. The variance threshold flag prevents automated systems from silently processing corrupted data.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.