Skip to content

Tool Policies

For: Administrators who plan which tools the assistant offers in different set-upsRequires: Any signed-in user can view the list; creating, changing and deleting policies needs the Admin roleScreenshots show sample data

The tool policies page lists your tool access policies. A policy is a name, a key and a set of tools: a chat session that carries one or more policy keys is offered only the tools mapped to those keys, and a session without keys is offered every active tool of the widget’s toolkits. Use this page to define those sets and open the simulation that shows exactly which tools a widget offers for them. Open it from SecurityTool Policies; the page heading reads Tool Access Policies.

How a chat gets policy keys. Only your own backend can give a customer keys. When it signs a customer in with a one-time login ticket, it can list up to 50 policy keys for that customer. Every chat of that customer then carries those keys, including chats started earlier, from the next time the widget connects. Each new ticket replaces the list, and a ticket without keys lifts the restriction. The page that embeds the widget cannot set or change keys.

  • See every policy and its tools. The table shows each policy’s name and the tools it grants, up to five per row with a count of the rest. The screen at a glance.
  • Find a policy by name. The search box filters the list while you type. Every control, explained.
  • Create a policy. Give it a name and a key, pick a toolkit and tick the tools it grants. Create a policy.
  • Read a policy’s key, or change a policy. The key, description and status are shown only in the edit dialog. Change a policy.
  • Delete a policy. Remove its tools first; a policy that still has tools cannot be deleted. Delete a policy.
  • Check what policies grant on a widget. Tool Access Simulation shows the tool list for any choice of policies. Tool Access Simulation · Plan and simulate tool policies.
The "Tool Access Policies" page in StrikeUp, subtitled "Manage access policies for tools in your embedding applications". At the top right are "Refresh", "Tool Access Simulation" and the highlighted blue "Create Policy" button, which opens the form for a new policy. Under the "Search by name..." box the table lists five policies with their tools as blue badges: "View invoices" (listInvoices, getInvoice, resendInvoice, exportInvoicesCsv), "Issue refunds", "Manage subscriptions", "Billing admin" (five tools and "+3 more...") and "Read-only access", each with edit and delete icons.The "Tool Access Policies" page in StrikeUp, subtitled "Manage access policies for tools in your embedding applications". At the top right are "Refresh", "Tool Access Simulation" and the highlighted blue "Create Policy" button, which opens the form for a new policy. Under the "Search by name..." box the table lists five policies with their tools as blue badges: "View invoices" (listInvoices, getInvoice, resendInvoice, exportInvoicesCsv), "Issue refunds", "Manage subscriptions", "Billing admin" (five tools and "+3 more...") and "Read-only access", each with edit and delete icons.
Each policy is a named set of tools; Create Policy adds one, and the list shows which tools each policy grants.
What this screenshot shows
Screen
Tool Policies (/admin/feature-flags)
Highlighted
button “Create Policy”, header-right, enabled. opens the Create Feature Flag dialog
Also visible
Five policies with tool badges; Billing admin shows +3 more; Search by name box; Refresh and Tool Access Simulation buttons; Key and status are not shown in the table
Purpose
the list of tool access policies as it opens
RegionWhat it showsWhat you do there
HeaderTool Access Policies, the subtitle, Refresh, Tool Access Simulation and Create PolicyReload, open the simulation, create a policy
SearchThe box Search by name...Filter policies by name
Policy tableName, Tools and Actions, one row per policy, active and inactiveEdit or delete a policy

The table does not show a policy’s key or its status. Open the edit dialog to see both.

  1. Select Create Policy. The dialog Create Feature Flag opens.
  2. Enter a Name, such as “Export invoices”.
  3. Enter a Key, such as export_invoices. Capitals turn into lower case and spaces into underscores as you type.
  4. Optionally add a Description.
  5. Choose a Toolkit. Its active tools appear as a checklist.
  6. Tick the tools the policy grants, or use Select All. The counter shows how many are ticked.
  7. Select Create Flag. Policy created successfully! confirms it, with the number of tools in English, for example “Access policy “Export invoices” has been created with 2 tool(s)”.
