Create Your First Automated Workflow in 5 Minutes
This guide will walk you through setting up Spark and creating a workflow that runs automatically on a schedule.Step 1: Initialize Spark
Step 2: Configure Spark
Editconfig.json:
Step 3: Create Your First Workflow
Createworkflows/daily-standup.yaml:
Use crontab.guru to build cron expressions easily!
Step 4: Test Your Workflow
Before scheduling, test it:Step 5: Start the Scheduler
Real-World Example: Automated Dependency Updates
Create a workflow that checks for dependency updates weekly:Common Workflow Patterns
- Daily Reports
- Continuous Monitoring
- Backup Automation
Workflow Features
Conditional Execution
Parallel Tasks
Error Handling
Monitoring & Debugging
Common Use Cases
Code Quality Checks
Data Pipelines
Security Scans
Content Publishing
Pro Tips
Use Environment Variables
Use Environment Variables
Keep secrets out of workflows:Set in
.env:Test Before Scheduling
Test Before Scheduling
Always test workflows before letting them run automatically:
Monitor Execution Times
Monitor Execution Times
Track how long tasks take:
Next Steps
Advanced Workflows
Learn:
- Multi-stage workflows
- Dynamic task generation
- Workflow templates
Integrations
Connect to:
- GitHub Actions
- Jenkins
- AWS Lambda
- Custom webhooks
Notifications
Configure:
- Slack alerts
- Email reports
- Discord notifications
- Custom webhooks
Production Deployment
Deploy:
- As systemd service
- In Docker
- On Kubernetes
Troubleshooting
Workflow not executing
Workflow not executing
Check scheduler and cron expression:
Tasks failing silently
Tasks failing silently
Enable debug logging:
Timezone issues
Timezone issues
Verify timezone settings:
Congratulations! 🎉 You’ve created your first automated workflow with Spark. Your AI agents now work 24/7!
Join the Community
Share your workflows and automation ideas

