You've built powerful agentic workflows and AI applications on the .do platform. They're smart, they're capable, but how do you get them to act? While the trigger.do API provides a direct and powerful way to initiate your workflows programmatically, the reality is that event triggers come from many sources.
Understanding these different workflow trigger options allows you to build more robust, responsive, and integrated AI applications. Let's dive beyond the simple API call and explore the diverse world of event sources that can trigger your agentic workflows.
As the foundation, trigger.do offers a straightforward way to programmatically fire off any workflow or action defined within your .do environment. This is invaluable for integrating with existing systems, responding to internal events, or initiating processes from within other applications.
Here's a quick reminder of how simple it is:
import { Do } from "@do/sdk";
const doClient = new Do({
apiKey: "YOUR_API_KEY"
});
async function triggerWorkflow() {
try {
const result = await doClient.trigger(
"your-workflow-id",
{
payload: {
"user_id": "abc123",
"event_type": "user_registered"
}
}
);
console.log("Trigger successful:", result);
} catch (error) {
console.error("Failed to trigger workflow:", error);
}
}
triggerWorkflow();
This code snippet demonstrates how easily you can use the .do SDK to trigger a specific workflow (your-workflow-id) and pass a custom payload containing relevant data. This allows your agentic workflows to receive context and information from the initiating source.
While the direct API call is essential, consider these other common and effective ways to trigger your agentic workflows:
For AI applications and agentic workflows, having diverse trigger sources is key to building truly responsive and intelligent systems:
Ready to start anything now? The trigger.do platform makes it easy to define your workflows and connect them to these diverse trigger sources.
What is trigger.do? trigger.do allows you to initiate any process, workflow, or action defined within your .do environment by making a simple API call.
Can I pass data when triggering an event? Yes, you can pass custom data payloads with your trigger calls to provide context and information for the initiated workflow or action.
How do I find the ID of the workflow or action I want to trigger? You can find your unique workflow or action IDs within the .do platform interface.
By understanding and utilizing the full spectrum of workflow trigger options, you can unlock the true potential of your AI application and agentic workflow creations on the .do platform. Get started with trigger.do and begin automating!