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

# Import, copy, and export your codebook

> Upload an existing codebook, reuse one from another project, or export your topic collection.

In Caplena, your codebook is called a **topic collection**: the categories, topics, codes, and descriptions used to analyze a text column. You might also know it as a *code frame*, *code plan*, or *coding scheme*.

This page covers the three ways to move a codebook in and out of Caplena:

| I want to… | Use | Where |
| - | - | - |
| Use a codebook I already have in a file | **Upload File** | When starting the analysis |
| Reuse a codebook from another Caplena project | **Import from another project** | When starting the analysis, or from the Topics tab |
| Get my codebook out of Caplena | **Topic summary** export | Export dialog in the Topics view |

## Import a codebook from a file

If you already have a list of codes, for example from a previous study or a client's coding scheme, you can upload it instead of letting the AI generate topics from scratch.

<Steps>
  <Step title="Prepare your file">
    Put your codebook in a **CSV or Excel** file, one topic per row, using the column names below. A plain text list can't be imported directly. Paste it into Excel first, with one topic per row in a `topic` column.
  </Step>

  <Step title="Start the analysis">
    Open your project and click **Start analysis now** on the Overview panel.
  </Step>

  <Step title="Choose Import existing topics">
    **Choose how to start**, select **Import existing topics**, then **Upload File**, and upload your file.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/caplena-32172960/jzzwh32UssPO_LPX/images/CleanShot-2026-05-19-at-19.08.43.gif?s=365ae2779cd4bb0c4f96460c719e38d8" alt="Importing existing topics" width="800" height="291" data-path="images/CleanShot-2026-05-19-at-19.08.43.gif" />
</Frame>

### File format

| Column | Required | What it's for |
| - | - | - |
| `topic` | Yes | The topic name (label). |
| `category` | Yes | The category the topic belongs to. |
| `code` | No | A unique numerical ID for the topic. Use this to keep your existing code numbers. If you leave it out, Caplena assigns codes automatically. |
| `sentiment` | No | The sentiment setting for the topic. |
| `description` | No | When the topic should apply. The AI uses this as a primary input when assigning topics. |
| `keywords` | No | Comma-separated keywords, used in [Semi-Open mode](/get-started/starting-a-new-project/semi-open-mode-quick-guide) to match responses. Each keyword must be **30 characters or fewer**, including spaces. |

Your file must match one of these two layouts.

<Tabs>
  <Tab title="With sentiment">
    <Frame>
      <img src="https://mintcdn.com/caplena-32172960/jzzwh32UssPO_LPX/images/Screenshot-2026-05-19-at-19.15.55.png?fit=max&auto=format&n=jzzwh32UssPO_LPX&q=85&s=7aad1d5a9963245ad214720b971d3b44" alt="Codebook file format with sentiment" width="2786" height="956" data-path="images/Screenshot-2026-05-19-at-19.15.55.png" />
    </Frame>
  </Tab>

  <Tab title="Without sentiment">
    <Frame>
      <img src="https://mintcdn.com/caplena-32172960/jzzwh32UssPO_LPX/images/Screenshot-2026-05-19-at-19.18.02.png?fit=max&auto=format&n=jzzwh32UssPO_LPX&q=85&s=82f60b15e15485b23292971e4716592a" alt="Codebook file format without sentiment" width="2210" height="914" data-path="images/Screenshot-2026-05-19-at-19.18.02.png" />
    </Frame>
  </Tab>

  <Tab title="With descriptions">
    <Frame>
      <img src="https://mintcdn.com/caplena-32172960/wNeVaDSnwot20T5D/images/topic-assignment/codebook/codebook-file-example.png?fit=max&auto=format&n=wNeVaDSnwot20T5D&q=85&s=37e036023d534fc3b04661fd26f99e18" alt="Codebook file format with descriptions" width="2298" height="346" data-path="images/topic-assignment/codebook/codebook-file-example.png" />
    </Frame>
  </Tab>
</Tabs>

<Tip>
  **Add descriptions if you can.** A topic like `Pricing` is assigned much more reliably with a description such as *"Mentions of cost, price, fees, or value for money, including comments about discounts and subscription tiers."* If the column is empty, Caplena generates descriptions on the first run, but your own keep assignments aligned with how your team defines each topic.
</Tip>

<Warning>
  Imports with a keyword longer than 30 characters are rejected with an error. Shorten or split long keywords before uploading.
</Warning>

