Dialog Building Blocks ๐Ÿงฉ

Last updated: October 2026

Every conversation of your digital coach โ€“ a welcome, a daily check-in, a lesson โ€“ is put together from a small set of building blocks. Think of it like this: first the coach says something, then the user answers, then the coach decides what comes next.

This page explains each building block in plain words: what it does, when you need it and what to watch out for. Each block ends with links to the chapters that show how to set it up in CoachStudio โ€“ the blocks are spread across the Coaching Editor, Messages & Media, the CoachStudio Designer and Advanced & Integrations, and this page is the map between them.

Looking for a specific task instead, e.g. "jump to a later message" or "start a dialogue every morning"? The Quick Finder lists them by building block.

Which Building Block Do I Need?

Not sure where to start? Answer a few yes/no questions and get the building block you need โ€“ with links to the instructions.

Should the participant enter or choose something?

Several questions in a row, like an assessment or a weekly check?

What should the participant give you?

Should the participant be able to open something โ€“ e.g. a website, an info card or an exercise?

Should they find it again later in the app?

Should the coach say something?

Only under a certain condition โ€“ e.g. depending on an earlier answer?

Should it sound different each time โ€“ e.g. in a daily check-in?

Should the dialogue decide where it continues?

Continue within the same Micro Dialog?

Come back to this dialogue afterwards?

Should a value be remembered or calculated?

Should something happen at a certain time โ€“ or after a while?

You need

๐Ÿ“‹ Survey

Build a questionnaire in the CoachStudio Designer and open it from the chat.

You need

โœ๏ธ Collect Answer โ€“ select one / select many

Answer options as buttons, one per line in the form label:value. With select many, several options can be picked.

You need

โœ๏ธ Collect Answer โ€“ free numbers, date or time

Optional min and max values limit what the participant can enter.

You need

โœ๏ธ Collect Answer โ€“ free text

Use the Raw variant for names, so the spelling is kept exactly as typed.

You need

โœ๏ธ Collect Answer โ€“ image, audio or video

The participant takes a photo or records audio or video on their phone and uploads it.

You need

๐Ÿ‘๏ธ Display Content โ€“ Media Library

show-media-library shows the item in the chat and stores it in the media library; media-library-button opens it again later. Info cards work the same way.

You need

๐Ÿ”˜ Show Button

A command message: show-link opens the browser, show-web opens the page inside the app.

You need

๐Ÿ’ฌ Message Bubble with a message rule

The message is only sent if all of its rules are true.

You need

๐Ÿ’ฌ Message Bubble โ€“ randomized messages

Write several versions in one randomisation group โ€“ the coach picks one of them.

You need

๐Ÿ’ฌ Message Bubble

A plain message. Several bubbles in one message: put --- on a line of its own.

You need

๐Ÿ”€ Decision โ€“ jump to a message

A decision point with Jump to dialogue message if TRUE / FALSE skips messages or branches within the Micro Dialog.

You need

๐Ÿ”€ Decision โ€“ cascade

Runs the other Micro Dialog and then returns to this one โ€“ ideal for reusable dialogues.

You need

๐Ÿ”€ Decision โ€“ jump to another dialogue

Continues in the other Micro Dialog for good; this one is not resumed.

You need

๐Ÿ—„๏ธ Store Value

Store an answer in a result variable, or calculate a value in a decision point.

You need

โฑ๏ธ Wait โ€“ and global execution rules

Global execution rules start a dialogue at a certain time; a time limit ends a question that isn't answered.

You need

๐Ÿงฎ Logic Block

A JavaScript rule for everything the other blocks can't do โ€“ e.g. complex calculations or AI calls.

Content & Interaction

What the user sees and does in the chat.

Building block What it does
๐Ÿ’ฌ Message Bubble Shows text, images, audio, video or links in the chat.
โœ๏ธ Collect Answer Asks the user for an answer โ€“ a choice, a number, a date or free text.
๐Ÿ”˜ Show Button Shows a button that opens an app function, e.g. a website, an info card or a media item.
๐Ÿ‘๏ธ Display Content Shows content you prepared once and stored in the app, e.g. an info card or a meditation.
๐Ÿ“‹ Survey Launches a questionnaire.

