Session content — chipExercise (chip-guided CBT exercise)¶
Block type: chipExercise · Domain: session-content
Per-template payload for content.sessions.content where template_type='chipExercise'. Edit this file in naluma-directus; mirror into naluma-app/assets/schemas/session-content/ in the same change.
Fields¶
| Field | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
intros |
array | yes | 1–N intro paragraphs rendered above the chips. — minItems 1 | |
chips |
array | yes | Selectable chips. value MUST be unique across the chips list. — minItems 1 | |
chips[].label |
string | yes | Visible chip text. — minLength 1 | |
chips[].value |
string | yes | Persisted identifier; written into selected_chips[] on the user-content row. — minLength 1 | |
min_selected |
integer | yes | Done button enables when |selection| >= min_selected. 0 = no minimum. — min 0 | |
max_selected |
integer | yes | Cap on selection size. 0 = unlimited. — min 0 |
Example¶
{
"intros": [
"Which situations tend to trigger your tinnitus distress most?"
],
"chips": [
{
"label": "Quiet rooms",
"value": "quiet_rooms"
},
{
"label": "Stress at work",
"value": "work_stress"
},
{
"label": "Trying to sleep",
"value": "sleep"
},
{
"label": "Social situations",
"value": "social"
}
],
"min_selected": 1,
"max_selected": 3
}