Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Protecting Resources from AI

Some parts of a project are too important to let an agent rewrite: a checkout page that took weeks to get right, a pricing table, the design system everything else depends on. Protecting a resource keeps it visible to WeWeb AI for context, while refusing any attempt to change it.

Protections apply to WeWeb AI in the editor and to external agents connected over WeWeb MCP. Locking a resource once covers both.

Plan availability

Resource protection is available on the Pro and Partner plans. On other plans the shield controls are hidden, and Agent permissions explains how to get access.

What a protection does

A protected resource is read only for agents. They can still open it and use it as context, which matters: an agent that cannot see your header will build pages that do not match it.

What agents can no longer do to a protected resource:

  • Edit, rename, replace, or delete it
  • Add anything inside it
  • Change its data, for a table

You are never restricted. Protections only apply to agents, so you keep editing everything by hand as usual.

Protecting a resource

Open the resource's settings and turn on Protect from AI changes, then choose Enable.

Protect from AI changes toggle

The control sits with the rest of the resource's settings:

ResourceWhere to find the toggle
PagePages tab in the left panel, then open a page's settings
SectionSelect the section, then look at the bottom of the right panel
Library componentAssets tab in the left panel, then select a component in the Library panel
Page, app, or function workflowOpen the workflow, then open its settings
Backend workflow, API endpoint, or middlewareOpen it in the Data & API tab, then open its settings
VariableVariables tab in the left panel, then select a variable
FormulaFormulas tab in the left panel, then select a formula
TableData & API tab, then the table's settings
Table viewData & API tab, then the table view's settings
Design system token or classAssets tab in the left panel, then select a color, typography, spacing, or class
The whole libraryAssets tab in the left panel, at the top of the Library panel

Two resources have a shortcut instead of a settings row:

  • Right-click a section on the page or in the layout tree, then choose Protect from AI changes. The same menu offers Allow AI changes once it is locked.
  • For a coded component, open AddCoded components, then use Lock for AI in the component's ... menu.

Reading the shield

A protected resource shows a shield next to its name, everywhere it appears, such as in the pages list, the tables list, the layout tree, the library panels, the page selector, and the edition panel header.

Pages list where the protected Home page shows a shield, while Page 1 and Page 2 do not

How protections cascade

Protecting a container protects what it holds, so you do not have to lock things one by one:

  • Protecting a page also protects every section and element it contains, along with its page workflows.
  • Protecting a section also protects every element it contains.
  • Protecting a table also protects every table view built on it.
  • Protecting the library also protects every token, class, and component it contains.

Each toggle spells out its own cascade underneath, so you can see how far a lock reaches before turning it on.

Two consequences worth knowing:

  • Agents cannot add anything to a protected page or section, not just edit what is already there. Asking for "a new testimonial section on the home page" fails if the home page is locked.
  • A protected section can still be reordered inside its own page. Its content is untouched, so moving it up or down is allowed unless the page itself is protected.

START WITH THE CONTAINER

If a whole page is finished, protect the page rather than each of its sections. You get the same result with one lock, and new sections added later are covered too.

Managing every protection in one place

Open the Settings tab in the top bar, then the Agent permissions subtab. Protected resources lists everything currently locked in the project.

Protected resources panel in Agent permissions

Two cards at the top count what is locked on each side of the project: Interface for pages, sections, and logic, and Data & API for tables, views, and backend workflows.

For each resource the table shows its name, its type, and who locked it. From there you can:

  • Filter by resource type in the left column, or search by name
  • Click Open to jump straight to the resource in the editor
  • Click Unblock to remove a single protection
  • Click Unblock all visible to clear everything matching the current filter and search

This panel is also where you find a resource you cannot reach otherwise, such as a section on a page you are not currently on.

What happens when an agent hits a protection

The agent is told which resource is locked and who locked it, then explains the situation in the chat and suggests another way to get what you asked for. It does not fail silently and does not retry.

Agents also see the protection before they start, so a well-behaved agent plans around a locked page instead of running into it.

Protections and deleted resources

When you delete a resource, its protection goes with it. There is nothing to clean up by hand.

RENAMING A WEWEB TABLE

WeWeb tables are identified by their name, so renaming a protected table leaves its protection behind, pointing at a name that no longer exists. The Protected resources table shows these leftovers as No longer exists so you can remove them, then protect the table again under its new name.