Skip to main content

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

// Assume the user has successfully completed the "scheduleAppointment" Flow

completeGoal("scheduleAppointment");
I