Skip to main content
Beginner · 45 min · Cognigy
In this tutorial, you learn how a brand persona, instructions, a skill, tools, and guardrails work together in one agent. It is for beginners who build their first customer service agent. You build Klara, an agent that helps customers of the fictional company ACME Express collect a shipment from a service point.

What you will build

Klara greets customers, finds service points for their shipment, and offers to email the service point details. You build Klara from the following parts:

Prerequisites

Complete the following prerequisites:
  • A Cognigy organization.
  • A large language model (LLM) in the project. When you create the agent, Cognigy selects the project’s default model in the Language model section. If the section says that no LLMs are configured, add one first. See LLMs.

Limitations

  • The tool flows return sample data. In a real project, replace the sample data with a call to your own shipment system.
  • The Send Confirmation Email tool doesn’t send an email. Its flow returns a sample result.

Steps for this process

1

Create a project

A project holds the agent, its flows, and its brand persona.
  1. On the Cognigy home page, next to Projects, click the plus icon. The New Project dialog opens.
  2. In the Project Name field, enter Klara Tutorial.
  3. Click Start empty. The project opens on the page for agents.
The New Project dialog with the project name Klara Tutorial and the buttons Start empty and Create with AI Assistant.
2

Create the agent

  1. Click Add agent. The Create new agent page opens.
  2. In the Agent name field, enter Klara.
  3. In the Role field, enter Customer Service Assistant. In Cognigy 2026.23, this field is called Job.
  4. Select an avatar.
  5. In the Instructions field, enter the following text:
    The instructions name the skill, so Klara knows when to use it. They also state what Klara can’t do, so Klara doesn’t promise it.
Keep the page open. You set the brand persona in the “Create the brand persona” step, before you save the agent.
3

Create the brand persona

  1. Under Brand persona, click the edit icon next to the selected persona. In a new project, this is the default persona NiCE, which Cognigy creates when the project has none. The Edit brand persona page opens.
  2. In the Name field, enter ACME Express.
  3. In the Description field, enter the following text:
  4. Under Speaking style, keep the Response completeness slider at Balanced and the Formality level slider at Professional.
  5. Click Save changes. The Create new agent page opens again.
  6. Click Save. A message confirms that the changes are saved.
The Create new agent page with the name Klara, the role, the instructions, and the brand persona ACME Express.
Keep the roles separate. The brand persona describes the voice of the company and can be reused. The instructions describe the job of this one agent.
4

Create the find service points tool and its flow

A tool lets Klara fetch data or act. This tool runs a flow that returns the service points for a shipment.
  1. Go to the Tools tab and click Add tool.
  2. In the Add to this agent window, on the System tools tab, select Execute Tool Flow. The Create new tool page opens.
  3. In the Name field, replace the default name with Find Service Points.
  4. In the Description field, replace the default text with the following text. Klara reads the description to decide when to call the tool and how to use the result.
  5. Click the Select flow list and select Create new flow. A message confirms that the tool is created, and the flow opens. The flow contains a Tool Result node.
  6. Under Start, click the plus icon, search for Code, and select it. The Code node appears above the Tool Result node.
  7. Click the Code node and enter the following code. It stores sample service points in the Context.
  8. Click Save Node.
  9. Click the Tool Result node. In the Tool Answer field, enter {{context.spAnswer}}, and click Save Node. The Tool Result node sends the content of this field back to Klara.
    The tool flow with a Start node, a Code node, a Tool Result node that returns context.spAnswer, and an End node.
In your own project, replace the Code node with an HTTP Request node that calls your shipment system. The parameters that Klara fills are available in the flow as {{input.data.toolArgs.<name>}}, for example {{input.data.toolArgs.waybill}}. Then use a Code node to shape the response before the Tool Result node. Make sure every path of the flow reaches a Tool Result node. Otherwise, Klara receives The flow finished without returning an answer. instead of your data.
5

Add the waybill parameter

Parameters are the inputs that Klara collects from the conversation and sends to the flow.
  1. At the top of the flow editor, click the back arrow next to the flow name. The Tools tab of the agent opens. Click Find Service Points.
  2. Under Parameters, click Add.
  3. In the Name field, enter waybill.
  4. In the Description field, enter The 10-digit waybill number of the shipment, digits only.
  5. Keep the type Text, and click Save changes.
