Let the assistant work inside your app or back office
Client tools: screens, actions and approvals.
Your assistant can also work inside your app or back office. It opens a screen for the shopper, reads what is on it and does things for them, such as changing a setting or saving a draft. Your developer connects each action to your app; you decide which actions exist and which ones need the shopper's approval.
What it can do
- Open screens in your app, for example the order page or the product editor.
- Read what is on the screen, so it can answer "why is this price wrong?" without asking the shopper to copy anything.
- Do things for the shopper, with their own permissions. It never uses a special admin key.
Anything risky waits for a decision. The shopper sees an Approve / Not now card that shows what the assistant wants to do, and nothing runs until they press Approve.
What to set up
- Open Settings → Client tools and add a tool. Give it a short name (for example
openOrder) and a description of one sentence: when should the assistant use it? - For publishing, deleting or sending, tick Ask the visitor to approve. The card then appears before the action runs.
- Open Settings → Max tool steps per reply. The default is enough for one or two actions. Raise it if the assistant needs to visit several screens to finish a task.
What to ask your developer
- To register one handler per tool with
Helpvane.registerTool. The handler is a function in your app that performs the action and returns a short result. - To send the current screen with
setContext, for example the page name and the item id, so the assistant knows where the shopper is before it acts. Send the product (with its stock) and the cart with every message: the assistant then answers "is this in stock?" and "what is in my cart?" from what you sent for that message, not from earlier in the chat or from the cart badge on the page.
Your developer can find the details in the developer docs under Client tools.
Tips for good tool descriptions
- Say when to use the tool, not only what it does: "Open the order page when the shopper asks about an order they placed."
- Name the inputs in plain words: "Needs the order number."
- Keep one job per tool. Several small tools are easier for the assistant to choose from than one large tool.
- Mark anything that changes data, sends a message or spends money as needing approval.
- Test with the chat yourself before you let shoppers use the tool.