Overview
Workflows in GAIA allow you to automate repetitive tasks and create sophisticated multi-step processes. Use AI to generate workflows from descriptions, or build them manually with triggers and actions.Understanding workflows
What are workflows?
A workflow is an automated sequence of actions triggered by specific events:- Trigger: The event that starts the workflow (e.g., new email, scheduled time, todo completed)
- Steps: A series of actions GAIA performs (e.g., create todo, send email, update calendar)
- Conditions: Optional logic to control when steps execute
Workflow components
Triggers
Events that start your workflow: time-based, email received, todo created, calendar event, or manual execution.
Actions
Tasks GAIA performs: send emails, create todos, update calendars, call APIs, or run custom logic.
Conditions
Logic that controls workflow execution: if/then rules, filters, and decision points.
Variables
Dynamic data passed between steps: trigger data, previous step results, or user inputs.
Creating workflows
AI-generated workflows
Let GAIA create workflows for you:Describe your automation
Tell GAIA what you want to automate:
- “Create a workflow that emails me a summary of my todos every morning”
- “Automate meeting preparation: create a todo 1 hour before each calendar event”
- “Send weekly reports every Friday at 5pm”
Review the workflow
GAIA analyzes your request and generates:
- Appropriate trigger
- Sequence of actions
- Any necessary conditions or filters
Customize if needed
Adjust the workflow:
- Modify trigger settings
- Add or remove steps
- Change action parameters
Manual workflow creation
Build workflows step-by-step:Name your workflow
Give it a descriptive name like “Morning Email Digest” or “Meeting Prep Automation”.
Configure trigger
Select a trigger type and configure its settings:
- Schedule: Run at specific times
- Email: Trigger on incoming messages
- Todo: When tasks are created or completed
- Calendar: Before or after events
- Manual: Run on demand
Add actions
Build your workflow steps:
- Click Add Step
- Choose an action type
- Configure action parameters
- Use variables from previous steps
From todos
Convert complex tasks into workflows:Wait for generation
GAIA analyzes the todo and creates a workflow in the background. You’ll receive a notification when it’s ready.
apps/web/src/features/todo/api/todoApi.ts:321.
Trigger types
Schedule triggers
Run workflows at specific times:- Fixed schedule: Daily at 9am, Every Monday at 8pm
- Cron expressions: Complex timing patterns
- Intervals: Every 30 minutes, Every 2 hours
Daily schedules
Daily schedules
Run once per day at a specific time:
- Morning summaries
- End of day reviews
- Daily backups or reports
Weekly schedules
Weekly schedules
Run on specific days of the week:
- Monday morning planning
- Friday afternoon reports
- Weekend reminders
Custom intervals
Custom intervals
Run repeatedly at fixed intervals:
- Check for updates every 15 minutes
- Sync data every hour
- Periodic health checks
Email triggers
Start workflows when emails arrive:- All emails: Process every incoming message
- From specific senders: React to emails from certain people
- With keywords: Filter by subject or body content
- With attachments: Trigger on emails with files
Email triggers are great for automated responses, task creation from emails, or forwarding important messages.
Todo triggers
React to task changes:- Todo created: When new tasks are added
- Todo completed: After tasks are marked done
- Todo updated: When task details change
- Todo overdue: When tasks pass their due date
Calendar triggers
Trigger based on events:- Before event: Run X minutes/hours before an event starts
- After event: Run when an event ends
- Event created: When new calendar events are added
- Event updated: When event details change
Manual triggers
Run workflows on demand:- Execute from the workflow list
- Trigger via chat command
- Button in the UI
- API call from external systems
Action types
Email actions
Send and manage emails:- Send email: Compose and send messages
- Reply to email: Respond to incoming messages
- Forward email: Share emails with others
- Archive/Delete: Manage inbox automatically
Calendar actions
Manage your schedule:- Create event: Add new calendar entries
- Update event: Modify existing events
- Delete event: Remove events
- Find free time: Search for available slots
Todo actions
Automate task management:- Create todo: Add new tasks
- Update todo: Change task details
- Complete todo: Mark tasks as done
- Search todos: Find tasks by criteria
Notification actions
Stay informed:- Send notification: Display in-app alerts
- Email notification: Send email reminders
- Browser notification: Desktop notifications
Custom actions
Extend functionality:- HTTP request: Call external APIs
- Run script: Execute custom code
- Data transformation: Process and format data
- AI tasks: Use AI for custom operations
Workflow management
Viewing workflows
Access your workflows from the Workflows page:- Active workflows: Currently running automations
- Draft workflows: Unfinished or disabled workflows
- Community workflows: Public workflows from other users
Workflow list features
- Filter by status: Active, draft, or all
- Filter by source: User-created, AI-generated, or community
- Search workflows: Find by name or description
- Sort options: By date, name, or execution count
apps/web/src/features/workflows/api/workflowApi.ts:35.
Activating and deactivating
Control workflow execution: Activate:- Click the toggle switch on a workflow
- Or click Activate in the workflow details
- Active workflows run automatically based on their triggers
- Turn off the toggle to stop execution
- Workflows remain in your list but won’t trigger
- Useful for temporary disabling
apps/web/src/features/workflows/api/workflowApi.ts:88.
Editing workflows
Deleting workflows
Remove workflows you no longer need:- Click on the workflow
- Click Delete
- Confirm the deletion
Workflow execution
Automatic execution
Active workflows run automatically when their trigger conditions are met:- Schedule-based workflows run at their configured times
- Event-based workflows trigger when events occur
- Each execution is logged for monitoring
Manual execution
Run workflows on demand:- Click Execute on the workflow
- Or ask GAIA: “Run my morning digest workflow”
- Useful for testing or one-off executions
apps/web/src/features/workflows/api/workflowApi.ts:132.
Execution history
Monitor workflow performance:
Execution history is retrieved from
apps/web/src/features/workflows/api/workflowApi.ts:159.
Error handling
When workflows fail:- Execution stops at the failed step
- Error details are logged in execution history
- You receive a notification (if enabled)
- Fix the issue and re-run or retry the workflow
Advanced workflow features
Conditional logic
Add decision points to your workflows:- If/then branches: Execute different steps based on conditions
- Filters: Skip executions when conditions aren’t met
- Loops: Repeat steps for multiple items
Variables and data passing
Use dynamic data in your workflows:- Trigger data: Information from the event that started the workflow
- Step outputs: Results from previous actions
- User inputs: Values you provide when configuring
- System variables: Current date, user info, etc.
Workflow templates
Start from pre-built workflows:- Browse community workflows for inspiration
- Clone existing workflows and customize
- Share your workflows with others
Publishing workflows
Share workflows with the community:
Publishing is managed via
apps/web/src/features/workflows/api/workflowApi.ts:193.
Workflow best practices
Start simple
Begin with basic workflows. Add complexity as you learn the system.
Use descriptive names
Name workflows clearly: “Daily Email Summary” not “Workflow 1”.
Test before activating
Always test workflows with manual execution before enabling automatic triggers.
Monitor execution
Check execution history regularly to catch failures early.
Handle errors gracefully
Add error handling and fallback actions for critical workflows.
Document your workflows
Add descriptions explaining what the workflow does and why.
Keep steps focused
Each step should do one thing well. Break complex workflows into multiple simpler ones.
Use variables
Make workflows flexible with variables instead of hardcoded values.
Common workflow examples
Daily digest
Get a morning summary of your day:- Trigger: Every day at 8am
- Actions:
- Fetch today’s calendar events
- Get today’s todos
- Summarize important emails
- Send combined summary via email
Meeting preparation
Automate meeting prep:- Trigger: 1 hour before each calendar event
- Actions:
- Create a prep todo
- Fetch related emails and documents
- Send notification with context
Email automation
Auto-process incoming emails:- Trigger: New email arrives
- Actions:
- Check sender and subject
- If important: create todo and notify
- If newsletter: archive
- If spam: delete
Weekly reports
Generate status reports:- Trigger: Every Friday at 4pm
- Actions:
- Count completed todos this week
- List upcoming events
- Summarize achievement
- Email report to team
Task follow-up
Automatic follow-ups:- Trigger: Todo becomes overdue
- Actions:
- Send notification
- Adjust priority to high
- Create follow-up todo for tomorrow
Integration with other features
Chat integration
Manage workflows conversationally:- “Show me my active workflows”
- “Run my daily digest workflow”
- “Create a workflow to archive old emails”
- “Disable the meeting prep workflow”
Todo integration
Workflows can create and manage todos:- Generate todos from workflow steps
- Create workflows from complex todos
- Link workflow executions to related todos
Calendar and email integration
Workflows connect all your tools:- Trigger workflows from calendar events
- Create events from workflow actions
- Process emails with workflows
- Send emails as workflow outputs
Troubleshooting
Workflow not triggering
Workflow not triggering
- Check that the workflow is activated
- Verify trigger configuration is correct
- Review execution history for errors
- Test with manual execution
Workflow failing
Workflow failing
- Check execution history for error details
- Verify all integrations are connected
- Test each step individually
- Check for invalid variables or data
Unexpected results
Unexpected results
- Review step configurations
- Check variable values in execution logs
- Verify conditional logic
- Test with different trigger data
Performance issues
Performance issues
- Reduce frequency of scheduled workflows
- Limit the number of actions per workflow
- Use filters to reduce unnecessary executions
- Consider splitting into multiple workflows
Next steps
Goal Tracking
Learn how to set and track long-term goals with GAIA.
Chat Interface
Manage workflows through natural language conversations.