Lifecycle hooks
Trigger general actions at the start, end, or escalation point of your NLX conversations
Last updated
Trigger general actions at the start, end, or escalation point of your NLX conversations
Last updated
Lifecycle hooks act in a similar way to Actions in that they enable you to define an external outbound 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 be triggered within a flow
Lifecycles are attached to an application rather than referenced in an intent flow, which is why you don't encounter them when building in the Canvas
To access lifecycle hooks, click Resources in your workspace menu and choose Lifecycle hooks:
Need more context? See Application lifecycle
A lifecycle hook must always employ the following to function:
The Settings tab provides a few options:
Description: Enter or modify an explanation of the resource for better filing and organization in the workspace
Tags: Add or remove Resource tags for better filing and organization in the workspace
To delete a lifecycle hook, select the Delete option under Danger zone. If the lifecycle hook is assigned with an application(s), remove the lifecycle hook, and create a new application build/re-deploy to experience the change.