The "Create Feature Flag" dialog, filled in for a new tool access policy. "Name" is "Export invoices", "Key" is export_invoices with the hint "Lowercase letters, numbers, and underscores only", and the description reads "Lets customers on the Growth plan list and export their invoices." "Toolkit" is Demo Billing API and under "Tools" two tools are ticked, listInvoices and exportInvoicesCsv, with a counter of selected tools. A tip explains that the key is used in your embedding application code. The highlighted "Create Flag" button saves the policy.The "Create Feature Flag" dialog, filled in for a new tool access policy. "Name" is "Export invoices", "Key" is export_invoices with the hint "Lowercase letters, numbers, and underscores only", and the description reads "Lets customers on the Growth plan list and export their invoices." "Toolkit" is Demo Billing API and under "Tools" two tools are ticked, listInvoices and exportInvoicesCsv, with a counter of selected tools. A tip explains that the key is used in your embedding application code. The highlighted "Create Flag" button saves the policy.
A policy needs a name, a unique lowercase key and at least one tool from one toolkit.
What this screenshot shows
Screen
Create Feature Flag (/admin/feature-flags)
Highlighted
button “Create Flag”, dialog-footer-right, enabled. creates the policy and maps the ticked tools to its key
Also visible
Name Export invoices, key export_invoices; Toolkit Demo Billing API, two tools ticked; Tip about using the key in embedding code
Purpose
create a tool access policy

A new policy is Active and appears in the list at once. One dialog covers one toolkit; to add tools from a second toolkit, change the policy afterwards.

Example. Demo Ltd wants to plan two tiers of its support chat. It creates “View invoices” (view_invoices) with listInvoices, getInvoice, resendInvoice and exportInvoicesCsv, and “Issue refunds” (issue_refunds) with getInvoice and createCreditNote, then compares both in Tool Access Simulation.

  1. Select the pencil icon in the policy’s row. The dialog Edit Feature Flag opens with the name, key, description, status and the first toolkit the policy has tools in.
  2. Change the name, description or status as needed.
  3. Under Tools (Optional), tick every tool the policy should keep. The checklist opens with no box ticked, even for tools the policy already grants; the counter starts at 0. Compare with the badges in the list row.
  4. Select Save Changes. Policy updated successfully! confirms it.
The "Edit Feature Flag" dialog for the policy "View invoices". The highlighted "Key" field shows view_invoices, the name the policy is known by. Below are "Description", the "Status" switch set to Active, "Toolkit (Optional)" with Demo Billing API and "Tools (Optional)", where the counter reads "0 of 18 tool(s) selected" and no box is ticked, although the list page shows four tools for this policy. A "Warning:" box says that changing the key affects every embedding application using it; "Cancel" and "Save Changes" sit at the bottom.The "Edit Feature Flag" dialog for the policy "View invoices". The highlighted "Key" field shows view_invoices, the name the policy is known by. Below are "Description", the "Status" switch set to Active, "Toolkit (Optional)" with Demo Billing API and "Tools (Optional)", where the counter reads "0 of 18 tool(s) selected" and no box is ticked, although the list page shows four tools for this policy. A "Warning:" box says that changing the key affects every embedding application using it; "Cancel" and "Save Changes" sit at the bottom.
Open Edit to read a policy's key; the list does not show it.
What this screenshot shows
Screen
Edit Feature Flag (/admin/feature-flags)
Highlighted
textbox “Key”, dialog-key-field, showing view_invoices. holds the key the host product passes for this policy
Also visible
Warning box about changing the key; Status switch Active; Toolkit Demo Billing API; tools counter 0 of 18 selected, nothing ticked (product defect: mapped tools load unticked)
Purpose
find a policy's key and change its status or tools

Tools of this toolkit that are unticked when you save are removed from the policy. If you only want to change the name or status, tick the policy’s current tools again before you save.

To add tools from another toolkit, pick it in Toolkit (Optional), tick its tools and save; the tools of the first toolkit stay. The dialog only shows, and only removes, tools of the toolkit selected in it.

Changing a key moves its tools. The policy keeps its tools under the new key. Customers whose login ticket still lists the old key get none of the policy’s tools until your backend sends the new key, so change the key in your backend at the same time.

  1. Remove the policy’s tools: select the pencil icon, leave every tool unticked and select Save Changes. The row shows No tools.
  2. Select the bin icon in the row.
  3. Read Delete Access Policy and select Delete. The message “Policy deleted” confirms it.
