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

# replayTranscript()

> Function exported by @botmesh/core/testing.

```ts theme={null}
function replayTranscript(
   transcript, 
   createBot, 
   options?
): Promise<ReplayResult>;
```

Defined in: [testing/transcripts/replay.ts:165](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/transcripts/replay.ts#L165)

Replay `transcript` against the bot returned by `createBot` and diff the
replies. The bot is started before the first turn and stopped at the end.

## Parameters

| Parameter | Type |
| - | - |
| `transcript` | [`Transcript`](https://botmesh.afaya.com.co/api/core/interfaces/Transcript) |
| `createBot` | [`ReplayBotFactory`](https://botmesh.afaya.com.co/api/core/testing/type-aliases/ReplayBotFactory) |
| `options?` | [`ReplayOptions`](https://botmesh.afaya.com.co/api/core/testing/interfaces/ReplayOptions) |

## Returns

`Promise`\<[`ReplayResult`](https://botmesh.afaya.com.co/api/core/testing/interfaces/ReplayResult)>


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