Set the ButtonId input parameter with the previously added Button/Link, IsOpen with the previously created local variable and fill the widget placeholders Header and Content with any content
Set the previously created confirm logic to the OnConfirm event handler, and change the flag to close the popup in the OnCancel event handler
After completed the previous 8 steps you have your confirmation message ready to use!