Agent Auto Trigger
The Auto Trigger feature enables you to automate the initiation of a job at regular intervals. This functionality is designed for scenarios where periodic execution of tasks is required. Below is a co
Setting Up an Auto Trigger Session
// Start a session with auto trigger
// Auto trigger every 30 minutes, ending at 2025-01-20T00:00:00Z, starting at 2025-01-29T00:00:00Z, and sending a webhook to https://example.com/webhook
const session = await assisfy.session().create({
goal: "Go through https://assisfy.ai/blog and let me know the latest update on the blog",
withAutoTrigger: {
interval: 30, // Interval in minutes
end_at: '2025-01-20T00:00:00Z',
start_now: true, // if true, the session will start immediately, change to false if you want to start at a specific time
web_hook_url: 'https://example.com/webhook',
}
});
// The session creation will respond with an object similar to:
{
goal // your agent's goal
email // your current email
config // your agent's api config
max_session_per_day // max session per day you have set
today_sessions // sessions your agent has ran today
sessions_left // available sessions that can be triggered
auto_trigger_tracking_id // tracking id for auto-triggered agents
auto_trigger_web_hook_url // your webhook url
auto_trigger_web_hook_signature // webhook signature that is done
}Handling Webhook Events
Webhook Event Example
Key Considerations
Supported Resource Types
Last updated