Lifecycle hooks
Trigger general actions at the start, end, or escalation point of your conversations
This feature is currently available to enterprise tiers only.
What's a Lifecycle hook?
Lifecycle hooks let you send or receive data or trigger an event at key stages of a conversation session. They’re useful for passing information between NLX and external systems or for setting context variables when a session begins. Unlike Data requests or Actions that operate within flows, Lifecycle hooks are attached at the application level. They execute automatically at defined points in the conversation lifecycle:
Conversation start: Initialize data or set context variables
Conversation escalation: Send or receive data during a handoff
Conversation end: Finalize data or trigger follow-up actions
Stream state modifications: Transmit updates from Data requests in real time
To access, click Resources in your workspace menu and choose Lifecycle hooks:
Requirements
Implementation
The Implementation section defines how your lifecycle hook runs. Depending on the lifecycle stage you’ll configure in your custom application, it will either send a request to an external webhook or return a static JSON response when triggered.
Static mode
Choose to define a fixed JSON response. Ideal for prototypes or quick testing. Simply enter the response and click Save
External mode
Choose to integrate with an endpoint. Enter URL + optional custom headers. Use the CloudFormation template in the Instructions section and click Save
Last updated

