UI Builder workflows are designed to move in a single direction, with context building progressively as the conversation advances. However, there may be scenarios where you need to repeat certain steps within the flow.
While duplicating those steps in a separate branch is possible, doing so can make the workflow unnecessarily large and harder to manage. A more efficient approach is to copy the repeatable steps into a new dialog and then link to that dialog from within the conversation as needed. This keeps your flow streamlined and easier to maintain. Here’s how:
- In the Design pane, select the portion of your workflow that you want to repeat. Copy to the clipboard.
- At the place in the workflow where you want the steps repeated, select the plus sign, then Dialog Management, and then Begin a New Dialog.
- In the Details pane, click in the Dialog Name field and then select the Create a New Dialog option. In the pop-up dialog, enter the name of the dialog (no spaces) and choose OK.
- In the List pane, select the newly created dialog. In the Design pane, click on the plus sign and then select Paste.
- At the end of the workflow, add an End Dialog activity.
- Save your changes.
Please see this video for instructions:
https://vimeo.com/523911959/37abb2d0d9