Lifecycle hooks

Trigger general actions at the start, end, or escalation point of your NLX conversations

What's a Lifecycle hook?

Lifecycle hooks act in a very 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 a bot rather than referenced in an intent flow, which is why you don't 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

Implementation

Lifecycle hook settings

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 a bot, remove the lifecycle hook, and create a new bot build/re-deploy to experience the change.

Last updated