AI Listener Agent
Overview
The AI Listener Agent assists users in creating, editing, querying, and deleting listeners. Listeners are a powerful tool in the Informat platform that trigger and execute pre-configured automation programs or scripts by listening to specific system events (such as data changes, user operations, automation executions, etc.).
Core Capabilities
1. Listener Management
- Query Listener List: View all listener configurations under the current application (tree structure)
- Create Listener: Configure new listeners, specifying listening events and trigger actions
- Edit Listener: Modify listener name, event list, invocation method, and other configurations
- Delete Listener: Remove listeners that are no longer needed
2. Event Configuration
- Data Table Events: Listen to record creation before/after, update before/after, deletion before/after, sort changes, comments, etc.
- Application Events: Listen to application publishing, entering application/module, member changes, etc.
- Automation Events: Listen to automation execution start, success, and failure
- Scheduled Task Events: Listen to scheduled task execution status
- Workflow Events: Listen to task status changes, process status changes
- Custom Events: Listen to custom events published through the "Publish Application Event" step
3. Trigger Action Configuration
- Call Automation: Trigger a specified automation workflow when an event is detected
- Call Script: Execute a specified script function when an event is detected
4. Associated Capabilities
- Automation Management: Create and configure automation workflows triggered by listeners
- Script Management: Create and edit scripts called by listeners
Using the AI Listener Agent
In the [Application Designer]'s [AI] module, click [Listener Agent] to switch to the listener agent conversation.
Application Cases
1. Data Change Notifications
- Use Case: Automatically send notifications when data table records are created or updated
- Example: Input "Create a listener that automatically sends notifications to relevant personnel after an order table record is created"
2. Data Validation Interception
- Use Case: Perform rule validation before data submission, preventing submission when conditions are not met
- Example: Input "Create a listener that validates required fields before record creation, terminating the operation if conditions are not met"
3. Automation Execution Logs
- Use Case: Record automation workflow execution status for statistical analysis
- Example: Input "Create a listener that records the start and end times of all automation executions to a log table"
4. View Existing Listeners
- Use Case: Understand the listeners configured in the current application
- Example: Input "Give me an overview of this application's listeners"
Important Notes
- The agent will first query application configuration and existing listener list, operating based on real data
- Non-client-triggered listeners must be associated with automation programs that do not contain interactive steps
- Client-triggered listeners (such as entering application, entering module) can contain interactive logic
- Automation and scripts in listeners execute within the same transaction (except for sending notifications and client-triggered ones); exceptions will cause transaction rollback

