SDK Trigger
The SDK is the recommended way to trigger your Agent programmatically. It provides a higher-level interface for Python and TypeScript — no need to manage raw HTTP requests or authentication headers manually.Getting started
Install the SDK for your language: PythonFor full SDK documentation, setup guides, and advanced usage, refer to the Developer Docs & SDK.
API Trigger
If you prefer working with raw HTTP requests or need to integrate from a language the SDK doesn’t support, you can use the API trigger directly.When triggering an agent via API, the response is not returned directly. Instead, the result must be sent to a specified destination, such as uploading the final output to Google Sheets.
Setting up an API Trigger
- Navigate to the Agents page and select the agent you want to configure
- In the sidebar on the left, go to “Triggers” and click the “Add trigger” button
- Under the “Build your own triggers” section, click the “API” trigger
agent_id. Code examples in cURL, JavaScript, and Python are also provided.
API reference
Endpoint:The endpoint URL differs based on your organization’s region. The example above shows the AU region endpoint. When you set up your API trigger in the UI, the correct endpoint for your region will be displayed in the configuration popup.
Code examples
cURLBest practices
- Error Handling: Implement robust error handling in your integration code
- Rate Limiting: Be mindful of API rate limits and implement appropriate throttling
- Security: Store API keys securely and use environment variables rather than hardcoding them
- Monitoring: Set up monitoring for your trigger usage to detect issues early
- Testing: Thoroughly test your implementation in a development environment before deploying to production
Frequently asked questions (FAQs)
What programming languages can I use?
What programming languages can I use?
The SDK is available for Python and TypeScript. The API trigger works with any language capable of making HTTP requests.
What's the difference between the SDK and API triggers?
What's the difference between the SDK and API triggers?
Both achieve the same result — triggering your agent programmatically. The SDK provides a higher-level interface with built-in authentication handling, while the API trigger uses raw HTTP requests. We recommend the SDK for most use cases.
Are there rate limits?
Are there rate limits?
Yes, usage is subject to rate limits based on your subscription plan. Please refer to your plan details for specific limitations.
Can I use these with serverless functions?
Can I use these with serverless functions?
Absolutely! Both the SDK and API work well with serverless architectures like AWS Lambda, Google Cloud Functions, or Azure Functions.
How secure are these triggers?
How secure are these triggers?
All requests must be authenticated with your API key, and all data is transmitted over HTTPS.

