Imagine your workflows aren't just static processes, but dynamic pipelines that react to real-world data. That's the power of passing information with Trigger.do. It's not just about starting a workflow; it's about igniting it with the specific context it needs to perform intelligent actions.
Trigger.do, part of the powerful .do platform, acts as your entry point to automating business logic and orchestrating actions, especially within your AI applications. At its core, it's an event trigger – a command to kick off a pre-defined workflow or a specific action.
But the magic happens when you combine that trigger with data.
Passing data with your trigger events unlocks a whole new level of sophistication for your workflows. Instead of performing generic actions, your workflows can now:
This data-driven approach makes your automated processes more efficient, intelligent, and adaptable.
Integration is key, and the .do SDK makes it straightforward to incorporate triggering functionality into your applications. The process for passing data is intuitive:
import { trigger } from '@dotdo/sdk';
const result = await trigger('your_workflow_id', {
data: { userId: '123', eventType: 'login' }
});
console.log(result);
In this simple example, we're triggering a workflow identified by 'your_workflow_id'. Crucially, we're including a data object containing information about the user and the event type. This data is then available within your triggered workflow, ready to be used to inform subsequent steps.
Whether you're triggering based on user actions, data changes, external system notifications, or scheduled intervals, you can enrich the trigger with context using this data payload.
Trigger.do empowers you to automate your business logic through simple event triggers. By leveraging the ability to pass data alongside your trigger events, you transform your workflows from simple automated tasks into dynamic, data-aware engines.
Start building more intelligent, responsive, and personalized AI applications by putting data at the heart of your workflow triggers with Trigger.do.