EventConfig system enable Agents to detect intention and drive conversations towards relevant topics as well as to provide output and request additional context from your systems via HTTP webhooks.
Each EventConfig defines the condition that trigger the event, the payload sent to your webhook, and how the Agent should handle the response. Event will only be created when the conditions defined in the description and required data defined in the EventConfig are met. An Agent can have multiple EventConfigs to handle different scenarios.
An EventConfig can be specified to operate in either synchronous or asynchronous mode, i.e whether the Agent should wait for a response from your system before proceeding with the conversation.
An EventConfig with stopConversation set to true will mark the Thread as doNotProcess after the event is triggered, preventing any further interactions.
Key Capabilities
- Provide a structured way to influence
Agentbehavior and conversation flow. - Detailed description and structure schema guarantee Event payload consistency.
- Determine if an incoming email is “out of scope” and should not be processed.
- Sync mode to supplement
Agentwith additional context before proceeding. Async mode to notify external systems without waiting for a response.
EventConfigs via the API or the Dashboard.
Attributes
EachEventConfig is configured with the following attributes:
id: stringagentId: string- The ID of theAgentthis configuration belongs todisplayName: string- Human-readable namekey: string- Unique key for referencing thisEventConfigdescription: string- Description of what thisEventConfigrepresents, its purpose, and when it should be triggered.schema: JSON- The JSON schema describing the expected payload when this event is triggeredwaitForResponse: boolean- If true, theAgentwill wait for a response before proceedingstopConversation: boolean- If true, theThreadwill be stopped after this eventisActive: boolean- Whether thisEventConfigis currently activecreatedAt: Date- Timestamp when theEventConfigwas createdupdatedAt: Date- Timestamp when theEventConfigwas last updated
Example
ThisEventConfig will produce the following Event with the specified schema if a user reach out to schedule an appointment. When the Agent detect the relevant Event that can be triggered (appointment_request) and all required data are provided, an Event will be extracted to be sent to your system as webhooks. If an detected relevant Event is still missing required data, the Agent will continue to steer the conversation to collect the missing information.
EventConfig is triggered, an Event will be created with the following structure: