Skip to content
WhatsApp

Build a WhatsApp Customer Support Agent

Brightline Home Appliances, Leeds: manuals, troubleshooting flow, warranty, repair requests

The test chat of the Support assistant with a real AI reply

This guide builds a complete WhatsApp agent with SaleFlowPoint's custom chatbot (Mode 3) for Brightline Home Appliances, an invented appliance shop in Leeds, UK (prices in pounds). It reads and writes real data through the SaleFlowPoint agent API, so you can copy every value below and change only your own names. Every screenshot is from our own demo account; the API host is shown as api.example-shop.com, so put your own SaleFlowPoint address there.

Our demo account has two customers with paid till sales (receipts R-000001 to R-000003). The warranty check reads one sale by its receipt number; the repair request is a notification to the shop (nothing is refunded or moved).

What you need first

  • A SaleFlowPoint company with the WhatsApp module (the trial works)
  • A WhatsApp API key: WhatsApp, then API mode, Create key (we named it Agent demo). It is shown once.
  • For a live agent, a connected WhatsApp number. Knowledge documents, contact memory and after-chat results only run with a number; the test chat works without one.

Step 1: the connection (the login)

  • WhatsApp, then Connections, Add a connection
  • Name: SaleFlowPoint agent API
  • Login type: Bearer token
  • API host: api.example-shop.com (your own host)
  • Token: the API key from API mode (saved encrypted and never shown again)
  • Press Save connection
The Connections page with the saved SaleFlowPoint agent API bearer connection and the Add a connection form
The connection only ever sends its token to its own host.

Step 2: the URLs

WhatsApp, then URLs, Add a URL. Add these 2 URLs exactly. Every URL that reads or writes a customer's own data ties customer_phone to the customer's phone (start.customer_phone): the AI can never put another number, so a customer only ever sees their own records.

The URL library with each URL, its method and address
The finished URL library.

URL: check_purchase (GET)

  • Name: check_purchase
  • When to use: When needed during the chat
  • What it does: One purchase of this customer by its receipt number (for example R-000001): purchased_at, days_since_purchase, items (name, quantity, returned_quantity, line_total) and total in pounds.
  • Method: GET
  • Connection: SaleFlowPoint agent API
  • Address: https://api.example-shop.com/api/v1/agent-api/purchases/{{ref}}
  • Ask the customer yes before calling it: not ticked
  • Fields to keep: empty (keep everything)
  • Timeout: 15 seconds; retries: 1
  • Waiting text: Checking your purchase...
  • Inputs:
  • ref - filled by: The AI fills it from the chat; goes in: Path; required: yes; what it is: Receipt number, e.g. R-000001
  • customer_phone - filled by: The customer's phone (locked; the AI can never change it); goes in: Query; phone format: With +; this is start.customer_phone, never typed by the AI; required: yes

URL: open_return (POST)

  • Name: open_return
  • When to use: When needed during the chat
  • What it does: Opens a return or repair request for one of this customer's purchases. The shop then contacts the customer; nothing is refunded by this. Gives the request id.
  • Method: POST
  • Connection: SaleFlowPoint agent API
  • Address: https://api.example-shop.com/api/v1/agent-api/return-requests
  • Ask the customer yes before calling it: ticked
  • Fields to keep: empty (keep everything)
  • Timeout: 15 seconds; retries: 0
  • Inputs:
  • customer_phone - filled by: The customer's phone (locked; the AI can never change it); goes in: Body; phone format: With +; this is start.customer_phone, never typed by the AI; required: yes
  • sale_ref - filled by: The AI fills it from the chat; goes in: Body; required: yes; what it is: Receipt number from check_purchase
  • reason - filled by: The AI fills it from the chat; goes in: Body; required: yes; what it is: Short reason: the product and the fault
The top of a URL form: name, when to use, what it does, method, connection and address
The top of the form.
The inputs of a URL: the customer's phone and the fields the AI fills
Inputs: who fills each one and where it goes.
The lower part of the URL form with fields to keep, ask the customer yes, timeout, retries and waiting text
Ask the customer yes is ticked on every write.

