Skip to content

GoalsΒΆ

Note

Goals is a new feature, and we are making it accessible to our customers through a phased rollout. Once it becomes available for your environment, your Cognigy business representative will notify you via email.

You can also explore the Goals Report in the Cognigy trial environment. We encourage you to try this feature out and provide us with feedback.

Goals are structured objectives that require specific steps to be completed in AI Agent interactions. You can use goal steps to track user actions with Track Goal Nodes and tie these actions to measurable business metrics. This setup ensures alignment of your AI Agents with organizational objectives.

With goals, you can evaluate and enhance the business impact of your AI Agent:

  • Track user interactions. Monitor specific user interactions during conversations to ensure they align with your business objectives.
  • Monitor different goals and their steps. Track different goals and their corresponding steps to get a comprehensive view of the user journey in conversations.
  • Measure business value. Goals are linked to business metrics, allowing you to assess the value of AI Agents in achieving key business objectives. Metrics, such as time and money for each completed goal and step, provide a detailed view of the AI Agent's performance.
  • Gain valuable insights. Measure how effectively your AI Agent conversations achieve business objectives and optimize AI Agents to improve performance and user satisfaction.

LimitationsΒΆ

  • By default, the maximum number of steps per goal is 10. You can increase this number to 20 by using the FEATURE_USE_GOALS__MAX_STEPS_PER_GOAL variable in the values.yaml file.

Working with GoalsΒΆ

You can create, edit, and delete goals and their steps, as well as export them as a Package in Build > Goals.

When you delete a goal or a step, all associated analytics data is deleted and the Track Goal Node linked to the goal stops working. Before deleting the goal or step, either replace it with another goal or step in the Flow, or remove the linked Node if it's no longer needed.

Determine What You Want to MeasureΒΆ

Decide whether you want to track money, time, or both:

  • Money Saved. Track cost savings. To set the currency, go to Manage > Settings > Currency Settings and select a currency type from the Set Standard Currency list. You can select only one type of currency per Project.
  • Revenue Earned. Monitor the additional revenue you earn by automating the process with the AI Agent. To set the currency, go to Manage > Settings > Currency Settings and select a currency type from the Set Standard Currency list. You can select only one type of currency per Project.
  • Time Saved. Measure the amount of time a person spends on the task. This metric shows the time human agents save when the goal is achieved.

Implement Goals in FlowsΒΆ

To implement goals in your Flows, follow these steps:

1. Create Goals
  1. In Build > Goals, click + New Goal and configure the parameters of a goal:
    • Name β€” this field is mandatory. Enter a name that reflects the goal. For example, Reduce Call Handling Time or Increase Automation Efficiency.
    • Description β€” this field is optional. Provide a brief description that reflects the goal. For example, This goal aims to reduce average call handling time by automating common customer requests.
  2. In the Initial Step section, complete the following fields:
    • Name β€” this field is mandatory. Provide a descriptive name for the starting step. For example, Initiate AI Agent Conversation. The initial step is required, as the goal activates when the Flow triggers this step.
    • Description β€” this field is optional. Add a detailed description of the starting step. For example, This step triggers when a user begins an AI Agent session.
  3. In the Steps section, click + New Step and add at least one step to complete the goal configuration. If you add only one step, it must be marked as a Completion Point.
  4. Configure the step parameters:
    • Name β€” this field is mandatory. Enter a name that reflects the step. For example, Customer Request Handled.
    • Description β€” this field is optional. Describe the step. For example, This step captures when the AI Agent successfully resolves a customer request.
    • Mark this step as a completion step β€” activate this setting to mark the current step as the point where the goal is considered fully completed. For example, this step can reflect the key result when the AI Agent has resolved all user requests. At least one step in the goal must be marked as completed. Multiple steps can be marked as completed.
  5. In the Success Metrics field, measure the impact of your goal by tracking the following performance metrics:
    • Cost Savings β€” track saved money by entering values in the format xx.xx. For example, 150.00 represents $150. Make sure your currency is configured in the Currency Settings section in the Project Settings.
    • Revenue Earnings β€” track earnings by entering values in the format xx.xx. For example, 150.00 represents $150. Make sure your currency is configured in the Currency Settings section in the Project Settings.
    • Time Saved β€” track saved time by entering values in the format 00:00:00 (hours:minutes:seconds). For example, 02:45:00 represents 2 hours and 45 minutes.
