Skip to content

Coach item โ€” tag_match

Block type: tag_match ยท Domain: coach-content

Coach items[] discriminator 'tag_match'. Splice point that selects between branches based on the user's previously-tapped tag for a referenced reply_chip_row. The id field is REQUIRED.

Fields

Field Type Required Allowed values Notes
id string yes minLength 1
source string yes Id of a reply_chip_row earlier in the same items list. The playback layer looks up the user's stored tag for that id and matches it against branches. โ€” minLength 1
branches object yes Map of tag-value โ†’ items array. The reserved key _default SHALL match when the user has not selected any tag for source (or selected a tag absent from branches).

Example

{
  "type": "tag_match",
  "id": "mood_branch",
  "source": "mood_check",
  "branches": {
    "good": [
      {
        "type": "received_bubble",
        "text": "Love to hear it."
      }
    ],
    "_default": [
      {
        "type": "received_bubble",
        "text": "Thanks for checking in."
      }
    ]
  }
}