Message Bubble

๐Ÿ’ฌ Display text, images, audio or links. The Message Bubble is the voice of your coach: everything the coach says in the chat is a Message Bubble.

What it does

A Message Bubble shows one message from the coach. It can contain:

  • text โ€“ plain or with simple formatting
  • personal details โ€“ e.g. the user's name or a value the user entered earlier ("You slept 6 hours last night.")
  • media โ€“ an image, a video or an audio file
  • links

A Message Bubble can also appear only under certain conditions โ€“ e.g. a congratulation that is only shown when the user reached their goal.

When to use it

Whenever the coach says something: greeting, explaining, encouraging, giving feedback, asking a question. If the coach expects an answer, combine the Message Bubble with Collect Answer.

Example

๐Ÿ’ฌ "Hi Laura! ๐Ÿ‘‹ Yesterday you planned to go for a walk. Did it work out?"

Good to know

  • Short and interactive. One idea per bubble, only a few bubbles in a row, and an interaction at the latest by the middle of the screen โ€“ the rules of thumb are collected in Message Length and Interactivity.
  • Variety for recurring dialogues. Prepare several versions of a message and let the coach pick one at random, so a daily check-in doesn't sound the same every day.

In the Coaching Editor

A message in the Coaching Editor: the message text and an attached image
The message text and an uploaded image

Set it up in CoachStudio: Creating a new message ยท Message text and placeholders ยท Message rules ยท Randomized and looped messages ยท Media in Micro Dialogs ยท Media Objects
Tips: Coaching Dialogues

Collect Answer

โœ๏ธ Get user input and responses. With Collect Answer, the coach asks the user something and waits for the reply. The answer can be remembered and used later in the coaching.

What it does

Collect Answer adds an answer field to a coach's question. The user can answer in different ways:

The user โ€ฆ Answer type
picks exactly one option from buttons Select One
picks several options Select Many
types a short or long text Free Text, Free Text Multiline
enters a number Free Numbers
types something that must be saved exactly as typed, e.g. their name Free Text Raw, Free Text Multiline Raw, Free Numbers Raw
picks a date, a time or both Date, Time, Date and Time
rates something on a scale Likert, Likert Slider

The answer can be saved with Store Value and used by a Decision โ€“ e.g. to react differently to Good and Bad.

When to use it

Whenever the coach needs to know something from the user: how they feel, what they want to do, a measurement, a preference. If you need many questions at once โ€“ e.g. a symptom assessment โ€“ use a Survey instead.

Example

๐Ÿ’ฌ "How stressed do you feel right now?"
โœ๏ธ Not at all ยท A little ยท Very

Good to know

  • Choose the simplest answer type that fits. Buttons are faster to answer than free text.
  • Names need the Raw variant. Normal text answers are cleaned up automatically (e.g. converted to lowercase, superfluous spaces removed). That's helpful for most answers โ€“ but a name should be saved exactly as the user typed it.
  • Make options clearly distinct. Good and Rather good are hard to tell apart.
  • Think about users who don't answer. By default, the coach waits until the user replies โ€“ see Wait.

In the Coaching Editor

A message that expects an answer: answer type, answer options and the variable the reply is stored in
"This message expects to be answered by the participant" turns a message into a question: choose the answer type, the answer options and the variable for the reply

Set it up in CoachStudio: Message responses ยท User responses and answer types (all answer types with previews) ยท Saving responses to variables
Tips: User Response Options

Show Button

๐Ÿ”˜ Display action buttons. Show Button places a button in the chat that opens something โ€“ a website, an info card, an exercise or another part of the app.

What it does

The button is not an answer to a question (that is Collect Answer) โ€“ it is a shortcut to an app function. Depending on what you need, a button can:

The button โ€ฆ Example
opens an external website in the browser "Book an appointment"
opens a web page inside the app "Read the article"
opens an info card in a window (modal) "What is ADHD?"
opens an item of the media library "Start the meditation"
opens a questionnaire "Start the weekly check"

When to use it

When the coach points the user to something outside the chat โ€“ further reading, an exercise, a booking page โ€“ and the user should decide when to open it.

Example

