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

# recordTranscript()

> Function exported by @botmesh/core.

```ts theme={null}
function recordTranscript<P>(provider, options?): TranscriptRecorder<P>;
```

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

Wrap `provider` in a [RecordingProvider](https://botmesh.afaya.com.co/api/core/classes/RecordingProvider.md). Give `recorder.provider` to the
bot; read the conversation back with `recorder.transcript()`.

## Type Parameters

| Type Parameter |
| - |
|  `P` *extends* [`IProvider`](https://botmesh.afaya.com.co/api/core/interfaces/IProvider)\<`unknown`> |

## Parameters

| Parameter | Type |
| - | - |
| `provider` | `P` |
| `options?` | [`RecordTranscriptOptions`](https://botmesh.afaya.com.co/api/core/interfaces/RecordTranscriptOptions) |

## Returns

[`TranscriptRecorder`](https://botmesh.afaya.com.co/api/core/interfaces/TranscriptRecorder)\<`P`>


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