Closing the bot on iOS after the end of the flow

I can see we have the closeBot() from this doc

How can I trigger this when a specific flow ends or when we reach a specific node?

Hi @gautham

You can initiate an event at the end of the specific flow and will receive a callback in
onEventFromBot(_ response: YMBotEventResponse) function of YMChatDelegate, in which you can add the closeBot()

1 Like