Triggers
Configure how your flows start: manual triggers, webhooks, cron schedules, platform events, web forms, callable subflows, and file uploads.
Triggers
Every flow begins with exactly one trigger node. The trigger determines when and how the flow starts executing. DAICISION supports seven trigger types, each designed for a different automation pattern.
Trigger Types at a Glance
| Trigger Type | Starts When... | Typical Use Case |
| ------------------ | ----------------------------------------------- | ------------------------------------- |
| trigger:manual | A user clicks "Run" or calls the execute API | Ad-hoc tasks, testing |
| trigger:webhook | An external system sends an HTTP POST | Third-party integrations, Stripe, GitHub |
| trigger:schedule | A cron expression matches the current time | Nightly syncs, hourly reports |
| trigger:event | An internal platform event fires | Cross-module automation |
| trigger:webform | A user submits a published web form | Lead capture, support intake |
| trigger:callable | Another flow invokes this flow as a subflow | Reusable logic, shared routines |
| trigger:file | A file is uploaded or detected in storage | Document processing pipelines |
Manual Trigger (trigger:manual)
The manual trigger is the simplest way to start a flow. It produces no automatic invocation -- you must explicitly run the flow through the UI or the REST API.
Running via UI
Open the flow in the builder and click the Run button in the toolbar. If the trigger has input parameters defined, a dialog will prompt you to enter them.
Running via API
POST /api/v1/flows/:flowId/execute
Content-Type: application/json
Authorization: Bearer <token>
{
"triggerData": {
"contactEmail": "jane@example.com",
"priority": "high"
}
}
The API returns immediately with a queued execution ID:
{
"executionId": "a1b2c3d4-...",
"status": "QUEUED",
"message": "messages.execution.queued"
}
Execution happens asynchronously via BullMQ. Poll the execution endpoint or subscribe to WebSocket events for real-time status updates.
Defining Input Parameters
You can define expected input fields on the manual trigger node so that the UI generates a form and the API validates the payload. Configure them in the node's Parameters tab:
{
"parameters": {
"contactEmail": { "type": "string", "required": true },
"priority": { "type": "string", "enum": ["low", "medium", "high"], "default": "medium" }
}
}
Webhook Trigger (trigger:webhook)
Webhook triggers expose a unique HTTPS endpoint that external services can call. When DAICISION receives a POST request at the webhook URL, it starts a new flow execution with the request body as trigger data.
Setup
- Add a
trigger:webhooknode to your canvas. - Save the flow. The platform generates a unique webhook URL displayed in the node configuration.
- Copy the URL and configure it in the external system (e.g., Stripe webhook settings, GitHub repository webhooks).
Webhook URL Format
https://<your-domain>/api/v1/webhooks/<flow-id>/<webhook-secret>
The webhook secret is auto-generated and can be regenerated at any time. Regenerating the secret invalidates the previous URL.
Payload Handling
The entire request body is passed as trigger.output to downstream nodes. You can access specific fields using expressions:
{{nodes.trigger-1.output.event}}
{{nodes.trigger-1.output.data.customer.email}}
Security Considerations
- Webhook endpoints validate the
Content-Typeheader (must beapplication/json). - You can configure signature verification for providers that sign payloads (e.g., Stripe uses
Stripe-Signatureheaders). - Rate limiting is applied per tenant to prevent abuse.
- Webhooks are only active when the flow is in
ACTIVEstatus.
Schedule Trigger (trigger:schedule)
Schedule triggers run your flow at recurring intervals using cron expressions. This is ideal for batch jobs, periodic data syncs, and reporting pipelines.
Cron Expression Format
DAICISION uses standard 5-field cron syntax:
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12)
│ │ │ │ ┌───────────── day of week (0-7, 0 and 7 = Sunday)
│ │ │ │ │
* * * * *
Common Schedule Examples
| Cron Expression | Schedule |
| ----------------- | ------------------------------- |
| 0 * * * * | Every hour at minute 0 |
| 0 9 * * 1-5 | Weekdays at 9:00 AM |
| 0 0 * * * | Daily at midnight |
| 0 0 1 * * | First day of every month |
| */15 * * * * | Every 15 minutes |
| 0 6,18 * * * | Twice daily at 6:00 AM and 6:00 PM |
Timezone Configuration
All cron expressions are evaluated in the timezone configured on the trigger node. The default is UTC. Select your preferred timezone from the dropdown in the node configuration panel.
Trigger Data
Schedule triggers pass a metadata object to downstream nodes:
{
"scheduledAt": "2026-02-24T09:00:00.000Z",
"timezone": "Europe/Prague",
"cronExpression": "0 9 * * 1-5"
}
Event Trigger (trigger:event)
Event triggers respond to internal DAICISION platform events. The event-driven architecture emits events when records are created, updated, or deleted across all business modules.
Subscribing to Events
Configure the event trigger with a pattern that matches the events you want to capture. Patterns support wildcards:
| Pattern | Matches |
| ------------------------- | ------------------------------------------------ |
| crm.contact.created | Exactly one event: when a CRM contact is created |
| crm.contact.* | All contact events (created, updated, deleted) |
| crm.deal.* | All deal events |
| crm.* | All CRM module events |
| tickets.ticket.created | When a support ticket is created |
Event Payload
The trigger passes the full event envelope to downstream nodes:
{
"type": "crm.contact.created",
"sourceModule": "crm",
"tenantId": "...",
"userId": "...",
"payload": {
"contact": {
"id": "...",
"firstName": "Jane",
"lastName": "Doe",
"email": "jane@example.com"
}
},
"metadata": {
"correlationId": "...",
"version": "1.0",
"priority": "NORMAL"
}
}
Field Change Detection
A common pattern is to trigger flows when a specific field changes on a CRM record. Combine the event trigger with a logic:if node to check for field changes:
Pattern: crm.deal.updated
Condition: {{trigger.output.payload.changes.stage}} is not empty
This fires the flow only when the stage field on a deal record is modified.
Webform Trigger (trigger:webform)
Webform triggers let you publish a hosted form that starts a flow on submission. This is useful for lead capture, customer onboarding, or support request intake.
Configuration
- Add a
trigger:webformnode and define form fields (name, email, message, etc.). - Save and activate the flow.
- DAICISION generates a public URL for the form.
- Share the URL or embed it in your website with an iframe.
Form submissions are validated against the field definitions before triggering execution. Required fields, email validation, and length limits are enforced automatically.
Callable Trigger (trigger:callable)
Callable triggers allow a flow to be invoked as a subflow by another flow. This enables modular flow design -- you build reusable routines once and call them from multiple parent flows.
Invoking a Callable Flow
In the parent flow, add a logic:subflow node and select the callable flow. The subflow receives the input parameters defined on its callable trigger and returns its output to the parent flow.
Input/Output Contract
Define the input schema on the callable trigger and the output schema on the flow's final node. The logic:subflow node in the parent flow will validate inputs before invocation and map outputs after completion.
File Trigger (trigger:file)
File triggers start a flow when a file is uploaded or detected. They integrate with connected storage services (S3, Google Drive, Dropbox, etc.) or the platform's built-in file storage.
Configuration
- Source -- Select a connected storage connector or use platform storage.
- Path/Folder -- Watch a specific folder for new files.
- File patterns -- Filter by extension (e.g.,
*.csv,*.pdf). - Polling interval -- How often to check for new files (for connectors that do not support push notifications).
The trigger passes file metadata (name, size, MIME type, path) and optionally the file content to downstream nodes.
Execution Modes
Regardless of trigger type, every execution is tagged with a triggeredBy value that identifies how it was started:
| Value | Meaning |
| ----------- | ------------------------------------------------ |
| manual | User clicked Run or called the execute API |
| webhook | External HTTP POST |
| schedule | Cron schedule fired |
| event | Internal platform event matched |
| retry | Re-execution of a previously failed run |
This value is stored on every execution record and can be used in flow logic for conditional behaviour.
Next Steps
- Explore the full Node Types Reference for all available nodes
- Add branching logic with Logic Nodes
- Test and debug your trigger configuration