Skip to content

End callback

The handleEnd prop is called when a step with end: true runs. It receives the values of the steps in order, the steps by id and the renderedSteps. See the ChatBot reference for more.

  • handleEnd stores the values in the state of the component, which renders them below the chatbot.
  • Use steps instead of values to read an answer by the id of its step, like steps.name.value.
  • This is where you would send the answers to your server.