The "Delete Access Policy" confirmation over the Tool Access Policies page. It asks: "Are you sure you want to delete "Read-only access"? This action cannot be undone." Below are "Cancel" and the highlighted red "Delete" button. Deleting only works once no tools are mapped to the policy any more; otherwise an error names how many tools are still assigned.The "Delete Access Policy" confirmation over the Tool Access Policies page. It asks: "Are you sure you want to delete "Read-only access"? This action cannot be undone." Below are "Cancel" and the highlighted red "Delete" button. Deleting only works once no tools are mapped to the policy any more; otherwise an error names how many tools are still assigned.
Deleting cannot be undone, and it is refused while tools are still mapped to the policy.
What this screenshot shows
Screen
Delete Access Policy (/admin/feature-flags)
Highlighted
button “Delete”, dialog-footer-right, enabled. deletes the policy (refused while tools are mapped)
Also visible
Confirmation text naming Read-only access
Purpose
last check before a policy is deleted

Deleting cannot be undone. While tools are still mapped, StrikeUp refuses with “Error deleting flag” and “Cannot delete flag ‘key’ because it is assigned to N tool(s). Remove the tool mappings first.” Deleting a toolkit or a tool removes it from every policy automatically.

Where
The header, at the right.
What
Reloads the policies and their tools.
Why
Shows changes a colleague made in another tab.
Where
The header, between Refresh and Create Policy.
What
Opens Tool Access Preview, which has no sidebar entry of its own.
Why
Shows what your policies grant on a real widget before you rely on them.
Where
The header, at the right.
What
Opens Create Feature Flag.
Why
Starts a new set of tools.
Where
Above the table.
What
Filters the list by policy name as you type, ignoring upper and lower case. It does not search keys or tool names. When nothing matches, the table shows No policies match your search. The magnifier icon next to the box does nothing extra.
Why
Finds a policy in a long list.
ColumnWhat it showsWhy
NameThe policy nameHow your team recognises the policy
ToolsUp to five tool names as badges, then +{{count}} more...; No tools when none. Tools from every toolkit are shown togetherWhat the policy grants
ActionsPencil (edit) and bin (delete) iconsChange or remove the policy

With no policies, the page shows Create your first policy to control which tools are available to different users or embedding applications.

FieldRules
NameRequired: Name is required. Up to 255 characters
KeyRequired: Key is required. Lower-case letters, digits and underscores only, otherwise Key must contain only lowercase letters, numbers, and underscores. Unique in your workspace, including inactive policies
DescriptionOptional. Shown only in the edit dialog
ToolkitRequired: Toolkit is required. One toolkit per dialog
ToolsAt least one: Please select at least one tool. Only active tools are listed; No active tools found for this toolkit when the toolkit has none

The Tip: box under the fields gives advice on choosing a clear key.

Where
The pencil icon in a policy’s row.
What
Shows Name, Key with a Warning: box about changing it, Description, Status (Active or Inactive), Toolkit (Optional) and Tools (Optional). The tool checklist opens unticked; tick the tools to keep before you save. Name and key follow the same rules as when creating.
Why
The only place to read a policy’s key and status, and to change what it grants.
Where
The Status switch in the edit dialog, saved with Save Changes.
What
Inactive stops the policy from granting tools: a chat that carries its key gets none of its tools from the next message on. The tools stay attached, so setting the policy back to Active restores them. Inactive policies are also hidden from Tool Access Simulation.
Why
Pauses a policy without losing its tools.
Where
The bin icon in a policy’s row.
What
Asks Are you sure you want to delete "{{name}}"? This action cannot be undone. and deletes the policy when it has no tools left.
Why
Removes policies you no longer need.
PartWho can use it
The list, search and the edit dialog, read-onlyEvery signed-in member
Creating, saving changes and deletingThe Admin role only. Other roles see the buttons, but the change fails with Request failed
Tool Access SimulationOpens for everyone; the simulation itself needs the Admin role
TopicFact
No keys, every toolA session without policy keys is offered every active tool of the widget’s toolkits.
Keys come from your backendOnly a login ticket from your backend gives a customer policy keys. The page that embeds the widget cannot set or change them.
Several keys add upA session with several keys gets every tool mapped to any of them.
Unknown keys grant nothingA key that matches no active policy with tools in the widget’s toolkits leaves the session with no tools from those toolkits. Keys are case-sensitive.
Switched-off tools are never offeredA tool switched off on the Toolkits page is not offered, whatever the policies say.
Inactive grants nothingAn inactive policy gives no tools. Its tools stay attached, so making it active again restores them.
Changes reach open chatsA change to a policy’s key, status or tools applies from the next message, also in chats that are already open.
English messagesSome notices on this page, such as “Error deleting flag”, are shown in English in every language.
Ticket sign-ins onlyPolicies restrict customers your backend signs in with a login ticket. Everyone else is offered every active tool, so keep switching tools off, approvals and the permission checks in your API.