<Tip>
  **You can upload an exported codebook as-is.** A [Topic summary export](#topic-summary-download-your-codebook) from another project can be uploaded directly, with no renaming or cleanup needed. Caplena matches the columns it needs and ignores the rest, such as colors and answer counts. This is an easy way to reuse a codebook across projects or accounts, or to edit it in Excel and bring it back.
</Tip>

## Reuse a codebook from another Caplena project

<Tip>
  **Running the same survey again?** For recurring studies, such as quarterly NPS, yearly employee surveys, or a new wave of the same questionnaire, you usually don't need a second project. Keep everything in one project: [append the new rows](/data-project-management/adding-replacing-data/append-rows-to-an-existing-project) and add a [wave or year column](/data-project-management/common-smart-columns-intro/creating-a-helper-column-e.g.-wave-or-year) to tell the waves apart. The new responses are coded with the same codebook, and you can compare waves directly in your reports.
</Tip>

Reusing a codebook across projects makes sense when the projects really need to be separate, for example a different study that should use the same coding scheme, or a [DEV/PROD tracker setup](/topic-assignment/new-ai/tracker-setup). There is a way to do it.

<Steps>
  <Step title="Start the analysis">
    In the project that needs the codebook, click **Start analysis now**.
  </Step>

  <Step title="Choose Other project">
    Select **Import existing topics**, then **Other project**.
  </Step>

  <Step title="Select the source">
    Choose the project and the text column whose codebook you want, then click **Inherit topic collection**.
  </Step>
</Steps>

<Note>
  Inheriting topics with the LLM model works best when the new dataset asks the same question in the same context. If the question wording or column context differs, review the inherited descriptions before running the AI. See [Learning Relationships Between Projects](/topic-assignment/understanding-the-basics/learning-relationships-between-projects-legacy-ai-vs-new-ai) for details.
</Note>

## Export your codebook

### Topic summary (download your codebook)

The **Topic summary** export is how you download your codebook. <br />

<img src="https://mintcdn.com/caplena-32172960/3kDgRWsd3gh3-deP/images/Screenshot-2026-10-02-at-16.11.49.png?fit=max&auto=format&n=3kDgRWsd3gh3-deP&q=85&s=0e09e86e4ed6fb725e0f90ee22962c8a" alt="Screenshot 2026 10 02 At 16 11 49" width="1962" height="334" data-path="images/Screenshot-2026-10-02-at-16.11.49.png" />

The export also includes a **category overview** with the number and share of answers per category. An answer with several topics in the same category is counted once.

<Note>
  For topics with sentiment enabled, each sentiment variant (neutral, negative, positive) is a **separate row with its own code**. For example, `AI Topic Detection` might appear as codes 1 (neutral), 2 (negative), and 3 (positive). Keep this in mind when matching codes in SPSS or another tabulation tool.
</Note>

<Steps>
  <Step title="Open the export dialog">
    Go to the **Topics view** and click **Export** (top right).
  </Step>

  <Step title="Choose Topic summary">
    Click the **Topic summary** tab and choose a file type, for example Excel.
  </Step>

  <Step title="Export">
    Click **Export**.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/caplena-32172960/iGmU8JfudIwExHbA/images/Screenshot-2026-05-23-at-15.23.47.png?fit=max&auto=format&n=iGmU8JfudIwExHbA&q=85&s=1439204b1ce2f9622f3e7e0a6c423ab4" alt="Topic summary export tab" width="1488" height="956" data-path="images/Screenshot-2026-05-23-at-15.23.47.png" />
</Frame>

<Note>
  The Topic summary is exported **per topic collection**, so one text column at a time. If your project has several text columns, export the summary for each one.
</Note>

## Common questions

<AccordionGroup>
  <Accordion title="How do I download my codebook?">
    Go to the **Topics view**, click **Export**, open the **Topic summary** tab, and export to Excel or CSV. You'll get every topic with its code, category, sentiment, description, and keywords. See [Topic summary](#topic-summary-download-your-codebook).
  </Accordion>

  <Accordion title="Can I edit my codebook in Excel and upload it again?">
    Yes. Export the [Topic summary](#topic-summary-download-your-codebook), make your changes in Excel, and upload the file through **Import existing topics → Upload File**. You don't need to rename or remove columns. Caplena picks up the ones it needs.
  </Accordion>

  <Accordion title="Can I keep my existing code numbers?">
    Yes. Include a `code` column in your upload file. You can also set codes manually on each topic. See [Code](/topic-assignment/understanding-the-basics/main-concepts-categories-topics-sentiment#code).
  </Accordion>

  <Accordion title="I have my codes as a plain text list. Can I paste them in?">
    Not directly. Paste the list into Excel with one topic per row under a `topic` header, add `category` or other columns if you have them, and upload the file.
  </Accordion>

  <Accordion title="I want the same codebook for two waves of the same survey">
    The simplest setup is one project for all waves. Append the new wave's rows to the existing project and add a wave or year column to tell them apart, so every wave uses the same codebook and you can compare them in one report. See [Append Rows to an Existing Project](/data-project-management/adding-replacing-data/append-rows-to-an-existing-project) and [Creating a Helper Column](/data-project-management/common-smart-columns-intro/creating-a-helper-column-e.g.-wave-or-year).
  </Accordion>

  <Accordion title="Can I import a codebook into a project that's already been analyzed?">
    Yes, but importing a new codebook **restarts the analysis**, and topics are assigned again from scratch. Before you import, export the current [Topic summary](#topic-summary-download-your-codebook) so you have a copy of the existing codebook to go back to.
  </Accordion>

  <Accordion title="I want to test changes to my codebook without losing the current version">
    Use a separate test project and copy the codebook there, then copy it back once you're happy. See [Tracker Setup: Best Practices](/topic-assignment/new-ai/tracker-setup).
  </Accordion>
</AccordionGroup>

## Related pages

<CardGroup cols={2}>
  <Card title="Starting the analysis" icon="play" href="/topic-assignment/understanding-the-basics/starting-the-analysis">
    All the ways to create your first topic collection.
  </Card>

  <Card title="Key concepts" icon="book" href="/topic-assignment/understanding-the-basics/main-concepts-categories-topics-sentiment">
    Categories, topics, codes, and sentiment explained.
  </Card>

  <Card title="Tracker Setup: Best Practices" icon="repeat" href="/topic-assignment/new-ai/tracker-setup">
    Manage recurring studies with a DEV and PROD project.
  </Card>

  <Card title="Exporting Your Data" icon="file-export" href="/data-project-management/data-export/exporting-your-data">
    All export formats for coded data.
  </Card>
</CardGroup>


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