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

# template.selected

> Emitted when a template is selected.

## Event Properties

| Field          | Value                 |
| -------------- | --------------------- |
| `event`        | `"template.selected"` |
| `confidential` | `boolean`             |
| `payload`      | `object`              |

<Tabs>
  <Tab title="Public Payload">
    | Field                      | Type     | Description                       |
    | -------------------------- | -------- | --------------------------------- |
    | `selectedTemplateId`       | `string` | Identifier of the chosen template |
    | `selectedTemplateLanguage` | `string` | Language of the chosen template   |

    #### Example

    ```json theme={null}
    {
      "event": "template.selected",
      "confidential": false,
      "payload": {
        "selectedTemplateId": "template_selected",
        "selectedTemplateLanguage": "en"
      }
    }
    ```
  </Tab>

  <Tab title="Confidential Payload">
    | Field                      | Type     | Description                       |
    | -------------------------- | -------- | --------------------------------- |
    | `selectedTemplateId`       | `string` | Identifier of the chosen template |
    | `selectedTemplateLanguage` | `string` | Language of the chosen template   |

    #### Example

    ```json theme={null}
    {
      "event": "template.selected",
      "confidential": true,
      "payload": {
        "selectedTemplateId": "template_selected",
        "selectedTemplateLanguage": "en"
      }
    }
    ```
  </Tab>
</Tabs>
