> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# completeGoal

## Syntax

`completeGoal(goal)`

## Description

Marks a goal as completed for the current conversation. Completing a goal may influence reporting, analytics, or decision-making in the Flow.

**Parameters:**

* `goal`: `string` — the name of the goal to mark as completed.

**Returns:** `void`

## Example

```js theme={null}
// Assume the user has successfully completed the "scheduleAppointment" Flow

completeGoal("scheduleAppointment");
```