2. Add Goals to Flows
  1. In Build > Flows, select a Flow or click + New Flow to create one.
  2. In the Flow editor, add a Track Goal Node to monitor goal progress in the Flow.
  3. Configure the Node settings:
    • Select Goal β€” choose the goal you recently created, such as Reduce Call Handling Time.
    • Select Steps β€” choose the goal steps that you want to track. The first selected step must be the initial step. Set the initial step at the beginning of the process you want to track in your Flow. Otherwise, the goal isn't tracked.

You can add multiple Track Goal Nodes to the same Flow to track different steps and KPIs.

By defining multiple steps and associating them with predefined metrics, goals provide a more comprehensive way to evaluate success compared to Tasks. While using multiple steps, you must still define the initial and completion steps. Without a completion step, your goal is partially completed or incomplete if only the initial step is triggered.

Track Goals in InsightsΒΆ

After having added goals and their steps to Flows, you can monitor metrics in the Insights Goals report.

ExampleΒΆ

In this example, you will configure goals and steps in a Flow, such as entering passenger information and completing payment. This setup lets you track the pre-booking process and monitor and analyze each step of the booking process. Follow these instructions:

1. Configure Goals
  1. Create a Goal with the name Pre-book a Flight.
  2. Set up these steps in this Goal:
    • Initial Step β€” navigate to the Initial Step section and enter Select booking options in the Name field.
    • Further Steps β€” use the + New Step option to add two further steps with the following names:
      • Passenger Details β€” at this step, set the time savings metric to 3 minutes in the Time Saved field.
      • Confirm Booking β€” at this step, set the cost savings metric to $15 in the Cost Savings field, then activate the Mark this step as a completion step option.
2. Create Flows and Configure the Initial Step
  1. Create a Flow and add a Question Node to the Flow.
  2. Open the Question Node and select the Text with Buttons output type.
  3. In the Text field, enter the following text:
    Hello, I’m Mr. Traveler, and I can help you find discounts on tours to Europe.  
    At the moment, there are no discounted tours available. However, you can leave a request for pre-booking, and I’ll assist you in placing the order. Alternatively, you can contact an operator, though that process may take longer.  
    
    What works best for you?
    
  4. Click Add Button and configure the first button:
    1. In the Button Title field, enter pre-booking.
    2. From the Select Button Type list, select Postback Value.
    3. In the Postback Value field, enter pre-booking and save.
  5. Click Add Button and configure the second button:
    1. In the Button Title field, enter contact an operator.
    2. From the Select Button Type list, select Postback Value.
    3. In the Postback Value field, enter contact an operator and save.
  6. Below the Question Node, add a Track Goal Node. In the Node editor, select the initial step you created earlier and save. This Node will initiate the goal tracking process.
  7. Below the Track Goal Node, add an If Node. In the Node editor, configure the Answer contains pre-booking condition:
    1. In the Condition field, click token and select the Answer Token.
    2. From the dropdown list, select contains.
    3. Specify pre-booking below the list and save.

3. Configure the Passenger Details Step
  1. Below your Then child Node, add a Question Node. Below the Else child Node, add a Handover to Agent Node.
  2. Add a Question Node. In the Node editor, configure the following fields:
    1. From the Question Type list, select Text.
    2. From the Output Type list, select Text and enter the following text:
      I'll just need your full name and contact information to finalize the booking.
      
  3. Add a new Track Goal Node. In the Node editor, select Passenger Details Step from the Steps list and save. This Node will record how much time is saved when the user submits the data manually.
4. Configure the Confirm Booking Step
  1. Below the Track Goal Node, add a Question Node.
  2. Add a Question Node.
  3. Open the Node editor and select Email from the Question Type list.
  4. Select the Text with Buttons output type.
  5. In the Text field, enter the following text:
    As soon as new offers become available, you will receive an email about your pre-booking.  
    
    Please confirm your booking by entering your email.
    
    1. In the Button Title field, enter pre-booking.
    2. From the Select Button Type list, select Postback Value.
    3. In the Postback Value field, enter pre-booking and save.
  6. Below the Question Node, add a Track Goal Node. In the Node editor, select Confirm Booking from the Steps list and save. This Node will record how much money is saved when the user submits the data manually.
  7. Below the Track Goal Node, add a Say Node. In the Node editor, enter the following text in the Text field:
    Your email: <Answer>  
    
    Thank you for the confirmation!
    
    Replace <Answer> with the Answer Token by clicking token.

5. Test your Flow

Test your Flow via the Interaction Panel. Activate debug mode to see when Track Goals are triggered. To view recorded metrics, go to Insights and select Goals from the left-side menu.

More InformationΒΆ