Templates

Action arguments, custom WebSocket messages and webhook bodies are JSON with {{path}} templates:

{
  "game": "{{gameKey}}",
  "eventName": "{{name}}",
  "payload": "{{data}}",
  "headshot": "{{data.isHeadshot}}",
  "caption": "Event: {{name}}"
}

Rules

  • A whole-value template ("{{data}}") keeps the original JSON type, so numbers, booleans and objects stay as they are.
  • An embedded template ("Event: {{name}}") becomes a string.
  • Missing paths fail visibly before anything is sent.
  • No JavaScript expressions or arbitrary code evaluation are supported.

Available paths

Path Value
name Event name
feature Feature, or the source’s sub-source
category Info category
kind event or info
gameKey Game or source key, for example source:twitch
timestamp Milliseconds since the Unix epoch
data, data.x.y Event data, or a nested value

In Control board buttons that run actions directly, {{data...}} refers to the button’s event data.