๐Ÿ’ฌ "Here's a 5-minute breathing exercise for stressful moments."
๐Ÿ”˜ Start breathing exercise

Good to know

  • Name the button after what happens. Start breathing exercise is clearer than Click here.
  • External links ask the user to confirm before leaving the app.
  • One button per message keeps the chat clear.

In the Coaching Editor

A command message with show-link
A button is a message marked as a command โ€“ here show-link with the URL and the button title

Set it up in CoachStudio: Buttons are created with commands โ€“ a special kind of message: Navigation & Display Commands (links, web pages) ยท Media Library (buttons to media items and info cards) ยท Linking Questionnaires in the App (buttons to questionnaires)

Display Content

๐Ÿ‘๏ธ Show stored content. Some content is prepared once and stored in the app โ€“ an info card about a topic, a meditation, a video series. Display Content brings it to the user at the right moment.

What it does

Instead of writing everything into chat messages, you prepare content once and show or unlock it from the dialogue:

Stored content What the user gets
Info cards A card with formatted text to read โ€“ e.g. background knowledge.
Media library Exercises, meditations, audios and videos the user can come back to at any time.
App news A news entry in the app, e.g. "New lesson available".

When to use it

  • For longer content that would be too much for a chat bubble.
  • For content the user should find again later โ€“ e.g. exercises in the media library.
  • For content that is unlocked step by step โ€“ e.g. a new lesson each week.

Example

๐Ÿ’ฌ "Great job finishing module 2! ๐ŸŽ‰ I've added a new meditation to your library."
๐Ÿ‘๏ธ Meditation "Calm Down" is unlocked in the media library.

Good to know

  • Content is usually shown or opened with a Show Button โ€“ the user decides when to open it.
  • Prepare stored content in the CoachStudio Designer before you build the dialogue that uses it.

Set it up in CoachStudio: Infocards ยท Media Library ยท Service Channel News ยท Commands (unlock and show stored content from a dialogue)

Survey

๐Ÿ“‹ Launch a questionnaire. A Survey opens a questionnaire with several questions on its own screen โ€“ e.g. a symptom assessment, a knowledge quiz or a weekly review.

What it does

A questionnaire is prepared once in the CoachStudio Designer and can contain several pages with questions, texts and images. From the dialogue, you make it available to the user:

  • in the chat โ€“ as a button the user taps to start it right now, or
  • in the questionnaire overview โ€“ a list in the chat header where the user can open it whenever they like.

The answers can be handed back to the coaching, so the coach can react to them โ€“ e.g. "Your symptoms improved compared to last week. ๐Ÿ’ช"

When to use it

  • Several related questions that belong together โ€“ Collect Answer is better for a single question.
  • Standardized assessments that must always look the same.
  • Recurring checks โ€“ e.g. the same rating every week to show progress.

Example

๐Ÿ’ฌ "It's Sunday โ€“ time for your weekly check! It takes about 3 minutes."
๐Ÿ“‹ Start weekly check

Good to know

  • Tell the user how long the questionnaire takes.
  • Questionnaire answers are not automatically available in the coaching โ€“ define which answers should be handed over.
  • Questionnaires can show or skip questions depending on earlier answers.

In the Coaching Editor

A command message with the questionnaire command
A questionnaire is made available with a command message (questionnaire โ€ฆ)

Set it up in CoachStudio: Questionnaires ยท Saving answers to variables ยท Linking questionnaires in the app

Flow & Logic

What happens behind the scenes โ€“ the user does not see these blocks, but they shape the conversation.

Building block What it does
โฑ๏ธ Wait Pauses the conversation โ€“ until the user answers, for a limited time, or until later.
๐Ÿงฎ Logic Block Runs your own code for calculations and logic the other blocks cannot do.
๐Ÿ—„๏ธ Store Value Saves a number, a text or true/false to use later.
๐Ÿ”€ Decision Branches the conversation โ€“ "if โ€ฆ, then โ€ฆ" โ€“ or continues in another dialogue.

Wait

โฑ๏ธ Pause the conversation. A good coach doesn't talk all the time. Wait pauses the conversation โ€“ until the user replies, for a limited time, or until the right moment for the next dialogue.

What it does

There are three ways the coach can wait:

