> For the complete documentation index, see [llms.txt](https://docs.thub.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thub.tech/langchain/output-parsers.md).

# 🔀Output Parsers

#### 1)CSV Output Parser

Parse the output of an LLM call as a comma-separated list of values.&#x20;

#### Key Features:

• CSV Formatting: Converts responses into comma-separated values\
• Structured Output: Ensures consistent tabular data format\
• Autofix Option: Automatically fixes minor formatting issues

#### Setup Requirements:

1. Add CSV Output Parser node to the canvas
2. Enable Autofix if required
3. Connect the parser to a chat model output

#### Use Cases:

• Exporting data in CSV format\
• Tabular data generation

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

#### **2)Custom List Output Parser**

Parse the output of an LLM call as a list of values.&#x20;

#### Key Features:

• Custom Formatting: Define list length and separator\
• Flexible Output: Supports different list structures\
• Autofix Option: Handles formatting inconsistencies

#### Setup Requirements:

1. Add Custom List Output Parser node to the canvas
2. Set Length (number of items)
3. Define Separator (example: comma, newline)
4. Enable Autofix if required
5. Connect to model output

#### Use Cases:

• Generating lists from responses\
• Structured text formatting

<figure><img src="/files/7hjIbkbqCOkGzPhZmYdd" alt=""><figcaption></figcaption></figure>

#### 3)Structured Output Parser

Parse the output of an LLM call into a given (JSON) structure.

#### Key Features:

• Structured Data: Converts output into defined schema\
• Autofix Support: Fixes minor formatting issues\
• Consistent Responses: Ensures predictable output

#### Setup Requirements:

1. Add Structured Output Parser node to the canvas
2. Enable Autofix if required
3. Connect parser with model output

#### Use Cases:

• Structured response generation\
• API-ready outputs

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

#### 4)Advanced Structured Output Parser

Parse the output of an LLM call into a given structure by providing a Zod schema.

#### Key Features:

• JSON Schema Support: Uses schema for structured output\
• High Accuracy: Ensures correct format strictly\
• Autofix Option: Handles minor formatting errors

#### Setup Requirements:

1. Add Advanced Structured Output Parser node to the canvas
2. Enable Autofix if required
3. Provide Example JSON schema
4. Connect parser to model output

#### Use Cases:

• JSON-based applications\
• Data validation and structured responses

<figure><img src="/files/rGbD7BY38QuxsGVxjO8v" 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://docs.thub.tech/langchain/output-parsers.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.
