Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The callback can be invoked by multiple actions that you define in the package , you will receive in the post body a conversationMemorySnapshot which is the model that has all information about the current conversation that invoked this callback, we will go through a step by step example to show you how callbacks work.

...

id(String) id of the conversation
botId(String) id of the bot
botVersion(String) version of the chatbot
environment(String) bot environment e.g: restricted, unrestricted
conversationState

(String) enumeration values :

READY,
IN_PROGRESS
ENDED
EXECUTION_INTERRUPTED
ERROR

conversationSteps(Array of conversationStep) History of the conversation


Info
titleImportant note

Callbacks does not have a store like the other extensions e.g : http calls, behaviorSet, regularDictionaries,etc..

Step by step example :

We will do a step by step example from scratch (chatbot creation to a simple conversation that uses a callback)

...