Goal

The Goal defines the specific condition that must be met for a procedure to be considered complete. This ensures that the procedure ends only when all required information or criteria are fulfilled, based on user input or system events.


Logic

Goal Logic - How it works
  • Context Validation: The system will check that all required details are properly collected and stored in the context. If any required fields (e.g., [userid], [kode_barang], [status_klaim]) are missing, the procedure will not proceed to completion.

  • Step Completion: The procedure will verify if all the steps have been completed, particularly the final step in the interaction flow. Only when the last step has been successfully executed will the system mark the goal as fulfilled.

  • Action and Tool Use: The goal may also reference actions or tools that need to be triggered as part of the procedure. For instance, the agent should post the collected data to the ClaimClient table using a specific action tool. The system checks whether the required actions have been completed (e.g., posting claim data or retrieving the [id_pengajuan]).

  • Goal Fulfillment: The system considers the goal complete when all steps are passed, all context fields are filled, and the necessary actions have been executed. Once all conditions are met, the system will proceed to the next phase, such as triggering any remaining actions or closing the procedure.

Goal Section

Purpose

The Goal specifies the end condition of the procedure. It ensures that the procedure completes when specific data or actions are fulfilled, such as collecting required claim details or verifying information.

How to Configure

  1. Click Edit: Click the Edit button next to the Goal field to modify it.

    Edit Goal
  2. Enter the Goal: Define the condition that indicates the end of the procedure. This is usually based on collecting specific user input or completing a task.

    • Example The system uses the ClaimClient action tool to ensure the collected claim data is properly stored in the relevant columns. The procedure ends when the client provides all required details related to their claim, such as full name, user ID, item code, item type, purchase date, claim type, damage details, proof link, and claim status.

      Input Goal
  3. Save Changes: Once you've entered the required details, click Save to apply the changes.

Last updated