# Changes by agents, and Undo

> Every change an AI agent makes to a draft is recorded. See what agents changed, undo it, and check it before it goes live.

An agent with permission to change drafts works on your stories the way a teammate would: it adds and arranges reels, and changes words and buttons. With permission to add photos and videos, it can also bring files into your Library. Nothing it does goes live. Every change to a draft is recorded, most can be undone for 30 days, and you see what agents changed before you publish.

## See what agents changed

Owners and Admins can open **Settings → Activity**. An agent's changes to a story come together in one entry for each stretch of work, such as "Support Bot (agent.example.com), for Alex, changed 12 captions in Spring collection". Choose **Agents** to see only what agents did: their changes, the files they added to the Library, the share links they made, agents connecting and disconnecting, and agents being turned off or on for the workspace.

![Settings → Activity with an agent's changes and Undo](/screenshots/activity-agent-changes.png)

## Undo

Choose **Undo** on an entry and confirm. Webstory puts back what was there before, newest change first. If someone changed something since, it stops there and leaves the rest as it is, and tells you where.

- Undo is there for 30 days after a change. Activity is for Owners and Admins, so they're the ones who undo there; anyone who edits stories can change the story by hand.
- Undo stops at anything someone changed since. Change that part by hand.
- Files an agent added to the Library, and preview and share links it made, aren't undone. Delete files in the Library.
- An agent can undo changes too, with [`undo_change`](/agents/tools/undo_change), under the same rule: only while the thing is still as the change left it. An agent's undo can't itself be undone.
- Undoing a new story an agent made deletes it, so only someone whose role can delete stories can do that in Activity.

## When you're editing too

An agent's change goes through even while you have the story open. If an agent saved a reel you're editing, the Reel Editor says which agent changed it and lets you keep your version or load the agent's. Undo brings yours back. An agent that changes a story someone has open is told so, and can tell you.

## Before it goes live

When you publish a story an agent changed since it was last published, Webstory shows you what changed first. See [Publishing](/publishing#when-an-ai-agent-changed-the-draft).

## Using an AI agent

[`list_changes`](/agents/tools/list_changes) lists the changes agents made in the workspace, newest first, each in one line. Each change tool also answers with the changes it made, for [`undo_change`](/agents/tools/undo_change).

## Related

- [Publishing](/publishing)
- [Connect an agent](/agents)

Source: https://docs.webstoryapp.com/changes