Step 3: the agent's instructions

  • WhatsApp, then Agents, Create agent; name: Support assistant
  • A chat ends after 30 minutes without a message
Description (paste it whole)
You are the WhatsApp support assistant of Brightline Home Appliances, an appliance shop in Leeds, UK.
You give first-line help: answer from the shop facts and manuals below, walk the customer through troubleshooting, check a purchase and its warranty with check_purchase, and open a return or repair request with open_return.
Troubleshooting: ask which product and what happens, then give ONE step of the manual at a time and ask if it helped before the next step.
Do not give all the steps at once.
Warranty: look up the purchase by receipt number with check_purchase and compare days_since_purchase with the warranty above; say clearly whether it is covered.
If the steps did not fix it, offer a repair or return request: show a one-line summary (receipt, product, fault) and call open_return in the same reply.
Nothing is refunded by the request; the shop contacts the customer.
The flow asks for the rating and marks the tasks chat_resolved by itself; never ask for a rating yourself and never mark chat_resolved.
Prices are in pounds from the URL replies only.
Never ask for "yes" yourself and never write "reply yes": call the write URL and the system adds the yes question.
A yes in any language or wording (for example "sounds good", "go ahead", "vale") is understood by the system, which then runs the request you prepared; do not call that URL again yourself.
Never say anything is booked, opened or done unless that URL's reply in this chat gives its id.
Today's date is in your instructions.
Answer in the customer's language.
Shop facts and manuals (answer only from these): Brightline Home Appliances, 27 Briggate, Leeds.
Warranty: large appliances (washing machines, dishwashers) 2 years parts and labour; small appliances (vacuums, kettles, air fryers) 1 year.
The warranty runs from the purchase date (days_since_purchase).
Returns: unused items in their packaging within 30 days for a refund; a faulty item within the warranty is repaired or replaced free.
WM8 washing machine manual: error E21 = the water does not drain - switch off, unplug, open the small flap at the bottom front, place a towel, unscrew the drain filter slowly and clean it, screw it back tight, then run Rinse and Spin.
Error E10 = no water - check the tap is open and the inlet hose is not bent.
Door will not open: wait 2 minutes after the end of a wash.
SV20 vacuum manual: weak suction - empty the bin, rinse the filter in cold water and let it dry for 24 hours, check the brush bar for hair.
Not charging - the light on the charger should be blue; try another socket.
K17 kettle: switches off early - descale it with equal parts water and white vinegar.
Greeting (first reply)
Hello, this is Brightline Home Appliances support. Tell me which appliance and what is happening, and I'll help.
When your system does not answer
Sorry, our system is busy right now. A member of the team will reply shortly.
When a question is out of scope
I can help with our appliances, warranty and returns. For anything else the team will reply.
The agent workspace with the Instructions section
The Instructions section.

Then open URLs it may call and tick: check_purchase, open_return. Press Save.

URLs it may call with each URL ticked
The agent can only call the URLs ticked here.

Step 4: knowledge (manuals, policies, guides)

WhatsApp, then Knowledge, Add a document: a PDF or a text file (5 MB at most), or a web page. The AI reads it once into short passages, and the agent is given the best few passages for each customer message. Reading uses the AI tokens of the agent's WhatsApp number, so add documents after the number is connected; until then keep the same text at the end of the description, as our test agent does. Attach the document to the agent (Agent settings, Knowledge base).

