Skip to main content
The comment element holds notes that never render in the output. Use it to document templates, leave notes for teammates, or label sections. The type value is "comment". When to use:
  • Document complex template logic
  • Add notes for other developers
  • Organize and label sections of your template
  • Include metadata that shouldn’t appear in notifications
Comments are ignored at render time and never appear in the output, on any channel.
Basic example
Fields
string
The comment text. It is not rendered in the output.
any
An optional object alongside the comment. Holds metadata, structured notes, or other context that is not rendered.
Examples and variants Simple comment Add a basic text comment:
Comment with metadata Include structured data with your comment:
Organizing template sections Use comments to organize and label different sections: