> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# DynamicText<S>

> Type alias exported by @botmesh/core.

```ts theme={null}
type DynamicText<S> = (ctx, c) => string | Promise<string>;
```

Defined in: [flows/FlowBuilder.ts:78](https://github.com/andresayac/botmesh/blob/main/packages/core/src/flows/FlowBuilder.ts#L78)

Text computed when the step runs, from the message and the flow controls,
for example `(ctx, c) => 'Hi ' + c.state.name`.

## Type Parameters

| Type Parameter | Default type |
| - | - |
|  `S` *extends* `object` | [`EmptyFlowState`](https://botmesh.afaya.com.co/api/core/type-aliases/EmptyFlowState) |

## Parameters

| Parameter | Type |
| - | - |
| `ctx` | [`RuntimeMessage`](https://botmesh.afaya.com.co/api/core/interfaces/RuntimeMessage) |
| `c` | [`FlowControls`](https://botmesh.afaya.com.co/api/core/type-aliases/FlowControls)\<`S`> |

## Returns

`string` | `Promise`\<`string`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.