Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Commit e4de646

Browse files
author
Lucas Willering
committed
Splitting answers into 'bubbles'
1 parent 860e804 commit e4de646

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ If we look at Microsoft's specification of an [image attachment](https://docs.mi
6969
}
7070
```
7171

72+
## Splitting answers into 'bubbles'
73+
Sometimes you may wish to provide an answer using multiple text bubbles. This can be achieved by including an output parameter called `outputTextSegmentIndexes`. This output parameter should contain a list of index pairs, to indicate where the output text can be split into separate bubbles. The value of the `outputTextSegmentIndexes` should be structured like this (linebreaks are added for readability):
74+
```
75+
[
76+
[startIndexOfFirstBubble, endIndexOfFirstBubble],
77+
[startIndexOfSecondBubble, endIndexOfSecondBubble],
78+
...
79+
]
80+
```
81+
82+
For more details on how to generate the value of `outputTextSegmentIndexes` in Teneo Studio, please refer to [Splitting answers into bubbles](https://www.teneo.ai/engine/channels/microsoft-bot-framework#splitting-answers-into-bubbles).
83+
7284
## Engine input parameters
7385
### channel
7486
The input parameter `channel` allows you to add channel specfic optimisations to your bot. The value start with `botframework-` and the botframework channel is appended. For example, the value for requests from users that use Teams is `botframework-msteams`.

0 commit comments

Comments
 (0)