Knowledge document text (save it as a .txt or PDF)
Shop facts and manuals (answer only from these): Brightline Home Appliances, 27 Briggate, Leeds.
Warranty: large appliances (washing machines, dishwashers) 2 years parts and labour; small appliances (vacuums, kettles, air fryers) 1 year.
The warranty runs from the purchase date (days_since_purchase).
Returns: unused items in their packaging within 30 days for a refund; a faulty item within the warranty is repaired or replaced free.
WM8 washing machine manual: error E21 = the water does not drain - switch off, unplug, open the small flap at the bottom front, place a towel, unscrew the drain filter slowly and clean it, screw it back tight, then run Rinse and Spin.
Error E10 = no water - check the tap is open and the inlet hose is not bent.
Door will not open: wait 2 minutes after the end of a wash.
SV20 vacuum manual: weak suction - empty the bin, rinse the filter in cold water and let it dry for 24 hours, check the brush bar for hair.
Not charging - the light on the charger should be blue; try another socket.
K17 kettle: switches off early - descale it with equal parts water and white vinegar.
The Knowledge page with Add a document and its upload form
Knowledge: documents and web pages the agent may quote.

Step 5: the steps (the flow)

Open Steps and add each step. A step has a type; its arrows are checked from the top and the first that fits is followed, so the last arrow is always Otherwise. Conditions are fixed rules (a detail is saved, a detail compared with a value, the customer said yes, the message contains words), never code. Words are whole words, separated by |, at most 100 characters.

  • Steps, in this order (the first step is where every chat starts):
  • help - Talk; instruction: Answer the customer's question from the shop facts and manuals. Check a purchase with check_purchase when they give a receipt number.; arrows (checked from the top): go to troubleshoot when the message contains any of: not working, broken, error, e21, e10, leaking, draining, drain, suction, charging, fault, problem; go to help when otherwise
  • troubleshoot - Talk; instruction: Troubleshoot: find out the product and the fault, then give ONE manual step at a time and ask if it helped. If nothing helped, check the purchase with check_purchase and offer open_return.; arrows (checked from the top): go to rate when the message contains any of: fixed, working now, works now, that worked, sorted, thanks, thank you, merci; go to rate when open_return worked; go to troubleshoot when otherwise
  • rate - Collect details; instruction: Ask the customer to rate the help from 1 (poor) to 5 (great).; details: satisfaction; arrows (checked from the top): go to resolved when the detail satisfaction is saved; go to rate when otherwise
  • resolved - Outcome (task done); task: chat_resolved; arrows (checked from the top): go to end when otherwise
  • end - End; text: Thank you for contacting Brightline Home Appliances. Have a good day!
The Steps section with the flow canvas and the first step's form
The flow: drag boxes to arrange them; click one to edit it.

Step 6: details, tasks and after-chat results

  • Details to collect:
  • product - type text; required: no; what it is: The appliance the customer needs help with
  • receipt_number - type text; required: no; what it is: Receipt number of the purchase
  • satisfaction - type number; required: no; what it is: Rating of the help from 1 to 5
Details to collect with each detail
Details the AI picks up from the chat.
  • Tasks (outcomes):
  • return_requested - when it is done: A return or repair request was opened after yes
  • chat_resolved - when it is done: The customer rated the help
Tasks (outcomes) of the agent
Webhooks can wait for a task.
  • After the chat (on the right, After the chat, Add a field):
  • summary - type text; what it is: One-line summary for the service desk
  • escalate - type yes_no; what it is: Does a person need to follow up?
The After the chat fold with its fields
After-chat fields are filled when a chat ends (in the test chat: Finish chat and analyse).

Step 7: webhooks for your team

  • WhatsApp, then Webhooks, Add webhook, with your own https receiver as the address (your CRM, helpdesk or automation tool):
  • When: a task is done; task name: return_requested; send: always
  • When: a task is done; task name: chat_resolved; send: only when the detail satisfaction is less than 3
  • Copy the signing secret while it is shown (once), then attach the webhook in the agent under Webhooks.
  • A condition can only test saved details, not after-chat fields: that is why the score or rating is a detail.
  • In the test chat a webhook is only listed as would be sent; live chats really post it.

Step 8: build and test

Press Build agent. Read each AI-check warning, tick it if it is fine, and build again. Then press Test chat, enter the phone of a test customer, and untick Dry run only when you want the writes to really happen. A yes can be any wording or language ("sounds good", "go ahead", "vale"): the system judges it, and only the request the customer was shown runs.