The coach waits โ€ฆ What happens Example
until the user answers (standard) The question stays open in the chat until the user replies. "How did you sleep?"
for a limited time The question disappears if it isn't answered in time, and the coaching continues. An interim "Okay", or a reminder that is no longer relevant in the evening
until later The dialogue ends here; the next one starts at a set time or after a user action. "See you tomorrow morning!"

When to use it

  • After every question โ€“ decide how long the coach should wait for the answer.
  • Between sessions โ€“ a coaching session should not take longer than about 10 minutes; continue the next day instead.
  • After a task โ€“ e.g. wait until the user has finished an exercise.

Good to know

  • Plan for users who don't answer. Some users reply hours later or not at all. Decide what happens then โ€“ does the question stay open, or does the coaching move on?
  • Give unimportant questions a time limit. If a simple "Okay" isn't answered within a few minutes, the coaching moves on and a push notification brings distracted users back โ€“ instead of leaving them stuck until the next day.
  • What if another dialogue is due? If a new dialogue (e.g. the evening check-in) starts while a question is still open, decide which one has priority โ€“ see Defining the Conversational Coaching Flow.
  • The right moment matters. Fixed times, times chosen by the user and reactions to user actions all have their pros and cons โ€“ see Timing Messages.

Set it up in CoachStudio: Message responses (waiting for an answer, and the time limit for answering) ยท Blocking questions vs. time-out questions ยท Global execution rules (when the next dialogue starts, at a set time or after a user action)

Logic Block

๐Ÿงฎ Run custom code. For the rare cases where the other building blocks are not enough, the Logic Block lets you run your own small program โ€“ e.g. a complex score or text processing.

What it does

A Logic Block runs a short piece of JavaScript code inside the coaching. It can read stored values, calculate something new and store the result for the rest of the dialogue. The user doesn't see the Logic Block โ€“ they only see its effect, e.g. a personal score in the next message.

When to use it

Only when simpler blocks can't do it:

You need โ€ฆ Use
to remember an answer or set a value Store Value
simple calculations (add, compare, count days) Store Value or Decision
a complex formula, lists, text processing Logic Block

Example

๐Ÿงฎ Calculate the ADHD symptom score from 18 single ratings and compare it with last week's score.
๐Ÿ’ฌ "Your score went down by 4 points since last week. ๐ŸŽ‰"

Good to know

  • Programming skills required. A Logic Block is a technical element โ€“ in a script, describe what it should calculate and let a developer write the code.
  • Document it. Mark every calculation clearly in your dialogue script.

In the Coaching Editor

Creating a rule with the rule type execute javascript
A Logic Block is a rule inside a decision point with the rule type "execute javascript in x and store values but result is always true"

Set it up in CoachStudio: JavaScript Snippet ยท Decision points (a Logic Block is a special rule inside a decision point)

Store Value

๐Ÿ—„๏ธ Save numbers, text or true/false. Store Value is the memory of your coach: it remembers answers, progress and settings so the coaching can become personal.

What it does

Store Value saves a value under a name โ€“ technically, a variable โ€“ e.g. sleepRating, preferredName or module2Completed. Values can be:

Type Example
Number number of completed exercises: 3
Text the user's preferred name: Laura
True/false onboarding finished: true

A value can come from a user's answer, be set to a fixed value, or be calculated โ€“ e.g. "number of completed exercises + 1".

When to use it

  • To personalize messages โ€“ "Good morning, Laura!"
  • To remember progress โ€“ which lesson comes next, how many days in a row the user checked in.
  • To branch later โ€“ a Decision can only react to what has been stored.
  • To measure success โ€“ stored values are what you later analyse to check your goals and KPIs.

Example

โœ๏ธ "How many hours did you sleep?" โ†’ 6
๐Ÿ—„๏ธ Store 6 as sleepHours.
๐Ÿ’ฌ "6 hours โ€“ a bit less than your goal of 7. Let's see what helps."

Good to know

  • Use clear, consistent names โ€“ you and your team will look for them again.
  • Answers create their value automatically โ€“ you don't have to prepare a variable for every question.
  • Values that may not exist yet need a default. If a value could be read before it was written โ€“ e.g. because the user skipped a dialogue โ€“ create it beforehand with a recognizable default value (e.g. -99). Then you can tell that it hasn't been written yet.
  • Plan values early. List all values you need โ€“ especially for your analytics โ€“ while writing the dialogue script.

