Workshop 5: DeepAgents & Automation
Duration: 60 minutes | Level: Advanced | Prerequisites: Workshops 1-4
What Youβll Master
DeepAgents transforms your expert from a chatbot into an autonomous agent that can complete complex, multi-step tasks.1
Understanding DeepAgents
Learn how autonomous agents differ from standard chatbots
2
Workspace Management
Create and manage persistent file systems
3
Task Automation
Build and track task lists for complex workflows
4
Code Execution
Enable your expert to write and run code
5
HITL Control
Configure human-in-the-loop for safety
What are DeepAgents?
DeepAgents are AI agents that can:Standard Chat vs DeepAgents
| Feature | Standard Chat | DeepAgents |
|---|---|---|
| Conversations | β | β |
| File Access | β | β |
| Task Management | β | β |
| Code Execution | β | β |
| Multi-step Workflows | Limited | β |
| Persistent State | Limited | β |
| Autonomous Actions | β | β |
Enabling DeepAgents Mode
Activate in Chat
1
Open Settings
Click the settings icon in the chat top bar
2
Enable Deep Mode
Toggle βDeep Modeβ or βDeepAgents Modeβ
3
View Workspace
The workspace drawer appears on the right side

The Workspace Interface
Tasks Panel
View and manage todos:
- See all created tasks
- Track completion status
- Add manual tasks
- Delete or modify
Files Panel
Access the file system:
- Browse created files
- Edit content
- Download files
- Upload new files
Task Management
Task Statuses
| Status | Icon | Meaning |
|---|---|---|
| Pending | βͺ | Not started yet |
| In Progress | π΅ | Currently working |
| Completed | π’ | Finished successfully |
| Failed | π΄ | Encountered errors |
| Cancelled | π | Manually cancelled |
Creating Tasks
You can create tasks by:- Asking the Agent: βCreate a task to analyze the sales dataβ
- Natural Language: βI need you to do X, Y, and Zβ
- Manual Addition: Click βAdd Taskβ in the workspace
Task Hierarchy
DeepAgents supports nested tasks:π― Exercise: Task Workflow
Try this conversation with your DeepAgent:File System Operations
Available File Operations
Read Files
Access and analyze existing files
Write Files
Create new files or update existing
Search Files
Find content across files
Edit Files
Modify specific parts of files
File Types Supported
| Type | Extensions | Use Cases |
|---|---|---|
| Text | .txt, .md, .json | Notes, configs, data |
| Code | .py, .js, .ts, .html, .css | Scripts, websites |
| Data | .csv, .json | Datasets, exports |
| Docs | .md, .html | Reports, documentation |
π― Exercise: File Operations
1
Create a File
Ask: βCreate a markdown file called project-plan.md with a basic outline for a mobile app projectβ
2
Read and Modify
Ask: βRead project-plan.md and add a timeline sectionβ
3
Create Related File
Ask: βCreate a tasks.json file listing the tasks from the project planβ
Code Execution
Enabling Code Execution
DeepAgents can execute code in isolated sandboxes:Supported Languages
Python
Full Python 3.x support with common libraries
JavaScript
Node.js runtime for JS/TypeScript
Shell
Bash commands for system operations
Code Execution Examples
- Data Analysis
- File Processing
- API Integration
E2B Workspace Templates
DeepAgents uses E2B (Execution to Browser) for code execution:| Template | Use Case | Features |
|---|---|---|
| Python Data Science | Analysis, ML | pandas, numpy, matplotlib |
| Node.js | Web dev, APIs | npm packages, TypeScript |
| Next.js + Tailwind | Full-stack web | React, Tailwind CSS |
| Vite + React | Frontend apps | Fast builds, HMR |
Human-in-the-Loop (HITL)
What is HITL?
HITL mode requires human approval before the agent takes actions:HITL vs Auto Mode
| Mode | Behavior | Best For |
|---|---|---|
| Auto | Agent acts immediately | Trusted tasks, speed |
| HITL | Asks for approval | Sensitive operations, learning |
Configuring HITL
1
Open Settings
Click settings in the chat interface
2
Toggle HITL
Enable βHuman in the Loopβ mode
3
Set Thresholds (Optional)
Configure which actions need approval
π― Exercise: HITL Workflow
- Enable HITL mode
- Ask the agent to create a complex project structure
- Review each proposed action
- Approve, reject, or modify as needed
- Observe how the agent adapts to your feedback
Complex Workflow Example
Building a Web App with DeepAgents
Letβs walk through a complete workflow:1
Define the Project
- βͺ Set up project structure
- βͺ Create React components
- βͺ Style with Tailwind
- βͺ Add functionality
- βͺ Test and refine
2
Execute Tasks
The agent works through each task, creating files:
3
Test the Result
Agent runs the preview server:
4
Iterate
Best Practices
Start with HITL
Enable HITL when learning or working with new workflows
Break Down Tasks
Complex projects work better with clear subtasks
Review Generated Code
Always check code before running in production
Use Templates
E2B templates provide stable, tested environments
Advanced Features
Memory Integration
DeepAgents remember context across sessions:- Project state is preserved
- Preferences are learned
- Previous decisions inform future actions
Multi-Agent Collaboration
Combine DeepAgents with team members:Scheduled Automation
Set up recurring DeepAgent tasks:- Daily reports
- Weekly summaries
- Automated data processing
π― Challenge Exercise
Complete this comprehensive project:1
Create a Data Dashboard
Ask DeepAgent to create a web dashboard showing sales data
2
Include Charts
Add visualizations using a charting library
3
Make it Interactive
Add filters and date range selection
4
Document
Have the agent create README documentation
Key Takeaways
Autonomous Power
DeepAgents can complete complex multi-step tasks independently
Persistent Workspace
Files and state persist across conversations
Code Execution
Write, run, and iterate on code in real-time
Safe Control
HITL mode provides oversight for critical operations