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

# ConversationEndedEvent

> Interface exported by @botmesh/core.

Defined in: [ops/metrics.ts:243](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L243)

Payload of the bot `'conversation:ended'` event.

## Extends

* [`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent)

## Properties

### id

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

Defined in: [ops/metrics.ts:229](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L229)

Unique per conversation instance — matches a `'conversation:ended'` to its `'conversation:started'`.

#### Inherited from

[`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent).[`id`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent#id)

***

### name

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

Defined in: [ops/metrics.ts:231](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L231)

Conversation/flow name.

#### Inherited from

[`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent).[`name`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent#name)

***

### chatId

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

Defined in: [ops/metrics.ts:232](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L232)

#### Inherited from

[`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent).[`chatId`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent#chatid)

***

### userId

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

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

#### Inherited from

[`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent).[`userId`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent#userid)

***

### key

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

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

Runtime key (`chatId`, or `chatId:userId` per group participant).

#### Inherited from

[`ConversationStartedEvent`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent).[`key`](https://botmesh.afaya.com.co/api/core/interfaces/ConversationStartedEvent#key)

***

### outcome

```ts theme={null}
outcome: ConversationOutcome;
```

Defined in: [ops/metrics.ts:244](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L244)

***

### completed

```ts theme={null}
completed: boolean;
```

Defined in: [ops/metrics.ts:246](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L246)

Shorthand for `outcome === 'completed'`.

***

### durationMs

```ts theme={null}
durationMs: number;
```

Defined in: [ops/metrics.ts:247](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L247)

***

### goto?

```ts theme={null}
goto?: string;
```

Defined in: [ops/metrics.ts:249](https://github.com/andresayac/botmesh/blob/main/packages/core/src/ops/metrics.ts#L249)

Target of the `c.goto()` that ended it, if any (a new `'conversation:started'` follows).


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