Componentbeschrijving
Hoe de Aangepaste Trigger-component werkt
Custom Trigger Component
The Custom Trigger component is designed to serve as a user-defined entry point within an AI workflow. It enables the workflow to be initiated or activated based on a custom trigger specified by the user. This makes it a flexible component for integrating external events or manual triggers into automated processes.
Purpose and Usefulness
This component is especially useful when you need your AI workflow to respond to specific, user-defined events or conditions, rather than just following a fixed sequence. By defining a trigger name, you can create workflows that start in response to external signals, user actions, or custom logic, making your AI processes more interactive and responsive.
Name | Type | Required | Description |
---|
input_value | Message | No | Message to be passed as input. |
trigger_id | String | Yes | The name of the custom trigger to activate. |
- input_value:
- Accepts an optional message input.
- Can be used to pass context or data into the workflow when the trigger is activated.
- This field is not required and is hidden in the UI by default.
- trigger_id:
- A required string field visible in the UI.
- Specifies the unique name of the custom trigger that will initiate the workflow.
Outputs
Name | Type | Description |
---|
message | Message | Output message after triggering. |
- message:
- The primary output of this component.
- Emits a Message type object in response to the trigger activation.
- This allows downstream components to process the triggered event and any associated input.
Key Features
- Customizable Trigger: Allows users to define their own trigger points in the workflow.
- Flexible Input Handling: Supports optional message input for additional context or data.
- Traceability: Both input value and trigger ID can be traced as metadata for auditing or debugging purposes.
Example Use Cases
- Start a chatbot session when a user clicks a button on a website.
- Trigger an AI process when a specific event occurs in a third-party system (e.g., new email received).
- Manual workflow initiation by an administrator or power user.
Summary
The Custom Trigger component is a versatile building block for creating dynamic, event-driven AI workflows. By allowing external or user-defined events to start processes, it increases the interactivity and adaptability of your automation pipelines.