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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.poly.ai/feedback

```json
{
  "path": "/learn/maintain/knowledge-base",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Maintaining Managed Topics

> Quickly edit, add, or bulk-update Managed Topics – the agent's FAQ and knowledge.

Edit, add, or bulk-update Managed Topics to keep your agent's answers current. Use quick single-topic edits for small changes, CSV imports for seasonal refreshes, or work directly in the interface for new topics.

## Quick reference

| I need to...               | Action                                             | Time estimate |
| -------------------------- | -------------------------------------------------- | ------------- |
| Edit a single answer       | Click topic → Edit answer → Save                   | 2 min         |
| Add a new topic            | + Topic → Add questions & answer → Save            | 5 min         |
| Update 10-20 topics        | Export CSV → Edit → Import CSV                     | 15 min        |
| Update 50+ topics          | Export CSV → Edit → Import CSV                     | 30 min        |
| Fix wrong topic triggering | Add sample questions to correct topic              | 3 min         |
| Merge duplicate topics     | Combine content → Delete duplicate                 | 5 min         |
| Test changes               | Agent Chat in Sandbox                              | 5 min         |
| Promote to Live            | Publish → Promote to Pre-release → Promote to Live | 5 min         |

<Tip>
  Always test in *Sandbox* first and promote only when you're happy. Details are in [Environments & versions](/environments-and-versions/introduction).
</Tip>

## Edit an existing topic

1. Click the topic you want to change.
2. Update text directly in the *Answer* panel.
3. Click **Save**.
4. Use **Publish** and run tests in sandbox before publishing.

Common fixes:

| Issue                            | What to do                                                      |
| -------------------------------- | --------------------------------------------------------------- |
| The agent gives a partial answer | Add clarifying details to the *Answer* field.                   |
| It triggers the wrong topic      | Add a few of the user's actual phrasings as *Sample questions*. |
| It overlaps another topic        | Merge the content or re-title one topic to be more specific.    |

## Add a new topic

1. Click **+ Topic**.
2. Enter a clear title.
3. Add at least three *sample questions*–think of real user wording.
4. Write the *Answer* in plain language.
5. Save and preview.

## Bulk edits

Large updates are faster in a spreadsheet.

1. Click **Export CSV** to download a CSV file containing all of your Managed Topics.
2. Edit or add rows in your spreadsheet app.
   * Keep column headers exactly as exported.
   * Leave IDs intact for topics you're editing; new rows will create new topics.
3. Save as CSV.
4. Click **Import CSV** and upload the file.
5. Review the diff, then **Confirm import**.

Keep column headers exactly as exported. New rows (without an ID) create new topics; rows with an existing ID update that topic.

## Promote your changes

1. Open **Deployments > Environments**.
2. Select the new *Sandbox* version.
3. Click **Promote to pre-release**.
4. Confirm.
5. Click **Promote to Live**
6. Confirm.

## Common workflows

### Weekly content update

1. Review analytics for knowledge gaps (5 min)
2. Add or update 3-5 topics (15 min)
3. Test in Agent Chat (5 min)
4. Publish to Sandbox (2 min)
5. Promote to Pre-release for UAT (3 min)
6. Promote to Live (3 min)

**Total time:** \~30 minutes

### Seasonal content refresh

1. Export current topics to CSV (2 min)
2. Update seasonal information (hours, policies, etc.) (20 min)
3. Import updated CSV (5 min)
4. Test seasonal queries in Agent Chat (10 min)
5. Publish and promote (5 min)

**Total time:** \~45 minutes

### Fixing a knowledge gap

1. Identify the gap from call logs or analytics (5 min)
2. Create new topic or update existing (5 min)
3. Add sample questions matching user phrasing (3 min)
4. Test with actual user queries (5 min)
5. Publish and promote (5 min)

**Total time:** \~25 minutes

<div className="developer-only">
  ## Automate with the Agents API

  CSV round-trips work well for occasional refreshes. When the source of truth is another system — a help center, CMS, or internal spreadsheet — syncing via the API keeps topics current without manual exports.

  <AccordionGroup>
    <Accordion title="Sync topics from an external source via the Agents API" icon="code">
      The [Agents API](/api-reference/agents/introduction) has full CRUD for [knowledge base topics](/api-reference/agents/endpoint/knowledge-base/list-knowledge-base-topics), so you can run the sync on a schedule rather than exporting and importing CSVs by hand.
    </Accordion>
  </AccordionGroup>
</div>

## Related pages

* [Connected knowledge](/learn/maintain/knowledge-connected-knowledge) - Sync external sources
* [Performance monitoring](/learn/maintain/performance-monitoring) - Identify knowledge gaps
* [Version management](/learn/maintain/version-management) - Publish and promote changes
* [Managed Topics overview](/managed-topics/introduction) - Complete feature documentation
* [Knowledge base endpoints](/api-reference/agents/endpoint/knowledge-base/list-knowledge-base-topics) - Create and sync topics from code

## When to ask for help

Contact PolyAI support if you need help with:

* Migrating content between separate projects
* Undoing a large import that has gone wrong

<Tip>
  You can add Python functions yourself – see [Level 2: Using tools](/learn/guides/advanced/using-tools). For multi-language setup, see [Multi-language updates](/learn/maintain/multi-language-updates).
</Tip>
