# Configure and publish a knowledge item (/docs/knowledge/configure-and-publish)

> After indexing, review the usage guidelines Loopwix drafted, set the category, priority and citation mode, then save a draft or publish so agents can use the item.

Type: how-to | Status: ga | Last reviewed: 2026-11-21 | Minimum role: builder

Configuring an item tells the agent how to use it. When an item reaches **Needs setup**, open it from the library (**Configure**). Configuration has three tabs: **Usage guidelines**, **AI instructions** and **Citations**.

## How do I make a document ready for my agent? [#how-do-i-make-a-document-ready-for-my-agent]

When an item shows Needs setup, open it from the library and select Configure. Check its name and description, then fill in the usage guidelines or draft them with Generate with AI. Set the citation mode and publish the item so agents can use it.

## Steps [#steps]

1. Check the **display name**, **description** and optional **category**.
2. On **Usage guidelines**, fill in **Purpose**, **When to use**, **When not to use**, **Answer style** and **Restrictions**. Or switch on **Generate with AI** to draft them from the document, then edit. See [Guideline fields](/docs/knowledge/guideline-fields).
3. On **AI instructions**, optionally add extra notes, a language, and a validity window.
4. On **Citations**, choose a **citation mode** (see [Citation modes](/docs/knowledge/citation-modes)), set the **priority**, and decide whether the assistant may send the file.
5. Make sure **Use in answers** is on.
6. Select **Publish** (or **Publish updates** if the item was already published) to make the configuration ready for agents.

You cannot configure an item until indexing has finished. While it is processing the page says "Indexing in progress. Configure when it shows Needs setup."

## Generate with AI [#generate-with-ai]

On **Usage guidelines**, the **Generate with AI** switch is off by default. Turn it on to fill the guideline fields from the document. Generation usually takes under a minute, and you can **Cancel** at any time and write the guidelines yourself. If it fails you see "Generation failed" with **Try again** and **Dismiss**. The item must be Ready first ("Finish processing this file before generating or editing guidelines."). Always read and edit the result.

## Autosave and drafts [#autosave-and-drafts]

Your edits are saved automatically as a draft after a short pause, and you can also select **Save draft**. A bar shows **Unsaved changes**, **Draft saved** or **Draft matches published**. Leaving with unsaved edits asks for confirmation. Customers and agents keep using the last published version until you publish.

## Before you publish [#before-you-publish]

To publish, **Purpose**, **When to use** and **Answer style** are required ("Purpose, when to use, and answer style are required"). The publish dialog shows a **Ready checklist**. It has a tick or circle for Purpose, When to use, Answer style and the chosen citation mode. When you replace an already published configuration, it shows "Replaces published vN" and what changes, such as the citation mode or purpose.

After you publish, the item shows **Ready for agents**. Test knowledge can use the draft before you publish; see [Test your knowledge](/docs/knowledge/test-your-knowledge).

## Discard and history [#discard-and-history]

**Discard** drops unsaved edits. **Published versions** lists earlier published configurations. Choose a version to **restore it into your draft** ("Restored into draft. Publish when ready."), then publish again to make it live.

## Then [#then]

Attach the published item to an agent: [Attach knowledge](/docs/agents/attach-knowledge).

## Who can do this [#who-can-do-this]

Owners, Admins and Builders. See [Roles and permissions](/docs/reference/permissions-matrix).
