This feature is enabled per workspace. Email us to turn it on.
A policy is the procedure you’d hand a new teammate for one kind of request. Ask for the order number. Always mention the 30 day window. Refund under 30 days, store credit up to 60, decline past that. Write that once in Policies and the Chat Widget agent follows it step by step whenever a customer opens that subject, in the widget or through the Chat API.
Without a policy the agent answers from your knowledge base and picks its own way through the conversation. That’s right for “how do I export a report”. Refunds and cancellations are different: the wording and the order of the questions are the process, and you want them the same every time.
Open Configuration → Policies.
Only organization administrators can open Policies.

Creating a policy
Click New policy. You land on a blank policy, switched off so it can’t reach a customer while you write it. Give it a name, then fill in the rows under it:- When: the trigger phrases that bring the policy into play. See Triggers and Matching.
- Widgets: which chat widgets the policy runs on. See Widgets.
- Tools: what the agent may look up or call while following the policy. See Tools.
- Description: one line on what the policy covers.

Writing instructions
The instructions are one text box. Each paragraph is a step, and the agent works through them top to bottom. A plain paragraph is a numbered procedure the agent follows. To give a step a different job, type@ at the start of it and pick a tag.
For If, Else if, Escalate when, and Resolve when, the first line after the tag is the condition and the lines below it are what to do. Press Enter on an empty line to finish a tagged step. Click a tag to change or remove it.
The
@ menu also lists your tools. Pick one to add a step that calls it at that point, and write when and how to use it on the lines after.

Writing steps the agent can follow
Use If followed by Else if when only one of the conditions can be true. Under 30 days, 31 to 60, over 60: that’s one If and two Else if steps, not three separate If steps. Keep each condition to a short label of a few words, the way you’d tab a folder. “Order over 60 days”. “Damaged on arrival”. What to do about it goes on the lines below, never in the condition. Condition text isn’t written for customers, so don’t put anything in a policy you wouldn’t want a customer to read. Then cut. A handful of steps that each carry a real decision beat a long list of small ones. Read the result top to bottom: that’s the order the agent works in. The agent speaks in your chat widget’s tone and voice. Where the two disagree, the policy wins, so a short default tone won’t make it skip an Always mention topic.Triggers and matching
Triggers are phrases in your customers’ words, not your internal ones:refund, money back, return, cancel my order. Click Add phrases under When and type one, or several separated by commas.
Decimal reads each conversation against the triggers, description, and steps of every active policy, and applies one only when the match is clear. When nothing matches clearly, the agent answers as it normally would.
That check runs on every message, so a chat that opens with “hi, quick question” picks the policy up two messages later once the customer says what they want. One policy applies at a time. Keep policy scopes apart: overlapping policies make matching less reliable.
To see whether a policy fired, open Conversations. A policy icon sits beside the title of every conversation where one applied, and hovering it names the policy. The Policy filter narrows the list to conversations with or without one.
Widgets
A new policy runs on All widgets. To limit it, open Widgets and tick the ones it should run on. A widget that isn’t ticked never sees the policy. The Chat API only sees policies set to All widgets.Tools
Tools decides what the agent may use while following the policy. With none, it works from the policy text alone and cites nothing.- Search knowledge base: look articles up and cite them in the reply.
- Read public code: search your public code repositories. Needs a public repository connected.
- Check system status: read your status page. Needs your status page connected. Email us to set it up.
- MCP tools: tools from your connected MCP servers, grouped by server. Customers can see what these tools return.
@ menu adds that tool to the list for you. Removing a tool that steps still use asks first, then removes the tool and those steps together.
Signed-in visitors
A policy with any MCP tool or custom tool needs to know who the customer is, so it runs only for visitors your widget has signed in through identity verification. The policy shows Signed-in visitors on its page and in the list. A signed-out visitor who asks about the same thing gets the agent’s normal answer instead. If a widget the policy runs on doesn’t verify visitors, Widgets warns you that the policy won’t run there.Testing a policy
Open the playground panel with the toggle in the page header, or ⌘ J. On Policies and on a policy’s page it opens on Simulate, which runs the real Chat Widget agent without saving anything or reaching a customer. Pick a widget and send a message the way a customer would. Each reply shows which policy matched, every tool the agent called, and the answer.- On the Policies list, Simulate uses every active policy on that widget.
- On a policy’s page, it uses only that policy, on or off, so you can check a draft before turning it on. Remove the policy from the context tab to test against all active policies instead. When it doesn’t match, the reply says so: check its triggers.
- On a widget with identity verification, switch between Signed in and Signed out to check a signed-in policy.

Escalating from a policy
An Escalate when step hands the conversation to your team through the widget’s escalation integration. The agent collects what the step asks for, opens the escalation form, and the ticket is created for you. Configure escalation on the widget first, under Escalation in its configuration. Without it the agent still gathers the information and tells the customer someone will follow up, but no ticket is created.Turning a policy on and off
Use the switch beside the policy’s name. Off, it stays out of every conversation until you switch it back, though you can still simulate it.Delete, in the ⋯ menu, can’t be undone.