> ## 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.

# CompiledFlow

> Interface exported by @botmesh/core.

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

A flow in compiled form (`builder.compile()`): id, trigger, steps and options.
`bot.use()` accepts it as well as a [FlowBuilder](https://botmesh.afaya.com.co/api/core/classes/FlowBuilder.md).

## Properties

### id

```ts theme={null}
id: string;
```

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

***

### trigger

```ts theme={null}
trigger: Trigger;
```

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

***

### steps

```ts theme={null}
steps: CompiledStep[];
```

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

***

### opts

```ts theme={null}
opts: object;
```

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

#### timeoutMs?

```ts theme={null}
timeoutMs?: number;
```

#### persistent?

```ts theme={null}
persistent?: boolean;
```

#### scope?

```ts theme={null}
scope?: TriggerScope;
```


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