Set it up in CoachStudio: Variables ยท Saving responses to variables (incl. default values) ยท Operators for creating variables

Decision

๐Ÿ”€ Add branching logic. With a Decision, the conversation stops being a straight line: the coach reacts to what the user said, skips what doesn't fit, and continues in the right dialogue.

What it does

A Decision checks one or more conditions โ€“ "if โ€ฆ" โ€“ and chooses how the conversation continues. The user doesn't see the Decision, only its result. A Decision can:

  • branch โ€“ continue with different messages depending on an answer ("if the user slept badly โ€ฆ")
  • skip messages that are not relevant for this user
  • jump to another dialogue โ€“ the conversation continues there and does not come back
  • cascade into another dialogue โ€“ the conversation runs that dialogue and then returns, ideal for reusable parts such as an exercise or a "goodbye" sequence
  • calculate and store values along the way (see Store Value)

Conditions can compare texts, numbers, dates and times, and be combined with AND / OR.

When to use it

  • To react to answers โ€“ different feedback for Good and Bad.
  • To personalize the path โ€“ show content depending on the user's progress or preferences.
  • To reuse dialogues โ€“ cascade into a shared exercise instead of copying it into every dialogue.
  • For exceptions โ€“ e.g. no check-in on the day of registration.

Example

โœ๏ธ "How did you sleep?" โ†’ Badly
๐Ÿ”€ If the answer is "Badly" โ†’ cascade into the dialogue "Sleep tips", then continue.
๐Ÿ”€ Otherwise โ†’ continue with "Let's look at your plan for today."

Good to know

  • Build each day from a control dialog. One dialogue checks which day of the coaching it is and cascades into the small dialogues due that day โ€“ each of them can be written and tested on its own. See the pattern Control Dialog for Each Day.
  • Check for dead ends. Every branch needs a way forward โ€“ think through all possible answers.
  • Keep it flat. Many nested jumps quickly become hard to follow; reusable dialogues via cascades are easier to maintain.
  • A message can also have its own condition โ€“ then it's only shown if the condition is true, without a separate Decision.

In the Coaching Editor

A decision point with a rule that jumps to another Micro Dialog
A decision point with one rule โ€“ here a jump to another Micro Dialog

The rule dialog of a decision point with condition, result variable, cascade and jump options
Each rule has a condition (rule and comparison term) and defines what happens if it is true: store a result, cascade or jump to another dialogue, or jump to a message

Set it up in CoachStudio: In CoachStudio, a Decision is a decision point inside a Micro Dialog: Decision points ยท Decision point rules ยท Message conditions ยท Rule types (operator reference) ยท Cascading dialogues

Example: A Morning Check-in

This is how the building blocks of a simple daily check-in fit together:

  1. ๐Ÿ’ฌ Message Bubble โ€“ "Good morning, Michael! โ˜€๏ธ How did you sleep?"
  2. โœ๏ธ Collect Answer โ€“ buttons: Great ยท Okay ยท Badly
  3. ๐Ÿ—„๏ธ Store Value โ€“ the answer is saved as the sleep rating of today.
  4. ๐Ÿ”€ Decision โ€“ if the answer was Badly โ†’
    • ๐Ÿ’ฌ Message Bubble โ€“ "I'm sorry to hear that. Here's a short exercise that may help."
    • ๐Ÿ”˜ Show Button โ€“ Start breathing exercise
  5. ๐Ÿ’ฌ Message Bubble โ€“ "Let's look at your plan for today."
  6. โฑ๏ธ Wait โ€“ the next check-in starts tomorrow morning.

Tip: Write your dialogues down before you build them โ€“ the Micro Dialog script uses the same building blocks.

How Building Blocks Relate to CoachStudio

In CoachStudio, the building blocks live inside Micro Dialogs โ€“ the small, reusable dialogues a coaching is made of. Most blocks are a message (with or without an expected answer), a decision point or a setting of one of them. Which dialogue starts when is defined by the coaching's rules.