Workflows
How a guided workflow collects details and how it finishes.
A guided workflow collects required details one question at a time. A question can offer buttons to tap. A button label is at most 25 characters, and a message has at most 11 buttons.
Before it changes anything, such as a booking, it asks the customer to confirm. The same visit is not created twice. A repeat returns the first result.
If it cannot finish, it uses the business's approved closing message. That message does not ask a question and does not promise that a person will follow up.
An appointment workflow can record a request, or book on a calendar when one is connected. Request mode records the lead. Book mode uses the calendar only when that connection is configured.
When a workflow completes, MessageOS can send workflow.completed. The data is workflowId, runId, contactId, resultRef, completion (book, request, or form), and fields, the answers collected except ones marked sensitive. It does not include the message text.
A workflow runs only when it is switched on for that business. Otherwise the usual assistant answers.
A workflow is run by the assistant. An agent whose own system answers has no assistant, so no workflow runs for it and it never gets workflow.completed.
