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

# Structured Output

> Extract structured data from a conversation at the end of a session.

# Structured Output

The Structured Output node runs after the conversation ends. It uses an LLM to extract structured data from the full conversation transcript — returning a JSON object with the fields you define. You can then pipe the result to a Webhook.

## Adding a Structured Output node

1. Drag the **Structured Output** node from the sidebar (Post-Processing category) onto the canvas
2. Connect the **End** node's output to the Structured Output node's `end` handle
3. Connect an **LLM** node to its `llm_in` handle
4. Define the schema fields you want extracted
5. Optionally, connect the Structured Output node's output to a **Webhook** node

## Parameters

| Parameter      | Type           | Description                                                                                                      |
| -------------- | -------------- | ---------------------------------------------------------------------------------------------------------------- |
| `command`      | text           | Instruction for extraction (e.g., "Extract the customer's name, issue type, and whether the issue was resolved") |
| `schemaFields` | schema\_fields | The fields to extract — each with a name, type, and optional description                                         |

### Schema field types

| Type      | Description                  |
| --------- | ---------------------------- |
| `string`  | Free-form text               |
| `int`     | Integer number               |
| `float`   | Decimal number               |
| `boolean` | True/false value             |
| `list`    | Array of strings             |
| `enum`    | One of a fixed set of values |

## Output

The extracted data is available as a JSON object matching your schema. When chained to a Webhook, it is sent as the `structuredOutput` field in the POST body:

```json theme={null}
{
  "structuredOutput": {
    "customerName": "Jane Smith",
    "issueType": "billing",
    "sentiment": "negative",
    "resolved": false
  }
}
```

## Typical pattern

```
[End] ──▶ [Structured Output] ──▶ [Webhook]
```

## Use cases

* Extract leads (name, email, interest level) from a sales call
* Classify support tickets and collect issue details at the end of the call
* Score call quality or customer sentiment
* Build a CRM record automatically from each conversation
