In the rapidly evolving world of AI applications and agentic workflows, the ability to reliably and programmatically initiate specific actions or processes is paramount. This is where the power of triggering comes into play. At trigger.do, we provide a simple yet powerful way to activate your workflows and actions within the .do platform, bringing unparalleled automation and efficiency to your business logic.
Imagine having complex AI agents or automated workflows ready to execute a task the moment a specific event occurs. With trigger.do, this isn't just a possibility – it's a reality. We allow you to easily trigger events and actions within your AI applications and services via simple API calls. This means you can connect external systems, user interactions, or other data points directly to your internal .do processes.
Complexity is the enemy of efficiency. That's why trigger.do is designed with simplicity in mind. Our platform enables you to initiate any process, workflow, or action defined within your .do environment by making a simple API call. This low-friction approach ensures that integrating triggering into your existing systems is seamless and straightforward.
As you can see in the example above, triggering a workflow is as simple as making a function call with your workflow ID and an optional payload. This intuitive approach means developers can quickly integrate triggering into their applications without a steep learning curve.
Automation is most effective when it's context-aware. trigger.do allows you to pass custom data payloads with your trigger calls. This means you can embed relevant information directly into the initiated workflow or action, providing the necessary context for it to execute intelligently. For example, when triggering a "user_registered" workflow, you can include the user ID, registration timestamp, or any other data points that the workflow needs to process the event correctly.
Each workflow and action you define within the .do platform has a unique ID. You can easily find these IDs within the .do platform interface. Once you have the ID, you can use it in your trigger API calls to ensure you are activating the correct process.
Whether you're orchestrating complex AI agents, automating customer service responses, or managing internal data processing, trigger.do provides the essential mechanism to kickstart your operations at precisely the right moment.
Ready to experience the power of automated workflow initiation? Sign up for trigger.do and start automating your agentic workflows today. Our easy-to-use platform and simple API make it effortless to bring new levels of efficiency to your AI applications and services.
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.
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();