2025-12-12 23:18:36 -03:00
# Auto Tasks
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
> **LLM-Powered Intelligent Task Execution**
2025-12-03 19:56:35 -03:00
2025-12-12 12:34:56 -03:00
---
2025-12-12 23:18:36 -03:00
< img src = "../../assets/chapter-04/autotask-interface.svg" alt = "Auto Tasks Interface" style = "max-width: 100%; height: auto;" >
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
## What is Auto Tasks?
Auto Tasks is a revolutionary approach to task automation. Instead of manually creating to-do items, you describe what you want to accomplish in natural language, and the LLM compiles your intent into an executable plan with automatic step-by-step execution.
**The old way:** Create a task → Do it yourself → Mark complete
**The Auto Tasks way:** Describe your goal → LLM plans it → System executes it → You approve critical steps
2025-12-03 19:56:35 -03:00
---
2025-12-12 23:18:36 -03:00
## How It Works
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
| Step | What Happens |
|------|--------------|
| **1. Describe Intent** | Write what you want in plain English |
| **2. Compile & Plan** | LLM analyzes intent, generates execution plan |
| **3. Review Plan** | See steps, estimates, risks before execution |
| **4. Execute** | System runs the plan, pausing for approvals |
| **5. Monitor** | Watch progress, make decisions when needed |
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
---
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
## Creating an Auto Task
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
### 1. Write Your Intent
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
In the intent box, describe what you want to accomplish:
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
**Good examples:**
- "Make a financial CRM for Deloitte with client management and reporting"
- "Create a website that collects leads and sends them to Salesforce"
- "Build an automated email campaign for our product launch"
- "Analyze Q4 sales data and generate a PDF report with charts"
**Tips for better results:**
- Be specific about the outcome you want
- Mention the client or project name
- Include key features or requirements
- Specify integrations if needed
### 2. Choose Execution Mode
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
| Mode | Best For | How It Works |
|------|----------|--------------|
| **Semi-Automatic** | Most tasks | Runs automatically, pauses for high-risk steps |
| **Supervised** | Learning/sensitive | Pauses before each step for your approval |
| **Fully Automatic** | Trusted workflows | Runs everything without stopping |
| **Dry Run** | Testing | Simulates execution without making changes |
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
### 3. Set Priority
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
| Priority | Meaning |
|----------|---------|
| **Critical** | Urgent, run immediately |
| **High** | Important, prioritize |
| **Medium** | Normal priority (default) |
| **Low** | Run when resources available |
| **Background** | Run during idle time |
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
### 4. Click "Compile & Plan"
The LLM will:
1. Extract entities (action, target, domain, client)
2. Generate an execution plan with ordered steps
3. Assess risks and estimate resources
4. Generate the underlying BASIC program
2025-12-03 19:56:35 -03:00
2025-12-12 12:34:56 -03:00
---
2025-12-12 23:18:36 -03:00
## Understanding the Execution Plan
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
After compilation, you'll see a detailed plan:
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
### Plan Header
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
- **Plan Name** - Auto-generated title for your task
- **Description** - Summary of what will be accomplished
- **Confidence** - How confident the LLM is in the plan (aim for 80%+)
- **Risk Level** - Overall risk assessment (None/Low/Medium/High/Critical)
- **Estimated Duration** - How long execution should take
- **Estimated Cost** - API and compute costs
### Execution Steps
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
Each step shows:
- **Step Number & Priority** - Order and importance
- **Step Name** - What this step does
- **Keywords** - BASIC keywords that will be used
- **Risk Level** - Risk for this specific step
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
### Resource Estimates
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
- **Compute** - Processing hours needed
- **Storage** - Disk space required
- **API Calls** - External API requests
- **LLM Tokens** - Token consumption estimate
### Plan Actions
| Button | Action |
|--------|--------|
| ** 🗑️ Discard** | Delete the plan, start over |
| ** ✏️ Edit Plan** | Modify steps before execution |
| ** 🔮 Simulate** | Preview impact without executing |
| ** 🚀 Execute** | Start running the plan |
2025-12-03 19:56:35 -03:00
---
2025-12-12 23:18:36 -03:00
## Monitoring Active Tasks
### Task States
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
| Status | Meaning |
|--------|---------|
| **Draft** | Created, not yet compiled |
| **Compiling** | LLM is generating the plan |
| **Ready** | Plan generated, waiting to start |
| **Running** | Currently executing |
| **Paused** | Execution paused by user |
| **Pending Approval** | Waiting for you to approve a step |
| **Waiting Decision** | Needs your input to continue |
| **Completed** | Successfully finished |
| **Failed** | Encountered an error |
| **Cancelled** | Stopped by user |
### Filter Tabs
- **All** - Every task regardless of status
- **Running** - Currently executing tasks
- **Need Approval** - Tasks waiting for your approval
- **Decisions** - Tasks needing your input
### Progress Tracking
Each task shows:
- Current step number and name
- Progress bar with percentage
- Time elapsed and estimated remaining
2025-12-03 19:56:35 -03:00
---
2025-12-12 23:18:36 -03:00
## Approvals & Decisions
### When Approvals Are Required
High-impact actions require your approval:
- Sending emails to many recipients
- Modifying production databases
- Making external API calls with side effects
- Deploying to live environments
- Actions exceeding cost thresholds
### Approval Dialog
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
When approval is needed, you'll see:
- **Action description** - What will happen
- **Impact summary** - What could be affected
- **Risk level** - How risky this step is
- **Simulation result** - Preview of the outcome
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
**Options:**
- ✅ **Approve** - Continue execution
- ⏸️ **Defer** - Decide later
- ❌ **Reject** - Skip this step or stop execution
### Making Decisions
Sometimes the system needs your input:
- Choosing between alternative approaches
- Selecting from multiple options
- Providing missing information
Each option shows pros, cons, and impact estimates.
2025-12-03 19:56:35 -03:00
---
2025-12-12 23:18:36 -03:00
## Task Actions
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
| Action | When Available | What It Does |
|--------|----------------|--------------|
| ** 👁️ Details** | Always | View full task information |
| ** 🔮 Simulate** | Before execution | Preview impact |
| ** ⏸️ Pause** | While running | Temporarily stop execution |
| ** ▶️ Resume** | When paused | Continue execution |
| ** ❌ Cancel** | Anytime | Stop and discard task |
---
## Execution Log
Expand any task to see its execution log:
- Timestamp for each action
- Step transitions
- Approval/decision records
- Error messages if any
- Output from each step
2025-12-03 19:56:35 -03:00
---
2025-12-12 12:34:56 -03:00
## Creating Tasks from Chat
2025-12-12 23:18:36 -03:00
You can also create Auto Tasks by talking to your bot:
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
**You:** "I need to build a customer portal for Acme Corp"
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
**Bot:** "I'll create an Auto Task for that. Here's the plan:
- 5 steps, estimated 3 hours
- Includes: database setup, authentication, dashboard, API integration
- Risk: Low
-
Should I execute this plan?"
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
**You:** "Yes, go ahead"
2025-12-12 12:34:56 -03:00
2025-12-12 23:18:36 -03:00
**Bot:** "🚀 Auto Task started. I'll notify you when approvals are needed."
2025-12-03 19:56:35 -03:00
---
2025-12-12 23:18:36 -03:00
## Generated BASIC Code
Every Auto Task generates a BASIC program behind the scenes. You can view and copy this code:
```bas
' AUTO-GENERATED BASIC PROGRAM
' Plan: Financial CRM for Deloitte
PLAN_START "Financial CRM", "Client management system"
STEP 1, "Create database schema", CRITICAL
STEP 2, "Setup authentication", HIGH
STEP 3, "Build client module", HIGH
PLAN_END
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
NEW_TABLE "clients"
COLUMN "name", STRING
COLUMN "email", STRING
COLUMN "revenue", DECIMAL
SAVE_TABLE
```
This code can be:
- Copied for manual execution
- Modified and saved as a template
- Reused for similar projects
---
## Best Practices
### Writing Good Intents
✅ **Do:**
- "Create a sales dashboard for Q4 data with charts showing revenue by region"
- "Build an email drip campaign: welcome email, 3-day follow-up, 7-day offer"
- "Analyze customer feedback CSV and generate sentiment report"
❌ **Don't:**
- "Make something" (too vague)
- "Do the thing we discussed" (no context)
- "Fix it" (what needs fixing?)
### Choosing Execution Mode
- **New to Auto Tasks?** Start with Supervised mode
- **Routine tasks?** Use Semi-Automatic
- **Trusted, tested workflows?** Fully Automatic is fine
- **Experimenting?** Always use Dry Run first
### Managing Risk
- Review the risk assessment before executing
- Use Simulate for high-risk tasks
- Set up approval thresholds in settings
- Monitor running tasks actively
2025-12-03 19:56:35 -03:00
2025-12-12 12:34:56 -03:00
---
2025-12-03 19:56:35 -03:00
2025-12-12 12:34:56 -03:00
## Troubleshooting
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
### Compilation Failed
- Check that your intent is clear and specific
- Avoid ambiguous language
- Include necessary context (client name, data sources)
### Task Stuck on "Running"
- Check if an approval is pending
- Look for decision requests
- Review the execution log for errors
### Unexpected Results
- Review the generated plan before executing
- Use Dry Run to test first
- Check the BASIC code for issues
### High Risk Warning
- Consider using Supervised mode
- Review each step carefully
- Use Simulate before Execute
---
## Settings
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
Configure Auto Tasks behavior in Settings:
2025-12-03 19:56:35 -03:00
2025-12-12 23:18:36 -03:00
- **Default execution mode** - Your preferred mode
- **Approval thresholds** - When to require approval
- **Cost limits** - Maximum spend per task
- **Notification preferences** - How to alert you
- **Auto-cleanup** - Remove completed tasks after X days
2025-12-03 19:56:35 -03:00
---
## See Also
2025-12-12 23:18:36 -03:00
- [Autonomous Task AI ](../../07-gbapp/autonomous-tasks.md ) - How the machine does the work
- [CREATE SITE Keyword ](../../06-gbdialog/keyword-create-site.md ) - App generation details
- [Calendar ](./calendar.md ) - Scheduled Auto Tasks appear here
- [Chat ](./chat.md ) - Create tasks through conversation
- [Analytics ](./analytics.md ) - Task execution metrics