AI Event Trigger
AI-generatedOverview
This node triggers a workflow when specific AI-related events are logged. It listens for various AI event types such as messages retrieved from memory, documents processed, LLM generated output, and errors, among others. When one of the selected events occurs, the node emits the event data, allowing workflows to respond dynamically to AI system activities. This is useful for monitoring AI processes, debugging, or automating responses based on AI event logs.
Use Case Examples
- Trigger a workflow when an AI message is added to memory to log or analyze the message.
- Start a process when an LLM generates output to further process or store the result.
- React to AI errors by triggering alert workflows.
Properties
| Name | Meaning |
|---|---|
| Event Types | Select the AI event types that will trigger the workflow when logged. Multiple event types can be selected to listen for various AI activities. |
Output
JSON
eventName- The name of the AI event that triggered the workflow.payload- The parsed payload data associated with the event, if available.timestamp- The ISO timestamp when the event was logged.error- Error message if the event payload could not be parsed.
Troubleshooting
- If no events trigger the workflow, ensure that the global AI event logging function is properly set and that the selected event types match the events being logged.
- If the node emits an error indicating failure to parse the AI event, verify that the event payload is valid JSON.