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

# Attention Create Scorecard: Inputs, Cost & CLI Example

> Create Scorecard. Attention Attention Create Scorecard docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=attention_create_scorecard:{"title":"{{title}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                           | Type                                  | Required | Default | Description                                                                                                                |
| ------------------------------ | ------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------- |
| `payload.title`                | `string`                              | Yes      |         | Human-readable title of the scorecard (1-128 characters, trimmed).                                                         |
| `payload.teamUUID`             | `string`                              | No       |         | UUID of the team to assign the scorecard to. Mutually exclusive with allTeams=true. Omit both for an unassigned scorecard. |
| `payload.allTeams`             | `boolean`                             | No       | `false` | Assign the scorecard to every team in the organization. Mutually exclusive with teamId.                                    |
| `payload.enabled`              | `boolean`                             | No       | `true`  | Whether the scorecard is active after creation.                                                                            |
| `payload.interactionType`      | `"conversation" \| "chat" \| "email"` | No       |         | Type of interaction the scorecard evaluates.                                                                               |
| `payload.detailedInstructions` | `string`                              | No       |         | Optional free-form guidance (0-2000 characters).                                                                           |
| `payload.scorecardPrompt`      | `string`                              | No       |         | Optional prompt override for expert mode (0-8000 characters).                                                              |
| `payload.expertMode`           | `boolean`                             | No       | `false` | Whether the scorecard uses custom prompts instead of the default template.                                                 |
| `payload.criteria`             | `object`                              | No       |         | Label-based criteria that gate when a scorecard is applied to an interaction.                                              |

### Allowed values

| Field                     | Allowed values                  |
| ------------------------- | ------------------------------- |
| `payload.interactionType` | `conversation`, `chat`, `email` |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Payload for creating a scorecard template.",
    "properties": {
      "title": {
        "type": "string",
        "description": "Human-readable title of the scorecard (1-128 characters, trimmed)."
      },
      "teamUUID": {
        "type": "string",
        "description": "UUID of the team to assign the scorecard to. Mutually exclusive with allTeams=true. Omit both for an unassigned scorecard."
      },
      "allTeams": {
        "type": "boolean",
        "description": "Assign the scorecard to every team in the organization. Mutually exclusive with teamId.",
        "default": false
      },
      "enabled": {
        "type": "boolean",
        "description": "Whether the scorecard is active after creation.",
        "default": true
      },
      "interactionType": {
        "type": "string",
        "description": "Type of interaction the scorecard evaluates.",
        "enum": [
          "conversation",
          "chat",
          "email"
        ]
      },
      "detailedInstructions": {
        "type": "string",
        "description": "Optional free-form guidance (0-2000 characters)."
      },
      "scorecardPrompt": {
        "type": "string",
        "description": "Optional prompt override for expert mode (0-8000 characters)."
      },
      "expertMode": {
        "type": "boolean",
        "description": "Whether the scorecard uses custom prompts instead of the default template.",
        "default": false
      },
      "criteria": {
        "type": "object",
        "description": "Label-based criteria that gate when a scorecard is applied to an interaction.",
        "properties": {
          "operator": {
            "type": "string",
            "description": "Boolean operator joining criteria conditions.",
            "enum": [
              "AND",
              "OR"
            ]
          },
          "conditions": {
            "type": "array",
            "description": "List of field/value conditions evaluated with the operator.",
            "items": {
              "type": "object",
              "description": "A single criteria condition pairing a field path with an expected value.",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "Field path being matched (for example, a label UUID or label option UUID)."
                },
                "value": {
                  "type": "string",
                  "description": "Expected value for the field to satisfy the condition."
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "title"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Single-resource envelope wrapping a Scorecard. |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Single-resource envelope wrapping a Scorecard.",
        "properties": {
          "data": {
            "type": "object",
            "description": "A scorecard template used to evaluate a conversation, chat, or email.",
            "properties": {
              "uuid": {
                "type": "string",
                "description": "Scorecard UUID."
              },
              "title": {
                "type": "string",
                "description": "Human-readable title of the scorecard (1-128 characters)."
              },
              "organizationUUID": {
                "type": "string",
                "description": "UUID of the organization that owns the scorecard."
              },
              "teamUUID": {
                "type": "string",
                "description": "UUID of the specific team assigned to this scorecard, if any. Mutually exclusive with allTeams=true."
              },
              "allTeams": {
                "type": "boolean",
                "description": "Whether the scorecard is assigned to every team in the organization."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether the scorecard is active and runs against new interactions."
              },
              "interactionType": {
                "type": "string",
                "description": "Type of interaction the scorecard evaluates.",
                "enum": [
                  "conversation",
                  "chat",
                  "email"
                ]
              },
              "detailedInstructions": {
                "type": "string",
                "description": "Optional free-form guidance appended to the evaluator prompt."
              },
              "scorecardPrompt": {
                "type": "string",
                "description": "Optional prompt override used in expert mode."
              },
              "expertMode": {
                "type": "boolean",
                "description": "Whether this scorecard uses custom prompts (expert mode) instead of the default template."
              },
              "isDefaultTemplate": {
                "type": "boolean",
                "description": "Whether this scorecard was seeded as one of the default organization templates."
              },
              "criteria": {
                "type": "object",
                "description": "Label-based criteria that gate when a scorecard is applied to an interaction.",
                "properties": {
                  "operator": {
                    "type": "string",
                    "description": "Boolean operator joining criteria conditions.",
                    "enum": [
                      "AND",
                      "OR"
                    ]
                  },
                  "conditions": {
                    "type": "array",
                    "description": "List of field/value conditions evaluated with the operator.",
                    "items": {
                      "type": "object",
                      "description": "A single criteria condition pairing a field path with an expected value.",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "Field path being matched (for example, a label UUID or label option UUID)."
                        },
                        "value": {
                          "type": "string",
                          "description": "Expected value for the field to satisfy the condition."
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "createdAt": {
                "type": "string",
                "description": "Timestamp when the scorecard was created.",
                "format": "date-time"
              }
            },
            "required": [
              "allTeams",
              "createdAt",
              "enabled",
              "expertMode",
              "interactionType",
              "isDefaultTemplate",
              "organizationUUID",
              "title",
              "uuid"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute attention_create_scorecard --payload '{
  "title": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
