Understanding Agent Workflows
Agent workflows define how your AI coworker processes tasks and interacts with users. A workflow is essentially a list of tasks that your agent needs to perform, powered by the skills you've assigned to it. Think of it as writing a to-do list for your AI assistant, where each task utilizes one or more of its configured skills.
Prerequisites
Before creating a workflow, ensure you have:
- Added necessary skills to your agent
- Understood what tasks each skill enables
- Planned the sequence of tasks you want to automate
Accessing the Workflow Configuration
- Navigate to your agent in the AI Coworkers section
- Click on the Task List tab
- Find the View button at the top of the page
- Click to choose between three views:
- Task List View (visual representation)
- JSON View (technical configuration)
- List of Nodes (simplified node list)
Starting with Tasks
When you first access the Task List tab, you'll see:
- A clean workspace with an "Add a Task" button at the center
- Option to import existing workflows
- View selector (Task List, JSON, or Nodes) in the top right
Adding Your First Task
- Click the "Add a Task" button
- Write your task in plain language, for example:
- "Read emails from the 'Urgent' Gmail label"
- "Send daily reports to Slack channel #updates"
- "Monitor weather for New York and alert if rain is predicted"
- The system will analyze your task and match it with available skills
Building the Workflow
As you add tasks, Telex will:
- Match tasks with appropriate skills
- Suggest additional related tasks
- Help configure task parameters
- Create connections between tasks automatically
View Options
Task List View (Default)
- Visual representation of your tasks
- Drag-and-drop task ordering
- Easy task addition and editing
- Clear view of task relationships
JSON View
When you select "JSON View", you'll see an editor interface with:
- Syntax-highlighted workflow JSON
- Toolbar with actions:
- Prettify: Formats the JSON for better readability
- Compress: Minifies the JSON
- Copy: Copies to clipboard
- Save: Saves changes
The Role of Skills
Skills are fundamental to workflows:
-
Task Enablement
- Each task requires one or more skills
- Skills determine what tasks are possible
- New skills enable new task types
-
Task Configuration
- Skills provide task parameters
- Skills determine data formats
- Skills enable connections between tasks
-
Examples of Skill-Task Relationships
| Skill | Possible Tasks |
|---|---|
| Gmail Integration | - Read emails from specific labels - Monitor for new emails - Send email responses |
| Slack Integration | - Post messages to channels - Monitor channel activity - Send direct messages |
| Weather API | - Check weather forecasts - Monitor conditions - Set up weather alerts |
Future Capabilities
The workflow system is designed to support:
-
Automatic Workflow Generation
- Write tasks in plain language
- Click "Generate Workflow"
- System creates optimized workflow
-
Smart Task Suggestions
- Based on installed skills
- Learns from common patterns
- Suggests task optimizations
Best Practices
-
Clear Instructions
- Write detailed, specific instructions in
long_description - Include all required steps and formats
- Specify any tools the agent should use
- Write detailed, specific instructions in
-
Organized Structure
- Group related nodes together
- Use meaningful names for nodes
- Keep the workflow focused on a specific purpose
-
Testing
- Always test the workflow after making changes
- Verify all nodes are properly connected
- Check that instructions are being followed correctly
Next Steps
- Learn about Task Lists to understand how to organize agent tasks
- Explore Agent Skills to add capabilities to your workflow
- Review Prompts to refine how your agent communicates