When you configure a webview in your chatbot, you specify which passage it should go to when the webview closes.
In the webview code, you can tell the chatbot to open a different passage instead by overwriting the next_passage variable.
nextPassage.passageId = 'abcdef';
You’ll need the passage ID of the new passage you want to go to. You can find the Passage ID by opening the passage in the chatbot conversation flow and looking at the URL.