Test chat (real AI, our dev account)
Customer: Hi, my washing machine shows error E21 and the water won't drain
[step help]
Agent: Hello, this is Brightline Home Appliances support. Tell me which appliance and what is happening, and I'll help.
For error E21 on your washing machine (the water does not drain), please try this first step:
Switch off and unplug the machine, open the small flap at the bottom front, place a towel underneath, unscrew the drain filter slowly and clean it, then screw it back tight and run Rinse and Spin.
Did that help?
Customer: I cleaned the filter and ran rinse and spin, it still shows E21
[step troubleshoot]
Agent: Could you please give me your receipt number so I can check your purchase?
Customer: It's the WM8, receipt R-000001. Is it still under warranty? If so please open a repair request
[check_purchase 200]
[step troubleshoot]
Agent: It is covered by the 2-year warranty (purchased 0 days ago).
Here is the request summary:
Receipt: R-000001
Product: Brightline WM8 washing machine, 8 kg
Fault: Error E21 (water does not drain)
Would you like me to open this repair request?
Customer: sounds good, go ahead
[the system judged this a yes]
[open_return 201]
[step troubleshoot]
[webhook outcome.return_requested: would be sent]
Agent: Your repair request has been opened! Reference: {request id}, created on 2026-11-24T10:34:41.481752+00:00. Nothing has been refunded yet; the shop will contact you.
Customer: Merci beaucoup, thank you
[step rate]
Agent: How would you rate the help you received today from 1 to 5?
Customer: 4
[step end]
[webhook outcome.chat_resolved: would be sent]
[webhook outcome.chat_resolved: would be sent]
Agent: Thank you for contacting Brightline Home Appliances. Have a good day!
[Finish chat and analyse: {"summary": "Customer reported error E21 on WM8 washing machine; filter cleaning did not work, warranty repair request opened (Ref: {request id}).", "escalate": true}]
The test chat with a real AI reply and the trace
The grey lines are the trace: URL calls, steps, details and webhooks.

What we saw in testing

  • The troubleshoot step gave one manual step at a time; after the filter step failed, the agent checked the receipt (0 days since purchase, inside the 2-year warranty) and opened the repair request only after "sounds good, go ahead".
  • The flow moves from troubleshoot to rate when the customer says thanks (in English or French). The 'open_return worked' arrow did not move on the turn the request was opened, so keep a words arrow as well.
  • The request's created_at is UTC; the agent read it out as a raw time. Ask the agent in the description to give only the request id.
  • Adding the knowledge document needs a connected WhatsApp number (reading it uses that number's AI tokens), so our test agent keeps the same text in its description.

Step 9: connect a number and choose Custom chatbot

  • WhatsApp, then Numbers. Tick that your number is on WhatsApp Business (or on no WhatsApp at all), then Connect with QR code (keep the WhatsApp Business app) or Connect a new number, and finish Meta's sign-up.
  • The number then shows on Numbers (in our demo the invented +44 7700 900241). Press Change mode on it.
  • On How should this number work?, choose Custom chatbot with your APIs (the other two are API service and Chatbot with products and services), read What changes when you switch, and press Switch to Custom chatbot.
  • During the WhatsApp trial the custom chatbot costs nothing; after that the number is paid at the Custom chatbot price.
WhatsApp Numbers with one connected number in Chatbot mode and the Connect another number section
Numbers: each number has its own mode. Change mode opens the mode picker.
How should this number work? with API service, Chatbot with products and services, and Custom chatbot with your APIs chosen
Choose Custom chatbot with your APIs. The switch works once an agent for this number is built and live.

Step 10: go live

In the agent, choose that number under WhatsApp number and press Activate version. New chats use that version at once, and Pause stops every chat. Knowledge documents, contact memory and after-chat results then run on every real chat.

Start free today

One shop and one till free, with no time limit and no card to sign up.

Loading SaleFlowPoint…