Instantly Activate Your Agentic Workflows
Easily trigger events and actions within your AI applications and services via simple API calls.
In the rapidly evolving world of AI, the ability to orchestrate complex processes and agentic workflows is paramount. Often, the missing piece is a simple, reliable way to kickstart these workflows based on external events or internal logic. That's where trigger.do comes in.
trigger.do provides a straightforward mechanism to initiate any workflow, action, or process you've defined within your .do environment. Think of it as the start button for your automated tasks and AI agents. With a single API call, you can set your complex operations in motion.
At its core, trigger.do is a service that allows you to remotely trigger events and actions registered on the .do platform. This is incredibly powerful for integrating your AI applications with other systems, responding to user interactions, or automating sequences of tasks.
By using trigger.do, you can:
The beauty of trigger.do lies in its simplicity. It's designed to be easy to integrate and use, eliminating the need for complex setup or configurations.
Getting your first workflow or action triggered with trigger.do is a quick process. Here's a basic guide:
Prerequisites:
Steps:
While you can make raw HTTP calls, using the official .do SDK simplifies the process. Here's an example using TypeScript:
import { Do } from "@do/sdk";
const doClient = new Do({
apiKey: "YOUR_API_KEY" // Replace with your actual API key
});
async function triggerWorkflow() {
try {
// Replace "your-workflow-id" with the actual ID of your workflow
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();
In this example, we:
One of the most useful features of trigger.do is the ability to pass custom data payloads with your trigger calls. This allows you to provide specific information to the triggered workflow or action, making it truly dynamic and useful.
For example, if you're triggering a workflow to process a new user registration, you can pass the user's ID, email address, and registration timestamp in the payload. Your workflow can then use this data to perform specific actions, like sending a welcome email or setting up their profile.
The payload can be any valid JSON object.
With trigger.do, you have the power to instantly activate your agentic workflows and automate your AI applications with ease. By following the simple steps outlined above and utilizing the provided SDK, you can quickly integrate trigger.do into your projects and unlock new levels of automation and functionality.
Ready to start triggering your workflows? Explore the .do platform and begin implementing trigger.do today!
Start Anything Now
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.