1. Layouts
  2. Blocks

Layouts

Blocks

Blocks are individual containers of functionality on a stub. You can configure which blocks are accessible on a stub through the template's layout.

There are many types of blocks that expose functionality and information to the user on the Stubber Platform. Some examples of functions a block can perform :

  • display debug information
  • display custom HTML
  • holder for a specific action
  • state flow information

Structure of a block

Every block in the template's layout follows the following structure:

loading...

Highlighted blocks

A block can be highlighted by setting params.highlighted to true, which will give the block a glowing blue outline.

Example config of a highlighted header block:

loading...

Examples

The resulting header block will look like this:

Conditions

Blocks can be hidden or displayed using conditions. If all conditions pass, the block will be displayed.

Example config of an AI Debug block that will only be visible on draft stubs.

loading...

Available blocks

The following blocks are available. Select a block to learn how it works and how to configure it.

Block blocktype Purpose
Actions Menu actionsmenu Displays and runs the actions currently available on a stub.
AI Debug ai_debug Displays LLM chat logs and token usage for debugging AI interactions.
Chart chart Displays charts and graphs from stub data.
Draft Indicator is_draft_indicator Indicates that a stub was created from the draft branch.
Header header Displays key stub information, navigation, and actions.
Hosted WantTo hostedwantto Displays the complete form for a single action.
Info infoblock Displays custom HTML and substituted dynamic content.
Posts Container postscontainer Displays a stub's posts, attachments, tasks, data, and comments.
Schedules schedules Displays schedules created on a stub.
Search Knowledge Library Debug search_knowledge_library_debug Displays detailed knowledge-library search results for debugging.
State Description state_description Displays the description of the stub's current state.
Stub Sessions stub_sessions Displays active communication sessions associated with a stub.
Stub Details details Displays detailed stub information such as people, files, metrics, billing, and data.
Stub Listing stublisting Displays a configurable, queried list of stubs.
Update update Runs the _update action, or another configured action, from the layout.