Chatbot

Import the Chatbot design and it brings blocks and content types of its own, on top of the main Canvas library. Read this page when you are working on a site built from Chatbot and meet a block you cannot find in the main reference.

These items stay registered on every site so that content you have already imported keeps rendering, and they appear in the block inserter only where the design is in use.

Content types this design adds

Bot Templates

canvas_chatbot_tpl

One item is called a Bot Template. You will find them in their own admin menu once the design is installed.

  • Editor features: custom-fields, editor, excerpt, page-attributes, title

Each item carries these extra settings on its edit screen:

  • Channels Covered

  • Tpl Handles

  • Tpl Icon

  • Tpl Integrations

  • Bot Resolution Rate

  • Setup Time

  • Conversation Steps

  • Tpl Use Case

Blocks this design adds

Bot Templates

canvas-core/chatbot-templates

Show the bot templates from the Templates post type as icon cards, or render the pieces of a single template page (title and call to action, stat rows, more templates). In the block inserter it is named Canvas Bot Templates.

Select the block on a page and its own settings open in the sidebar, in the panels below:

The Bot Templates settings in the block editor sidebar

Layout

  • LayoutDefaultTemplate Cards

    Which part of the template design this block draws. Template Cards lists the library; each "Single Template" choice renders one section of the template page you place it on.

    ChoicesTemplate CardsSingle Template - Title and Call to ActionSingle Template - Stat RowsSingle Template - More Templates

Query

  • TemplatesDefault0

    0 shows every template. The More Templates layout shows three when this is left at 0.

  • Order ByDefaultMenu Order

    What decides the sequence of the cards. Menu Order lets you arrange them by hand on the templates list screen.

    ChoicesMenu OrderDateTitle

  • OrderDefaultAscending

    Which end of that sequence comes first.

    ChoicesAscendingDescending

Display

  • Row ClassesDefaultrow g-4

    Class names on the row holding the cards, which is where the gutter between them is set.

  • Column ClassesDefaultcol-lg-4 col-md-6

    Column classes on each card: how many cards sit side by side at each screen width.

  • Card ClassesDefaultbd-feature-card

    Class names on the card itself, which set its background, border and padding.

  • Icon Badge ClassesDefaultbd-feature-icon

    Class names on the square badge around the icon. Leave empty to draw the icon with no badge.

  • Title ElementDefaulth4

    Which heading level each card title uses, so the page keeps one sensible outline.

    Choicesh2h3h4h5

  • Title Link ClassesDefaulttext-reset

    Class names on the link inside each card title. The default keeps the title in the card's own heading colour.

  • Integrations Line ClassesDefaultbd-integration-pill

    Class names on the line under the description that names the tools a template connects to. Leave empty to hide the line.

  • Record Identity ClassesDefaultOn

    Add WordPress's own per-record classes (post id, type, status) to each card column.

Single

  • Templates Page SlugDefaulttemplates

    Slug of the page that lists every template. The single layouts resolve it to a portable permalink for the use-case line. Empty = no link.

  • Template Title ClassesDefaultbd-section-h2 mt-1 mb-3

    Class names on the template name at the top of its own page.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Description ClassesDefaultbd-plan-desc

    Class names on the short description under the title.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Checklist ClassesDefaultbd-check-list mb-4

    Class names on the list of what the template handles. Leave empty to hide the list.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Button TextDefaultUse this template

    Wording on the button under the checklist. Leave empty for no button.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Button Page SlugDefaultfree-trial

    Slug of the page the button opens. Resolved to a portable permalink so the link is correct on any install or import.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Button ClassesDefaultbtn-bd-primary

    Class names that set the look of the button.

    Shown when Layout is "Single Template - Title and Call to Action"

  • Stat Row ClassesDefaultbd-stat-row

    Class names on each stat row, which draw the rule between rows.

    Shown when Layout is "Single Template - Stat Rows"

  • Stat Label ClassesDefaultbd-stat-label

    Class names on the label at the start of each row.

    Shown when Layout is "Single Template - Stat Rows"

  • Stat Value ClassesDefaultbd-stat-value bd-stat-value--teal

    Class names on the figure at the end of each row.

    Shown when Layout is "Single Template - Stat Rows"

Was this page helpful?