Skip to content

Session content — experiment (CBT behavioural experiment)

Block type: experiment · Domain: session-content

Per-template payload for content.sessions.content where template_type='experiment'. 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
intro_h4 string yes Heading-style intro line (rendered as h4).
intro_body string yes Paragraph below intro_h4.
prompts array yes Exactly two prompts: avoided activity, prediction (in order). — minItems 2 — maxItems 2
alert object yes
alert.icon string no Material Icons name (e.g. 'schedule'). Empty string treated as absent.
alert.text string yes Alert body shown beneath the prompts. — minLength 1

Example

{
  "intro_h4": "Test your assumptions",
  "intro_body": "Pick an activity you've been avoiding because of your tinnitus. Then predict what will happen when you do it anyway.",
  "prompts": [
    {
      "label": "Activity I've been avoiding",
      "hint": "e.g. going to a restaurant",
      "max_lines": 3
    },
    {
      "label": "What I predict will happen",
      "hint": "e.g. the noise will be unbearable",
      "max_lines": 3
    }
  ],
  "alert": {
    "icon": "schedule",
    "text": "Come back after you've tried the activity to record what actually happened."
  }
}