Tasks is your to-do list manager within General Bots Suite. Create tasks, set priorities, organize by category, and track your progress. Built with HTMX for instant updates without page reloads.
---
## Features
### Adding Tasks
**Quick Add:**
1. Type task description in the input box
2. Press **Enter** or click **+ Add**
**With Details:**
1. Type task description
2. Select a category (optional)
3. Pick a due date (optional)
4. Click **+ Add**
### Priority Levels
| Priority | Icon | When to Use |
|----------|------|-------------|
| **High** | 🔴 | Must do today |
| **Medium** | 🟡 | Important but not urgent |
| **Low** | 🟢 | Can wait |
| **None** | ⚪ | No deadline |
### Categories
| Category | Icon |
|----------|------|
| Work | 💼 |
| Personal | 🏠 |
| Shopping | 🛒 |
| Health | ❤️ |
| Custom | 🏷️ |
### Filter Tabs
| Tab | Shows |
|-----|-------|
| **All** | All tasks |
| **Active** | Uncompleted tasks |
| **Completed** | Done tasks |
| **Priority** | High priority only |
---
## Keyboard Shortcuts
| Shortcut | Action |
|----------|--------|
| `Enter` | Add task (when in input) |
| `Space` | Toggle task completion |
| `Delete` | Remove selected task |
| `Tab` | Move to next field |
| `Escape` | Cancel editing |
| `↑` / `↓` | Navigate tasks |
---
## Creating Tasks from Chat
<divclass="wa-chat">
<divclass="wa-message user">
<divclass="wa-bubble">
<p>Create a task to review the budget by Friday</p>
<divclass="wa-time">10:30</div>
</div>
</div>
<divclass="wa-message bot">
<divclass="wa-bubble">
<p>✅ Task created:</p>
<p>📋 Review the budget</p>
<p>📅 Due: Friday, March 22</p>
<p>🏷️ Category: Work</p>
<divclass="wa-time">10:30</div>
</div>
</div>
</div>
### Managing Tasks via Chat
<divclass="wa-chat">
<divclass="wa-message user">
<divclass="wa-bubble">
<p>What tasks do I have today?</p>
<divclass="wa-time">09:00</div>
</div>
</div>
<divclass="wa-message bot">
<divclass="wa-bubble">
<p>📋 Today's Tasks (3 active):</p>
<p>🔴 Review quarterly report</p>
<p>🟡 Call client about proposal</p>
<p>🟢 Update project documentation</p>
<divclass="wa-time">09:00</div>
</div>
</div>
<divclass="wa-message user">
<divclass="wa-bubble">
<p>Mark the quarterly report as done</p>
<divclass="wa-time">11:45</div>
</div>
</div>
<divclass="wa-message bot">
<divclass="wa-bubble">
<p>✅ Task completed:</p>
<p>📋 Review quarterly report</p>
<p>You have 2 tasks remaining today.</p>
<divclass="wa-time">11:45</div>
</div>
</div>
</div>
### Setting Reminders
<divclass="wa-chat">
<divclass="wa-message user">
<divclass="wa-bubble">
<p>Remind me to call John tomorrow at 3pm</p>
<divclass="wa-time">14:20</div>
</div>
</div>
<divclass="wa-message bot">
<divclass="wa-bubble">
<p>✅ Task created with reminder:</p>
<p>📋 Call John</p>
<p>📅 Tomorrow at 3:00 PM</p>
<p>🔔 Reminder set for 2:55 PM</p>
<divclass="wa-time">14:20</div>
</div>
</div>
</div>
---
## API Endpoints
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/tasks` | GET | List all tasks |
| `/api/tasks` | POST | Create new task |
| `/api/tasks/:id` | GET | Get single task |
| `/api/tasks/:id` | PATCH | Update task |
| `/api/tasks/:id` | DELETE | Delete task |
| `/api/tasks/stats` | GET | Get task statistics |