Skip to main content
Skip table of contents

Discover each dynamic composer template

Last updated: 03 January 2023

You can use templating to dynamically create any of our composer types. In this doc, we cover the values each of our composer types needs to contain to work appropriately.

type always takes the value of the composer you are building. For example, to build a message composer, you will enter "Type": "Standard", for a fuzzy, "Type": "fuzzy", etc.

Composer

Template

Values

Message

CODE
{
    "type": "message",
    "content": {
      "type": "text",
      "placeholder": "your copy",
      "disabled": false,
      "show_file_upload": false
    }
}
  • type: text or password.

  • placeholder: text string, up to 255 characters.

  • disabled: true or false.

  • show_file_upload: true or false.

Fuzzy

CODE
{
    "type": "fuzzy",
    "content": {
      "placeholder": "Choose 
        an option...",
      "multi': false,
      "items": [
        {"label": "", 
          "value": ""}
      ]
    } 
}
  • placeholder: text string, up to 255 characters.

  • multi: true or false.

  • items: array, minimum 1, maximum 1,000.

  • item label: text string, up to 255 characters.

  • item value: text string, up to 255 characters.

Numeric

CODE
{
    "type": "numeric",
    "content": {
      "placeholder": "Enter 
        a number...",
      "disabled": false
    } 
}
  • placeholder: text string, up to 255 characters.

  • disabled: true or false.

Date

CODE
{
    "type": "date",
    "content": {} 
}
  • content: must be {}

Time

CODE
{
    "type": "time",
    "content": {} 
}
  • content: must be {}

Date time

CODE
{
    "type": "date-time",
    "content": {} 
}
  • content: must be {}

Deactivated

CODE
{
    "type": "deactivated",
    "content": {} 
}
  • content: must be {}

Feedback

CODE
{
    "type": "feedback",
    "content": {} 
}
  • content: must be {}

Hidden

CODE
{
    "type": "hidden",
    "content": {} 
}
  • content: must be {}

Auth

CODE
{
    "type": "auth",
    "content": {} 
}
  • content: must be {}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.