Workflows
Tell the AI agent which requests from people to record for your team, and what details to collect.
What it does
Workflows tell the AI agent which requests from people to record for your team and what details to collect for each one.
When to use it
Create a workflow for any enquiry that needs staff action, such as changing an order, requesting a callback, entering a competition or registering interest.
Once a workflow exists, the AI agent:
- Answers from the knowledge base first, and records nothing when a reply is enough.
- Chooses the most specific workflow that matches the request, and asks the person if it is unclear which one applies.
- Records what they have already given straight away, then fills in the remaining details as they reply.
- Tells them once that someone will be in touch, without repeating the promise for every new detail.
If you have no workflows at all, the AI agent still answers from the knowledge base and your store's products, but never promises that anyone will follow up.
Steps
- Open Conversations → Workflows and select New workflow.
- Enter a Name. It must be different from every other workflow name.
- In AI instructions, explain when this workflow applies and how to handle it, such as which question to ask first, whether to ask one question at a time and what to offer. The AI agent reads this when deciding which workflow fits a message and follows it while gathering the details, so be specific.
- Under Captured details, select Add detail for each answer you need. Fill in the Name, check the Key, choose the Type (Text, Number, Yes or no or Photo) and, in AI instructions, say what the AI agent should ask for.
- Optionally, try the workflow in the phone preview beside the form before you save it (see Try a workflow).
- Select Create workflow.
To check how the AI agent handles all your workflows together, open it under Conversations → AI agents and chat in the phone preview; see Preview an AI agent.
To change a workflow later, open it from Conversations → Workflows, select Edit, make your changes and select Update workflow.
Archive a workflow
Archive a workflow once you have finished with it, such as a competition that has closed. The AI agent stops using it, so it no longer records that kind of request, and the workflow leaves the main list. Submissions already recorded remain available.
- Open the workflow from Conversations → Workflows and select Archive.
- Select Archive again under Archive workflow? to confirm.
To see archived workflows, choose Archived from the filter at the top of Conversations → Workflows; choose Active to go back. Opening an archived workflow shows when it was archived, its details and its submissions. To use it again, select Restore: it returns to the active list and the AI agent picks it up straight away.
Try a workflow
The phone preview lets you chat with the AI agent as a customer would on WhatsApp, to check that it records the workflow when it should and asks for the right details. Nothing is sent or saved. It appears beside the form when you create or edit a workflow, and on the workflow's own page.
- Type in Test a reply from the person… at the bottom of the phone, such as the kind of request the workflow is for, and press Enter or select the send arrow. For a Photo detail, select Add a photo beside the message box and send an image, with a caption if you like.
- Read the reply. When the AI agent would record the workflow, a line above its reply shows Would record with the workflow name and the details it set. Later messages show Would update as the person gives more. Select the line to see every detail collected so far, including the photos it would attach.
- While creating or editing, change the AI instructions or Captured details and send another message: each message uses the workflow exactly as it is in the form, even before you save it. Select the Start again arrow at the top of the phone to clear the chat.
- Select Scenario to choose the channel, account, messaging consent or a campaign the person is replying to. These work as in Preview an AI agent.
Your other workflows and knowledge base take part as normal, so you can also check that the AI agent picks the right workflow when several could apply.
What you'll see
Conversations → Workflows lists your active workflows with their Name, AI instructions, the number of Captured details and when each was last Updated. Before any workflow exists the list shows No workflows yet. With the filter set to Archived it lists archived workflows instead, or No archived workflows. if there are none.
Opening a workflow shows its AI instructions, a Captured details table of every detail with its name, key, type and AI instructions, and Recent submissions with the ten most recent requests. Select View all to open the full list in Submissions, filtered to that workflow. Until the workflow has had a reply the card shows No submissions yet. and View all is unavailable. Once there are more than ten, the card notes Showing the 10 most recent submissions. A workflow with no details shows No details captured — the AI agent only records that this workflow happened.
If something goes wrong
- The Create workflow or Update workflow button is greyed out: the form will not submit until Name and AI instructions are filled in and every row under Captured details has a name and a valid key. A row missing its name shows Enter a name. under the box; fix it, or remove the row with the cross at the end.
- A workflow will not save: after you select Create workflow or Update workflow the reason appears beside the button. A workflow with this name already exists. means you need a different Name. Each captured detail needs a different key. means two details share a Key. Please complete the name, AI instructions and captured details. means a required box is empty. This workflow is no longer available. means the workflow was archived while you were editing it; find it under Archived, select Restore and edit it again. Unable to save this workflow. Please try again. means the save did not complete; try again, and if it keeps happening contact your onboarding manager.
- A key is rejected: Use lowercase letters, numbers and underscores, starting with a letter. means the key uses characters that are not allowed. This key is reserved. means you must pick another word; see reserved keys below. Another detail already uses this key. means you need to make it unique within the workflow.
- The AI agent records the wrong kind of request: make the AI instructions say more precisely when the workflow applies, and review workflows whose instructions overlap. The AI agent picks the most specific match, so a catch-all workflow should say that it only applies when nothing else fits.
- The AI agent records nothing for a genuine request: check that a workflow covers it, or that Human handoff is enabled. Without a matching workflow the AI agent answers but does not promise staff follow-up.
- The AI agent does not follow a workflow's AI instructions: they can set the order and pace of questions, the tone and what to offer, but cannot make the AI agent claim to be a person, promise when your team will act, say an order is confirmed, ask for card details, passwords or codes, or state facts that are not in your knowledge base or instructions.
- The AI agent keeps asking for details the person already gave: check each detail's AI instructions describe one clear piece of information each, and remove details you do not really need.
- A workflow will not restore: Another workflow already uses this name. Rename or archive that workflow, then restore this one. means an active workflow has the same Name. Change that workflow's name, or archive it, then select Restore again.
- You can't type in the phone preview: it says Complete the name, AI instructions and captured details to try this workflow. until the form could be saved.
- Still stuck: contact your onboarding manager.
Captured details
Captured details are the pieces of information the AI agent records for a workflow, such as a business name, a quantity or whether a site has power.
- Name is what your team sees on the submission, up to 80 characters.
- Key is what the detail is called in the submissions export: the column heading comes from the key, not from the name, so changing a key starts a new column and earlier answers stay under the old one. It is filled in from the name as you type and you can change it. Use lowercase letters, numbers and underscores, starting with a letter.
- Type is Text, Number, Yes or no or Photo.
- AI instructions tell the AI agent what to ask for, up to 500 characters. Leave it blank and the AI agent uses the name.
A Photo detail asks the person to send a photo in WhatsApp, such as a shelf display or a damaged delivery. The AI agent attaches the photos they send to the submission, where your team can open them. If they send more photos for the same detail later, they are added alongside the earlier ones. Use AI instructions to say what the photo should show. To test a photo detail, send photos in Try this workflow.
A workflow can reuse answers someone gave in a WhatsApp flow, such as the reward they chose on a campaign's form. Add a detail for each answer and use AI instructions to say which answer it comes from. The AI agent copies the answer when it records the workflow, without asking again. Completing a WhatsApp flow never records a workflow by itself: the workflow still has to apply, or the person has to ask for something your team must do.
You can add up to 30 details to a workflow; Add detail stops adding once you reach the limit. Use the cross at the end of a row to remove a detail.
Leave the list empty for a workflow that only needs to note that something happened, such as a competition entry. The AI agent then records the submission without asking any questions.
On a submission, answers appear in the order the details are defined, with a dash for anything the person has not given yet. Renaming or removing a detail does not change submissions already recorded; their earlier answers stay visible.
Reserved keys
submission, campaign, images and flow_token cannot be used as a key. If you enter one, the form shows This key is reserved. and the workflow will not save until you change it.
Link a workflow to a campaign
When you schedule a campaign you can pick a workflow under Workflow (optional), as a hint for the replies the campaign invites, such as a competition entry or a registration of interest. When the AI agent records a submission for a reply to that campaign it links the submission to the campaign, so the sent campaign page shows the responses it received.
The hint is not a restriction: the AI agent still picks whichever workflow fits the reply, and it can record a response to a campaign that has no workflow attached. You can attach the same workflow to several campaigns, and the AI agent uses the conversation to work out which campaign the person is replying to.
See Scheduled campaigns and Sent campaigns.
Human handoff
Human handoff is the fallback workflow that lets the AI agent pass a request to your staff when no other workflow covers it, for example to place or change an order or to speak to a person.
If it is not set up, Conversations → Workflows shows Human handoff isn't enabled with Enable human handoff. Selecting it creates the workflow with ready-made AI instructions and a single Summary detail, both of which you can edit like any other workflow. Workflows apply across all of your company's WhatsApp channels.