# org.simocracy.interviewTemplate

> Published by [gainforest.earth](https://lexicon.garden/identity/did:plc:qoti4acfmc5wg6zzmtix6hse)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.interviewTemplate)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.interviewTemplate/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.interviewTemplate/examples)

## Definitions

### `org.simocracy.interviewTemplate`

**Type**: `record`

A reusable interview questionnaire template. Captures the questions a sim creator is asked to derive constitution and style.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `questions` | `array` | Yes |  |
| `description` | `string` | No |  |
| `descriptionFacets` | `array` | No |  |

### `org.simocracy.interviewTemplate#question`

**Type**: `object`

A single question inside an interview template.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | Stable ID — lets answers survive prompt edits. |
| `type` | `string` | Yes |  |
| `prompt` | `string` | Yes |  |
| `required` | `boolean` | No |  |

## Raw Schema

```json
{
  "id": "org.simocracy.interviewTemplate",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "questions",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 3000,
            "maxGraphemes": 300
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "questions": {
            "type": "array",
            "items": {
              "ref": "#question",
              "type": "ref"
            },
            "maxLength": 40,
            "minLength": 1
          },
          "description": {
            "type": "string",
            "maxLength": 30000,
            "maxGraphemes": 3000
          },
          "descriptionFacets": {
            "type": "array",
            "items": {
              "ref": "app.bsky.richtext.facet",
              "type": "ref"
            }
          }
        }
      },
      "description": "A reusable interview questionnaire template. Captures the questions a sim creator is asked to derive constitution and style."
    },
    "question": {
      "type": "object",
      "required": [
        "id",
        "type",
        "prompt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "maxLength": 64,
          "description": "Stable ID — lets answers survive prompt edits."
        },
        "type": {
          "type": "string",
          "knownValues": [
            "open",
            "text",
            "yesNo"
          ]
        },
        "prompt": {
          "type": "string",
          "maxLength": 1000
        },
        "required": {
          "type": "boolean",
          "default": false
        }
      },
      "description": "A single question inside an interview template."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
