BotFrame

Data · Workflow node

Compose text

The Compose text node as it appears in the workflow editor.

What it does

Insert up to three values into text.

BotFrame starts with the Text template and replaces every {{a}}, {{b}}, and {{c}} marker with its connected value. A marker can be used more than once. The completed text is available through the Text output for later nodes.

Typical use

Build one message such as “Welcome {{a}} to {{b}}” from values produced by earlier nodes.

How to use it

  1. Add it from DataOpen the node library and choose Compose text from Data.
  2. Connect the workflow pathConnect Flow in from the previous step and Flow to the next step.
  3. Choose settings and connect valuesSet A, B, C, Text. Connections can also supply values produced by earlier nodes.

Settings

These are the options shown when you add this node. A connected value can replace a setting when the workflow runs.

SettingStarting valueWhat it controls
AEmptyUsed when Value A is not connected from an earlier node.
BEmptyUsed when Value B is not connected from an earlier node.
CEmptyUsed when Value C is not connected from an earlier node.
Text{{a}}Sets the text and the positions where connected values are inserted.

Value connections

Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.

Inputs

Value AAny value
Optional
Value BAny value
Optional
Value CAny value
Optional

Outputs

TextText
Optional

What happens when it runs

BotFrame starts with the Text template and replaces every {{a}}, {{b}}, and {{c}} marker with its connected value. A marker can be used more than once. The completed text is available through the Text output for later nodes.

You can use this item in a published BotFrame workflow. You can also test it in the simulator.

These details match the node currently available in the BotFrame workflow editor.