completeGoal - Cognigy Documentation

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:

Returns:void

Example

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

completeGoal("scheduleAppointment");