Skip to main content
CloudThinker’s task system allows you to automate recurring operations, schedule periodic analyses, and manage workflows across your cloud infrastructure.

Task Types

On-Demand Tasks

Execute immediately when triggered manually or via API

Scheduled Tasks

Run automatically based on cron schedules

Event-Driven Tasks

Triggered by webhooks or system events

Recurring Tasks

Execute on a regular interval (daily, weekly, monthly)

Creating Tasks

From the Console

  1. Navigate to Tasks in your workspace
  2. Click Create Task
  3. Configure task details:
    • Name and description
    • Agent to execute
    • Prompt/command to run
    • Schedule (optional)
  4. Save and optionally enable

From Conversation

Create tasks directly from agent conversations:
# Create an on-demand task
@alex create a task to analyze EC2 utilization

# Create a scheduled task
@alex schedule daily cost report at 8 AM

# Create a recurring task
@anna create weekly infrastructure review task for Mondays

Task Templates

Save common operations as reusable templates:

Built-in Templates

CloudThinker includes templates for common operations:
TemplateAgentDescription
Daily Cost ReportAlexSummarize daily spending and anomalies
Weekly Security AuditOliverComprehensive security scan
Database Health CheckTonyPerformance and health metrics
K8s Cluster ReviewKaiCluster utilization and issues
Infrastructure SummaryAnnaCross-agent infrastructure overview

Custom Templates

Create custom templates for your organization:
  1. Navigate to Tasks > Templates
  2. Click Create Template
  3. Define the template:
    • Name and category
    • Agent assignment
    • Prompt text (supports variables)
    • Default schedule
  4. Share with your workspace

Template Variables

Use variables in templates for dynamic content:
# Template with variables
Analyze {{resource_type}} costs for {{environment}} environment
and generate recommendations with minimum savings of ${{min_savings}}

# Example usage
resource_type: EC2
environment: production
min_savings: 100

Scheduling with Cron

Define precise schedules using cron expressions:

Cron Expression Builder

CloudThinker includes a visual cron builder to help create schedules:
FieldValuesExample
Minute0-590 (on the hour)
Hour0-238 (8 AM)
Day of Month1-311 (first of month)
Month1-12* (every month)
Day of Week0-61 (Monday)

Common Schedules

ScheduleCron Expression
Every day at 8 AM0 8 * * *
Every Monday at 9 AM0 9 * * 1
First of each month0 0 1 * *
Every 6 hours0 */6 * * *
Weekdays at 6 PM0 18 * * 1-5

Timezone Support

All schedules run in your workspace timezone (configurable in settings).

Task Execution

Execution Flow

1

Queue

Task is queued for execution based on schedule or trigger
2

Start

Agent begins executing the task prompt
3

Process

Agent analyzes, generates results, and takes configured actions
4

Complete

Results are stored and notifications sent

Execution Options

Configure how tasks execute:
  • Timeout: Maximum execution time (default: 30 minutes)
  • Retries: Number of retry attempts on failure
  • Notification: Alert on completion/failure
  • Output: Where to store results (conversation, report, etc.)

Managing Tasks

Task Status

StatusDescription
ActiveTask is enabled and will run on schedule
PausedTask is disabled but retains configuration
RunningTask is currently executing
CompletedLast run completed successfully
FailedLast run encountered an error

Task History

View execution history for each task:
  • Execution timestamp
  • Duration
  • Status and outcome
  • Output/results
  • Error details (if failed)

Bulk Operations

Manage multiple tasks at once:
  • Enable/disable selected tasks
  • Update schedules in bulk
  • Delete obsolete tasks
  • Export task configurations

Task Notifications

Configure notifications for task events:

Notification Triggers

  • On Start: Notify when task begins
  • On Complete: Notify when task finishes successfully
  • On Failure: Alert when task encounters an error
  • On Output: Notify when specific conditions are met in results

Notification Channels

  • Email notifications
  • Slack messages
  • Webhook calls
  • In-app notifications
# Configure task notifications
@alex configure daily cost report to notify #finops-team on Slack when complete

Task Workflows

Chain multiple tasks together:

Sequential Workflows

Execute tasks in order:
Workflow: Monthly Infrastructure Review
Tasks:
  1. Alex: Run cost analysis
  2. Oliver: Run security audit
  3. Kai: Run Kubernetes review
  4. Tony: Run database health check
  5. Anna: Compile executive summary

Parallel Execution

Run independent tasks simultaneously:
Workflow: Daily Health Check
Parallel:
  - Alex: Cost anomaly detection
  - Oliver: Security scan
  - Kai: Cluster health
  - Tony: Database health
Then:
  - Anna: Aggregate and report

Conditional Tasks

Execute tasks based on conditions:
Workflow: Cost Alert Response
Trigger: Budget alert
Tasks:
  1. Alex: Analyze cost spike
  2. If severity = high:
     - Anna: Create incident
     - Notify finance team
  3. Create recommendations

Integration with External Systems

API Triggers

Trigger tasks via the CloudThinker API:
# Trigger task via API
POST /api/tasks/{task_id}/run
Authorization: Bearer <api_key>

Webhook Triggers

Configure tasks to run on external events:
  1. Create a webhook endpoint in CloudThinker
  2. Configure external system to call the webhook
  3. Map webhook payload to task parameters

CI/CD Integration

Run tasks as part of deployment pipelines:
  • Post-deployment cost analysis
  • Pre-release security scan
  • Infrastructure validation

Best Practices

Name tasks clearly to indicate their purpose, schedule, and scope. Example: “Daily-EC2-CostAnalysis-Production”
Configure timeouts based on expected task duration. Too short causes failures; too long delays feedback.
Always set up notifications for task failures to catch issues early.
Periodically review task execution history to identify patterns and optimize schedules.
Create templates for common patterns to ensure consistency and reduce configuration errors.

View Operations Hub

Browse 325+ pre-built operations that can be scheduled as tasks