> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/open-end-cleaning-and-coding/open-end-coding/1.-configure-coding.md).

# 1. Configure Coding

Use the configuration to control how Metaforms builds the code frames.

#### Code frame structure

Choose one structure:

* **Net:** a single level of code groups with no hierarchy.
* **Subnet:** nested parent and child code groups.

For a Subnet frame, choose:

* **Max depth:** 2 to 5 levels
* **Sub-code format:** numeric, such as `1.1` and `1.2`, or alphanumeric, such as `1A` and `1B`

#### Code count strategy

Choose one strategy:

* **Target codes:** set the approximate number of top-level codes, from 2 to 50.
* **Min % per code:** set the minimum percentage of responses a generated code should represent.
* **Let AI decide:** allow Metaforms to choose the number of codes based on the data.

#### Fixed code buckets

You can include:

* **Other:** a catch-all for responses that do not fit an existing code.
* **None of the above:** for responses that explicitly indicate that no code applies.

For each enabled bucket, set its code number and maximum percentage.

#### Multi-coding

Enable **Allow multiple codes per response** when an answer may cover more than one theme. Then set the maximum number of codes that one response can receive.

When multi-coding is off, each response can have at most one code.

#### Sentiment

Enable **Include sentiment as a coding dimension** to tag coded responses as **Positive**, **Negative**, **Neutral**, or **Mixed**.

#### Code numbering

Set the starting number for the open-end codes for each question.

Expand a question to review its pre-coded options. Use a start number that does not conflict with those existing option codes or with the configured Other and None code numbers.

When the configuration is ready, select **Generate Code Frames**. Metaforms opens Code Frame Review while frames and initial response assignments are generated.

<figure><img src="/files/iEI3fj6bfYWpNAUrXVTb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.metaforms.ai/open-end-cleaning-and-coding/open-end-coding/1.-configure-coding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
