Skip to main content
The Widget SDK lets you override default message formatting using templates to display custom-formatted bot messages in the Widget SDK channel. For Web/Mobile SDK templates, see Web & Mobile SDK Message Formatting and Templates.

Template Types

Widget SDK templates support two header option types:
  • url — Opens an external site.
  • postback — Triggers an utterance in the assistant. The payload defines the utterance; nlmeta provides additional context to trigger the task.

Button Template

Displays a clickable button in the header of any message template.
Button template
Displays a dropdown menu in the header of any message template. Supports url and postback menu items.
Menu template

List Template

Displays a formatted list with optional images, buttons, and expandable details per item. Use buttonsLayout.displayLimit.count to control how many buttons show before an overflow icon appears.
List template

Pie Chart Template

Displays data in a pie chart with optional buttons and a header link.
Pie chart template

Line Chart Template

Displays data as a line chart with multiple data series.
Line Chart template
For customized JavaScript responses and channel-specific templates, see JavaScript Prompts or Responses.