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
To initiate an auto-triggered session, use the following example:
Handling Webhook Events
When using auto-trigger, webhook events are used to track the progress and activities of your session. Since socket sessions are not utilized in this mode, you must rely on webhook events for updates. Below is the list of events you may receive:
trigger.session.started
: Triggered when a new session is started. This includes the session ID.trigger.action.run
: Indicates that an action is being executed.trigger.external.resource.requested
: Signals a request for external resources.trigger.thoughts.and.memories
: Logs thoughts and memories generated by the session.trigger.browser.started
: Indicates the start of browser-related activities.trigger.complete
: Denotes session completion.trigger.error
: Reports any errors encountered during the session.
Webhook Event Example
Your webhook will receive event payloads similar to the following:
Key Considerations
Session Start and End Times:
Ensure the
start_at
andend_at
times are correctly set in ISO 8601 format.The
interval
should be specified in minutes.
Webhook URL:
The
web_hook_url
should be a publicly accessible endpoint capable of receiving and processing events.
Handling Resource Requests:
Manage external resource requests efficiently by responding to events like
external_resource_requested
based on theresource_type
.
Supported Resource Types
admin_permission_request
: Requests requiring administrative approval.request_user_input
: Requests requiring user-provided input.
By following this guide, you can effectively leverage the Auto Trigger feature for automating tasks and integrating seamlessly with your workflows.
Last updated