> ## Documentation Index
> Fetch the complete documentation index at: https://docs.typewise.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing changes

> Review, select, tweak, and publish changes to your AI Agent's behavior, knowledge, and actions.

All changes to your AI Agent's configuration, including
[Behavior](https://docs.typewise.app/documentation/behavior/company.md),
[Knowledge](https://docs.typewise.app/documentation/knowledge/overview.md), and
[Actions](https://docs.typewise.app/documentation/actions/overview.md), require a publish action before they
take effect. This gives you control over when updates go live and lets you
review, tweak, or discard changes before deployment.

You can publish or discard **all** pending changes, or only the ones you choose.
Related drafts that must go together are included when you confirm, and a delete
can't be published while live configuration still mentions it.

## How publishing works

When you make changes in the platform, they're saved as a draft. Drafts don't
affect your customers until you explicitly publish them.

**1. Make changes**

Edit behavior settings, add knowledge sources, or configure actions. Nothing
is served to your customers until you publish.

**2. Test in the simulator**

Use the [Simulator](https://docs.typewise.app/documentation/testing-and-feedback/simulator.md) to
preview your drafts against real conversations.

**3. Review and publish**

Click **Review** in the unpublished changes bar to open the review dialog.
Check the changes you want to publish (or the checkbox at the top to select
all), optionally tweak a change inline, then click **Publish N changes**.

***

## Unpublished changes bar

A floating bar appears at the bottom of the platform whenever someone on your
team has pending changes.

![Unpublished changes bar with a contributor avatar and the Review button](https://mintcdn.com/typewise/I1f8iY7DWGfLoSdg/images/documentation/behavior/publishing/unpublished-changes-bar.png?fit=max\&auto=format\&n=I1f8iY7DWGfLoSdg\&q=85\&s=4d0e911aad63a61afc6ac1b8c8e5fc65)

The bar shows:

* Stacked avatars of every teammate who contributed to the pending changes.
  Hover an avatar to see "Name made some changes".
* A **Review** button that opens the review dialog. You publish and discard from
  there.

To keep it out of the way during support work, the bar is hidden on the Inbox,
Mentions, and ticket pages.

***

## Testing changes in the simulator

**1. Open the simulator**

You can test your unpublished changes in the
[Simulator](https://docs.typewise.app/documentation/testing-and-feedback/simulator.md). This helps you
confirm your changes behave as expected before publishing them to your
customers.

**2. Create a new conversation**

Click **New conversation** and make sure **Include unpublished changes** is
enabled. You can use this toggle to switch between the live and unpublished
configurations.

![New conversation dialog with Chat selected, the Simulated customer picker, and Include unpublished changes turned on](https://mintcdn.com/typewise/I1f8iY7DWGfLoSdg/images/documentation/testing-and-feedback/simulator/simulator-create-chat.png?fit=max\&auto=format\&n=I1f8iY7DWGfLoSdg\&q=85\&s=b1257a7dc62f36e960b01b041e0424dd)

**3. Run the conversation**

Send messages to your AI Agent and watch how your drafts behave in
real-time.

> [!TIP]
>
> Always run a simulator session before publishing, especially after changes to
> a Specialist or a Knowledge source. [Automated
> Tests](https://docs.typewise.app/documentation/testing-and-feedback/tests.md) also run against your
> drafts.

***

## Reviewing changes

Clicking **Review** opens the review dialog. It uses a two-pane layout so you
can see what changed at a glance, choose what to publish, and act without
leaving the dialog.

![Review changes dialog with the list of pending changes on the left and the selected entity with diffs on the right](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-changes-dialog.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=627ac052483bd5420c210c2320762ca1)

### Two-pane layout

* **Left pane**: one row per changed entity (Company configuration, Chat
  guidelines, Email guidelines, Specialist, Action, Knowledge source). Entities
  edited multiple times appear once, with the avatars of every contributor and a
  relative timestamp. Hover the timestamp to see the exact date and time. Each
  row has a checkbox so you can include or exclude it from this publish.
* **Right pane**: the selected entity rendered exactly as it looks on its own
  page, with changes highlighted in place.
  * A green bar at the top marks new entities.
  * A red bar marks deleted entities.
  * Updated entities have no bar.

The first row is shown in the right pane when the dialog opens. No change is
checked yet: you choose what to publish or discard.

If a form on the page has unsaved edits when you click **Review**, you're asked
first: "Are you sure you want to leave?" Click **Stay** to keep the dialog
closed and save your edits, so they're part of the review. **Leave** opens the
dialog without them.

### Simulator tests card

Admins see a **Simulator tests** card at the top of the review dialog with the
latest [test](https://docs.typewise.app/documentation/testing-and-feedback/tests.md) results, for example
**4 of 5 passed**, plus how many tests failed, are outdated, have suggested
improvements, need attention, are running, or haven't run.

A result is **outdated** when the run is older than your saved changes, the
test's settings, or its test customer. Run the tests again for current results.

Click **Review tests** to open the test list (or **Set up tests** if you have
none). Save any inline edits first. Test results are advisory and never block
publishing. Tests use all saved drafts, including changes you haven't selected
for this publish.

![Simulator tests card at the top of the Review changes dialog: 4 of 6 passed, 2 failed, 6 outdated, 1 with suggested improvements, and Review tests](https://mintcdn.com/typewise/I1f8iY7DWGfLoSdg/images/documentation/behavior/publishing/review-simulator-tests.png?fit=max\&auto=format\&n=I1f8iY7DWGfLoSdg\&q=85\&s=a7bb14fe1b36898ab5d048da99100ad6)

### Choosing what to publish

* Check each change you want to publish. Leave a teammate's unfinished work
  unchecked to keep it as a draft.
* The checkbox at the top of the left pane selects all changes, or clears the
  selection when everything is selected. Next to it you see how many are
  selected out of the total.
* Once something is checked, the footer shows **Discard N changes** and
  **Publish N changes**, counting the changes you checked. With nothing checked,
  it says "Select at least one change to publish or discard".

Unchecked drafts stay unpublished. They remain in the unpublished changes bar
for a later publish or discard.

### Related changes that must go together

Some drafts depend on each other. When you click **Publish** or **Discard** and
a change you checked needs related unpublished work, a confirmation lists that
work with "Needed by" and the change that needs it. The button there counts
everything that will be published or discarded, including those related changes.
Click **Go back** to change your selection.

Typical cases:

* A Specialist, channel, or general behavior that uses a **new** Action or
  Knowledge source is published together with that Action or source.
* Discarding a **new** Action or Knowledge source also discards draft changes
  that still use it.

### Blocked deletes

You can't publish a **delete** while something that is already live still
mentions that entity. You can check it, but when you click **Publish**, a dialog
titled "Some changes can't be published yet" names the delete and what still
mentions it. Click **Publish the rest** to publish your other changes without
it, or **Go back**. If nothing else is left to publish, the dialog only explains
the problem.

To publish the delete, edit the referring configuration first (for example,
remove the Action from a published Specialist), then publish that edit together
with the delete. You can also **discard** a blocked delete if you decide not to
remove the entity after all.

### How diffs are shown

The right pane highlights changes at the field level. The exact styling depends
on the type of control.

> [tab] Text and instruction
>
> Word-level inline diff. Removed text is struck through in red, added text is
> highlighted in green.
>
> ![Text field diff with red strikethrough for removed words and green highlight for added words](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-diff-text.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=f3b53274828da4d04ad3baf82179b916)

> [tab] Checkbox and toggle
>
> The previous and the new state are both visible, with added and removed
> styling so you can tell which one is new.
>
> ![Toggle diff showing the previous and new state](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-diff-toggle.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=c7c7ca491803b6f148fd523738d7ad22)

> [tab] Radio
>
> Radio buttons and radio cards keep both the previous selection and the new
> selection visible, with added and removed styling.
>
> ![Radio cards diff showing the previously selected and newly selected options](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-diff-radio.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=6fcaf5b89cabce5433d56515de519a0f)

> [tab] Dropdown
>
> The old label is struck through and the new label is highlighted directly
> on the dropdown's trigger.
>
> ![Dropdown trigger with old label struck through and new label highlighted](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-diff-dropdown.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=876e24c6b072f1caea02975ea603a5c0)

> [tab] Table and list
>
> * Added rows are highlighted as new.
> * Removed rows stay visible as grayed-out ghost rows with values struck
>   through.
> * Edited cells show a per-cell word-level diff.
>
>   ![Table diff with an added row, a grayed-out removed row, and an edited cell](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-diff-table.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=456cbab315a9b5f06e7b0088d2d79d5a)

### Editing changes inline

You can tweak any field directly in the right pane without leaving the dialog.
Inline edits compound onto the existing diff immediately, so you can see the
combined result before publishing.

![Review dialog with an inline edit applied and an Edited indicator in the title](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/review-inline-edit.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=cafa6cd55d3ff004519f0d8c4b3b2b0d)

* The dialog title shows an **Edited** indicator once you've tweaked anything in
  the dialog.
* You can move between changes on the left while keeping inline edits on other
  entities.
* **Save** persists inline tweaks without publishing.
* Confirming publish saves any remaining inline tweaks, then publishes only the
  changes you selected.

> [!NOTE]
>
> Deleted entities are read-only in the detail pane. You can't tweak something
> that's about to be removed.

### Closing with unsaved inline edits

Closing the dialog (the **X** control) with no inline edits closes immediately.
Closing after you've made inline edits opens a confirmation.

![Confirmation dialog with Go back and Discard and close buttons](https://mintcdn.com/typewise/9NRDTgPD0K131RG-/images/documentation/behavior/publishing/unsaved-edits-confirmation.png?fit=max\&auto=format\&n=9NRDTgPD0K131RG-\&q=85\&s=c9770da2282938d790d373a84f8b03df)

* **Go back**: return to the review dialog with your inline edits preserved.
* **Discard and close**: drop the inline tweaks and close the dialog. The
  original pending changes (from before you opened the dialog) are kept.

### Troubleshooting

> [accordion] Nothing appears in the unpublished changes bar
>
> Only certain change types qualify for publishing. See the table in [What
> changes require publishing?](#what-changes-require-publishing) below. Chat
> widget appearance, email delivery settings, and user and team management
> changes apply instantly and don't flow through the review dialog.

> [accordion] A teammate's change is missing from the list
>
> Automated and system-only updates (where no user is attached) and Knowledge
> Hub crawl-status updates don't show up in the review list. Every other
> contribution appears with the teammate's avatar.

> [accordion] Publishing includes changes I didn't check
>
> A change you checked needs them. The confirmation lists each one with the
> change that needs it. Click **Go back** and uncheck the change that needs
> them if you don't want to publish them yet.

> [accordion] A delete isn't published
>
> Something that is already live still mentions that entity. Edit the
> referring Specialist, channel, or general behavior to remove the reference,
> then publish that edit with the delete (or discard the delete if you no
> longer want to remove the entity).

***

## Discarding changes

You discard from the same review dialog. Check the changes you want to throw
away and click **Discard N changes**.

* A confirmation asks before anything is discarded. Discarded changes are gone
  for good and can't be restored.
* If a change you checked has related drafts that would break without it, the
  confirmation lists them and they are discarded too.
* Unchecked drafts stay unpublished.
* Closing the dialog keeps your drafts.

***

## What changes require publishing?

Any configuration change that affects the AI Agent's behavior, knowledge, or
actions requires a publish action before it takes effect. Some changes are
immediate and don't require publishing.

#### Changes that require publishing

| Area | Examples |
| - | - |
| **Behavior** | Adding, editing, or removing Company configuration, channels, and Specialists |
| **Knowledge** | Adding, editing, or removing knowledge sources |
| **Actions** | Adding, editing, or removing AI actions and manual actions |

#### Changes that don't require publishing

| Area | Examples |
| - | - |
| **Chat appearance** | Changing the chat widget appearance |
| **Email sending & receiving settings** | Changing the email sending and receiving settings |
| **Users & teams** | Adding, editing, or removing users and teams |

## See also

> [card] [Company configuration](https://docs.typewise.app/documentation/behavior/company.md)
>
> Configure your AI Agent's overall behavior.

> [card] [Chat channel](https://docs.typewise.app/documentation/behavior/chat.md)
>
> Configure chat channel settings.

> [card] [Email channel](https://docs.typewise.app/documentation/behavior/email.md)
>
> Configure email channel settings.

> [card] [Specialists](https://docs.typewise.app/documentation/behavior/specialists.md)
>
> Configure Specialist instructions.

> [card] [Knowledge overview](https://docs.typewise.app/documentation/knowledge/overview.md)
>
> Add knowledge sources.

> [card] [Actions overview](https://docs.typewise.app/documentation/actions/overview.md)
>
> Configure AI and manual actions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.