What are Jobs?
Jobs are scheduled tasks that run automatically at specified times or intervals, without requiring user interaction. They enable your agent to perform automated operations like sending reports, cleaning up data, or monitoring systems.Think of it as:
A scheduled assistant - tasks that run on their own schedule, like daily reports or weekly cleanup
New in v3.0.0: Two ways to create jobs - pre-defined with LuaJob or dynamically with Jobs API.
Why Jobs?
Automation
Run tasks automatically without user requests
Proactive Engagement
Send reminders, reports, and updates at the right time
Maintenance
Clean up old data, monitor health, maintain systems
Scheduled Communication
Send daily summaries, weekly reports, monthly newsletters
Two Types of Jobs
- LuaJob (Pre-defined)
- Jobs API (Dynamic)
Static jobs defined at agent setupBest for:
- Daily/weekly reports
- Cleanup tasks
- System monitoring
- Recurring notifications
Schedule Types
Cron (Specific Times)
'0 9 * * *'- Every day at 9 AM'0 9 * * 1'- Every Monday at 9 AM'0 0 1 * *'- First of every month at midnight'*/15 * * * *'- Every 15 minutes
Interval (Regular Periods)
300- Every 5 minutes3600- Every hour86400- Every day
Once (One-time)
- Specific future date/time
- User-requested reminders
- Follow-up messages
Example Use Cases
Daily Reports
Send sales summaries, analytics, or metrics every day
Cleanup Tasks
Delete old data, archive records, maintain database
User Reminders
Remind users about appointments, tasks, or deadlines
Monitoring
Check system health, API status, or thresholds
Follow-ups
Send follow-up messages after support tickets
Notifications
Proactive updates about orders, shipments, or events
Adding Jobs to Your Agent
Pre-defined jobs are added to your LuaAgent:Testing Jobs
Next Steps
LuaJob API Reference
Pre-defined jobs documentation
Jobs API Reference
Dynamic job creation documentation
Agent Concept
Learn about LuaAgent configuration
Webhooks Concept
Understand HTTP endpoints

