LLM Speech Session

Last updated: November 2026

1 Concept

An LLM Speech Session is an LLM Session by speech: app users talk with the digital coach in a natural, spoken conversation instead of typing. The coach answers with a spoken voice.

  • Same logic as text sessions: the prompt sets the topic, the information to gather and the stop criterion
  • User stays in control: the user can interrupt the coach at any time and end the session by voice or with a click
  • Bi-directional handshake: seamless hand-over from the rule-based coaching to the LLM and back
  • Transcript in the chat flow: the full transcript is shown during the session and remains available in the chat afterwards
  • Multilingual: available in English and in German, French and Italian variants (see 3 Supported Languages)

2 Availability and Costs

LLM Speech Sessions are available on request and are enabled per project. Speech processing is considerably more expensive than text-based LLM features, so the feature is not active by default.

As long as it is not enabled for your project, llm speech session is shown greyed out in the message type selection and cannot be chosen.

Message type selection with llm speech session greyed out

To enable LLM Speech Sessions for your project, contact Pathmate. LLM usage incurs additional costs, see LLM Hub.

3 Supported Languages

Speech sessions are available in these languages:

Code Language
en-GB English (United Kingdom)
de-DE German (Germany)
de-CH German (Switzerland)
fr-CH French (Switzerland)
it-CH Italian (Switzerland)

The session runs in the language the app user has selected — both what the coach understands and how it answers. The coach's voice is predefined by Pathmate and cannot be configured per coaching.

Write the prompt, meta information and stop criterion in English, as for all LLM features. Only the speech offer text is written per language, because app users see it.

4 Creating an LLM Speech Session

Speech sessions are configured in the CoachStudio Coaching Editor, the same way as text-based LLM sessions:

  1. Navigate to Micro Dialogs
  2. Create a new message
  3. Select llm speech session as message type

Edit micro dialog message with an LLM speech session

4.1 Configuration Fields

Field Description
Comment Internal note for the coaching designer; not shown to app users
Prompt (with placeholders) How the coach starts and leads the conversation, e.g. which topic to talk about and which information to gather
Speech offer text (with placeholders) The chat message that offers the speech session to the app user, e.g. "Let's chat a bit…". Written per language
LLM Configuration The LLM slot (LLM1–LLM5) whose configuration from the LLM Hub is used
LLM Meta Information (with placeholders) Scope and topic of the conversation
LLM Session Stop Criterion (optional, with placeholders) When the coach ends the conversation
LLM Session Identifier (optional, with placeholders) Links sessions into a shared conversational context
LLM Session Result Variables (optional) Variables the LLM extracts from the conversation
Rules The message is only sent if all rules are true

Prompt, meta information, stop criterion, session identifier and result variables work exactly as in a text-based LLM session. See LLM Session for details.

4.2 Prompt

The prompt describes how the coach should lead the conversation. Click Edit next to the prompt to open the editor. Variables can be inserted from the list on the right, and Variable overrides for test runs let you set example values for testing.

Example:
Ask for the name and age (step by step) but not directly at the start, start with wellbeing chatting first.

Edit LLM Prompt dialog

4.3 Stop Criterion

The stop criterion tells the coach when to end the conversation. Combine the user's wish to stop with the goal of the session, for example the collected result variables.

Example:
When the user wants to stop the chat of the conversation or when you collected both variables.

Edit LLM Session Stop Criterion dialog

4.4 Result Variables

Result variables are extracted from the spoken conversation and stored as coaching variables. For each variable, define a name, a description (context for the LLM) and a type.

Example:

Variable Description Type
$participantName The name of the user freetext raw
$age The age of the user number - eg. 42

Edit LLM session result variables dialog

All supported types are listed in LLM Session.

4.5 Example: Speech Session in a Micro Dialog

After the speech session, the micro dialog continues with the rule-based flow and can use the extracted variables right away — for example a message "Name: $participantName …" that confirms what was collected.

Micro dialog with two LLM Speech Sessions

In this example, the micro dialog contains two speech sessions with different strategies: one starts with small talk and asks for name and age later, the other asks for them directly. Each is followed by a message that uses the result variables.

5 User Experience

This section describes what app users see and do during a speech session.

5.1 Starting the Conversation

The chat shows the speech offer text as a message marked as AI generated. Below it, the app user gets two options:

  • Start speech session — opens the speech session
  • Not now — declines the offer

Speech sessions need access to the device's microphone.

Chat with the speech offer text and the buttons Start speech session and Not now (German app)

5.2 During the Conversation

The app switches to a full-screen speech view, and the coach opens the conversation, for example: "Hello there. I'm your digital coach. How are you doing today?"

  • Everything that is said appears live as chat bubbles — the user's words and the coach's answers
  • The microphone button at the bottom shows that the app is listening
  • The user can pause briefly to think without the coach jumping in
  • The user can interrupt the coach while it is speaking; the coach stops and listens
Full-screen speech view with the coach's first message, the microphone button and the red end button

5.3 Ending the Conversation

A speech session ends in one of three ways:

  • By the coach, when the stop criterion is met (e.g. all result variables are collected)
  • By request, when the user explicitly asks to stop, e.g. "Stop the conversation now."
  • Manually, at any time, with the red button at the bottom of the speech view

Afterwards, the coaching continues with the next message of the micro dialog.

The coach does not always recognise a casual "that's enough for now" as the end of the conversation. An explicit request or the red button always works.

5.4 Reviewing the Transcript

After the session, the chat shows an entry Speech session with \<coach name> with the time and duration of the session. Tapping it opens the Conversation view with the complete transcript, so the user can read through it again at any time — including what the coach understood.

The rule-based flow then continues. In this example, a message confirms the result variables collected during the session (name and age).

Chat after the speech session with the entry Speech session with Mileo and a message showing the collected name and age (German app)

6 Data Export

Speech sessions are fully traceable in the Data Export. Both sides of the conversation are transcribed and stored:

File Content
llm-sessions-list.csv The complete conversation — one row per message, with Role (user or assistant), Content, Order and Timestamp, plus the Collected Result Variables of the session
llm-call-logs-list.csv One row per LLM call: Call Type SPEECH_SESSION, model, prompt, the coach's answer (Result), extracted Result Variables, token usage, operation time and whether the session was Stopped By LLM
llm-configurations-table.csv The LLM configurations used by the coaching (name, type, model, scope)

Use Session Identifier and Participant ID to match the rows of both files.

The user's spoken words are stored as transcribed text, exactly as the speech service understood them. Filler words such as "ähm" and numbers written out as words ("fünf und dreißig") can therefore appear in the export. Result variables are normalised to their type (e.g. 35).

7 Design Tips

  • Define a clear stop criterion. In a spoken conversation, users rarely say an explicit goodbye. Tie the criterion to the goal of the session (e.g. "when you collected both variables") and to the user's wish to stop.
  • Write an inviting speech offer text. It is the user's entry point into the speech session — make clear that a spoken conversation follows.
  • Tell users how to end the session. Mention the red button, or that they can simply say they want to stop.
  • Confirm what was collected. A message after the session that repeats the extracted values (e.g. name and age) makes the hand-back to the rule-based flow feel natural.
  • Use speech sessions deliberately. They are more expensive than text sessions — use them where a spoken conversation adds real value.