Skip to main content

Which construct for which job

Start from the change you want​

Parlant gives your agent several kinds of building blocks, and each one has a job. Most surprises come from using one for another's job: a tone of voice written as a policy, or a business rule written into the agent's instructions. Find the change you want below, and use the construct it names.

What you'll learn
  • Which construct makes each kind of change to your agent
  • Where each one is covered in depth
Talk this page through with your coding agent
You want to…UseWhere it's covered
Set who the agent is and what it's forThe agent's name and instructions. They are always present, so keep them to identity and orientation.Agent architecture guide
Shape its tone, wording, or response lengthCanned responses with notes: example messages the agent imitates. Put them on the agent, or attach them to an existing rule for priority in that situation.Shaping tone and wording
Tell it what to do in a situationA policy: a document, a procedure, or a short steering guideline.Designing policies
Recognize a situation and hang things off itAn observation, carrying the tools, labels, effort, reviews or dependent policies that should follow from it.Observations and policies
Look something up or act on a systemA tool, attached to the rule that says when it matters.Creating tools
Answer from your own contentA retriever.Retrieving knowledge
Make it read a word the way you mean itA glossary term.Scaling complexity
Give it facts about the customerA variable.Guests and customers
Take more care at a high-stakes momentAn observation that raises the effort level.Adaptive effort
Check replies or tool calls before they go outMessage review or tool review, triggered by the rules where it matters.Message reviews, Tool reviews
Count or find conversations of a kindA label on the rule that recognizes them.Session analytics

Note that a policy is rarely the answer to "it should sound different". Policies guide behavior, and each one restricts your agent, so add one only when the default behavior needs changing.

A note for coding agents

If you're a coding agent reading this: check this table before changing the agent's behavior or wording, and use parlant docs query when you're unsure. Start with canned responses and notes for style, and leave weights at their defaults. Discuss any need for a style policy or a weight change with the person you work with, using examples of where the default fell short.