The Edit tool page for Find Service Points with the description, the selected flow, and the waybill parameter.
6

Create the send confirmation email tool

Create a second tool and its flow in the same way as the first tool.
  1. Go to the Tools tab, click Add tool, and select Execute Tool Flow on the System tools tab.
  2. In the Name field, replace the default name with Send Confirmation Email.
  3. In the Description field, replace the default text with the following text:
  4. Select Create new flow. The flow opens with a Tool Result node.
  5. Under Start, click the plus icon and add a Code node with the following code, then click Save Node:
  6. Click the Tool Result node, enter {{context.emailAnswer}} in the Tool Answer field, and click Save Node.
  7. At the top of the flow editor, click the back arrow next to the flow name, and on the Tools tab, click Send Confirmation Email. Under Parameters, click Add for each of the following parameters, enter its name and description, and keep the type Text:
  8. Click Save changes.
The description tells Klara to call this tool only after the customer agrees. The skill repeats this rule in the “Create the skill” step.
7

Create the skill

A skill bundles the instructions for one task with the tools that the task needs. Klara loads the skill only when the conversation matches the skill description. This keeps the main instructions short. The tools in a skill become available when the skill is active. Klara can’t call Find Service Points or Send Confirmation Email before it loads the skill, even though both tools are also on the Tools tab.
  1. Go to the Skills tab and click Add skill.
  2. In the Skill name field, enter service-point-redirect. Use only lowercase letters, numbers, and hyphens.
  3. In the Description field, enter the following text. Klara uses the description to decide when to load the skill.
  4. In the Instructions field, enter the following text:
  5. In the Tools section, click Add tool, select Find Service Points and Send Confirmation Email, and click Attach selected.
  6. Click Save. A message confirms that the skill is saved.
The Edit skill page for service-point-redirect with its description, its steps and rules, and the two attached tools.
Write skill steps for the ear as well as the eye. The steps for voice offer one service point at a time and spell out IDs, because customers can’t scroll a list they hear.
8

Check the guardrails

Guardrails set the safety and privacy boundaries for the agent.
  1. Go to the Guardrails tab.
  2. Under Safety instructions, keep the following settings turned on:
    • Avoid harmful content
    • Avoid ungrounded content
    • Avoid copyright infringements
    • Prevent jailbreak and manipulation
  3. Under Data privacy, keep No profile fields for Contact profile information. Klara doesn’t need contact profile data, because in a real project the email tool looks up the address in your system. To personalize answers, select the profile fields that Klara can use.
The Guardrails configuration page with four safety instructions turned on and No profile fields selected for the contact profile information.
9

Test Klara in the interaction panel

  1. Click the chat icon to open the Interaction Panel.
  2. At the top of the panel, select Klara from the list if it isn’t already selected, and select Chat. To see what Klara does in each turn, click the flask icon (Advanced mode) in the header of the Interaction Panel.
  3. Enter Hi. Klara greets you with the exact greeting from the instructions.
  4. Enter I want to pick up my parcel at a service point instead of home delivery. Klara loads the skill and asks for the 10-digit waybill number.
  5. Enter 1428592406. Klara calls Find Service Points and lists the two sample service points with their opening status.
  6. Enter The locker please, and yes, email me the details. Klara calls Send Confirmation Email and tells you that the details were sent to the masked address c***@example.com.
To check that Klara loaded the skill and ran the tool flows, look at the trace of each turn. For step 4, look for a Skill loaded span. For steps 5 and 6, look for an Execute Tool Flow span and a Tool result span. See Tracing.
Animation of the Interaction Panel in Chat mode. Klara greets the customer, asks for the waybill number, lists two service points, and confirms that the email for the locker was sent.

What’s next

You created a project and built Klara from scratch. You gave Klara a brand persona and instructions, a skill for collecting a shipment from a service point, two tools that run flows, and guardrails. You tested the whole conversation in the Interaction Panel. To continue, explore the following pages:
Last modified on November 11, 2026