Lifecycle hooks
Trigger general actions at the start, end, or escalation point of a conversation in NLX's Dialog Studio
What's a Lifecycle hook?
Lifecycle hooks act in a very similar way to Actions in that they enable you to define an external operation that's triggered during a conversational flow. There are, however, a few major differences between them:
Lifecycle hooks are only executed during specific points in a conversation: at the start of a conversation, at an escalation point within the conversation, at the end of a conversation, or to stream state modifications made to Data requests. Actions, on the other hand, allow you to be granular about when and where to deploy, but if Actions were used to modify a Data request, their call must be resolved before the NLU can proceed with the conversation
Lifecycles are attached to a bot rather than referenced in an intent flow, which is why you don't usually encounter them when building in the Canvas
Need more context? See Bot lifecycle
Requirements
A lifecycle hook must always employ the following to function:
Lifecycle hooks features
ImplementationLifecycle hook settings
Your lifecycle hook's Settings tab allows you to add or edit optional descriptors and enable a few behaviors:
To delete a lifecycle hook, select the Delete option under Danger zone. If the lifecycle hook is assigned with a bot, remove the lifecycle hook, and create a new bot build/re-deploy to experience the change.
Last updated