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

# ConversationFn<C>

> Type alias exported by @botmesh/core.

```ts theme={null}
type ConversationFn<C> = (c, ctx) => Promise<void>;
```

Defined in: [conversations/ConversationRuntime.ts:97](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/ConversationRuntime.ts#L97)

Body of a conversation: receives the conversation controls and the message that started it.

## Type Parameters

| Type Parameter | Default type |
| - | - |
|  `C` *extends* [`ConversationControlsBase`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationControlsBase) | [`ConversationControlsBase`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationControlsBase) |

## Parameters

| Parameter | Type |
| - | - |
| `c` | `C` |
| `ctx` | [`RuntimeMessage`](https://botmesh.afaya.com.co/api/core/interfaces/RuntimeMessage) |

## Returns

`Promise`\<`void`>


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