Once a workflow has been created in the Workflow Editor, you can use the Set Workflow control to trigger the workflow after a particular action or reaching a particular page in the script, in order that follow on activities are carried out:
The Reset Workflow will reset the workflow, starting it again from the first action.