It is a name, a key and a set of tools on SecurityTool Policies. A chat session that carries the key is offered the policy’s tools; a session without keys is offered every active tool of the widget’s toolkits. Use Tool Access Simulation to see the result for a widget.

For customers your backend signs in with a login ticket, yes: they are offered only the tools of the policies the ticket lists, and the page that embeds the widget cannot change that. Customers who sign in any other way are offered every active tool, so also switch risky tools off on ConfigureToolkits, require approval for them, and let your API check permissions.

Your backend sends them when it signs the customer in with a one-time login ticket. Every chat of that customer then carries those keys, and each new ticket replaces them. Customers who sign in any other way have no keys, so they are offered every active tool.

Open the policy with the pencil icon in its row on SecurityTool Policies. The key is shown in the Key field of the edit dialog. The list itself shows only names and tools.

Why doesn’t search find my policy by its key?

Section titled “Why doesn’t search find my policy by its key?”

The search box on the policy list matches policy names only, not keys or tool names. Search for the name instead, or open policies one by one with the pencil icon to read their keys.

Why did my policy lose its tools after I edited it?

Section titled “Why did my policy lose its tools after I edited it?”

The tool checklist in the edit dialog opens with no box ticked, and tools left unticked are removed when you select Save Changes. Open the dialog again, tick the tools the policy should have, and save; compare with the badges in the list row first.

Can one policy include tools from two toolkits?

Section titled “Can one policy include tools from two toolkits?”

Yes. Create the policy with tools from one toolkit, then open it with the pencil icon, choose the second toolkit in Toolkit (Optional), tick its tools and save. The dialog always opens on the first toolkit, and only removes tools of the toolkit selected in it.

What happens if I change a policy’s key?

Section titled “What happens if I change a policy’s key?”

The policy keeps its tools under the new key. Customers whose login ticket still lists the old key get none of them until your backend sends the new key. Change the key in your backend at the same time.

Does making a policy inactive switch it off?

Section titled “Does making a policy inactive switch it off?”

Yes. A policy set to Inactive grants no tools from the next message on, also in open chats, and is hidden from Tool Access Simulation. Its tools stay attached, so setting it back to Active restores them.

A policy that still has tools cannot be deleted. Open it with the pencil icon, leave every tool unticked, select Save Changes, then delete it with the bin icon. The error names the key and the number of tools still assigned.

What happens to policies when I delete a toolkit or a tool?

Section titled “What happens to policies when I delete a toolkit or a tool?”

The deleted toolkit’s or tool’s entries are removed from every policy automatically. A policy can end up with No tools; it stays in the list until you delete it.

When does a policy change reach an open chat?

Section titled “When does a policy change reach an open chat?”

With the customer’s next message. A change to a policy’s key, status or tools also applies to chats that are already open. The simulation on Tool Access Preview always shows the current state.

SymptomWhat to check
Key must contain only lowercase letters, numbers, and underscoresUse lower-case letters, digits and underscores only: export_invoices, not export-invoices.
“A flag with key ’…’ already exists”Keys are unique in your workspace, including inactive policies. Choose another key.
Please select at least one toolTick at least one tool before Create Flag.
No active tools found for this toolkitSwitch on tools in that toolkit on ConfigureToolkits.
“Error deleting flag” with “Cannot delete flag … because it is assigned to N tool(s)”Remove the policy’s tools in the edit dialog first, then delete.
Customers lost a policy’s tools after its key was changedYour backend still sends the old key. Send the new key in its login tickets.
A customer is offered every tool despite your policiesOnly customers signed in with a login ticket that lists policy keys are restricted. Check how that customer signed in and that your backend sends the keys.
A customer is offered none of your toolsThe keys in their login ticket belong only to inactive or deleted policies, or their policies have no tools in this widget’s toolkits.
A policy lost its tools after an editThe checklist opened unticked and was saved that way. Tick the tools again and save.
Changes fail with Request failedCreating, changing and deleting need the Admin role.
A policy with tools in two toolkits cannot be emptiedThe edit dialog removes only tools of the first toolkit. Contact StrikeUp support to remove the rest.