Building an agent

Tool calls, a knowledge base, connectors, roles and the flow of the conversation

An agent is configuration in one of your accounts. You build it in the console under Agents, or write it through the API; every save is a new version, and a call keeps the version it started with. The agents builder is part of the Enterprise plan.

An agent is made of these parts.

PartWhat it is
Instructions and openingWho the agent is, how it speaks, what it must never do, and what it does the moment the call connects
Tool callsWhat it can do in your systems. Each tool runs at your own https endpoint
Knowledge baseYour own material: products, prices, policies. The agent answers from it and says so when it does not cover a question
ConnectorsServices it reaches with your own credential, such as Stripe
RolesWho each tool and connector exists for
Conversational flowThe stages of a call, each with one goal, the tools that exist in it, and the ways out

Tool calls

A tool has a name, a description that tells the agent when to call it, a JSON Schema for its arguments, and the endpoint that runs it. The platform posts {tool, arguments, call} to that endpoint and gives the agent what it answers. effect says whether the tool only reads or may change something.

Knowledge base

Each passage has a title and its content. Every passage is given to the agent with its instructions, so keep each one to what a caller might ask about.

Connectors

A connector is a tool server the platform reaches over the Model Context Protocol with the credential in a secret you name. Selecting one is a grant:

FieldWhat it grants
toolsWhich of the connector's tools exist for the agent. None listed grants every tool it offers
effectRead-only unless writing is granted: a tool the service does not mark read-only does not exist without it
limitsThe only values a tool's argument may take, for example the API operations a generic read tool may run
requiresHow much the platform must know about who is speaking: anyone, a recognized speaker, or a verified one
rolesThe roles a speaker must hold one of

Roles

A role has a name and members: the people the listening model resolves, and the phone numbers callers are on. A speaker holds a role when the platform knows them to be one of its members. Nothing a caller says grants a role. A tool or a connector that names roles exists only for a speaker holding one of them, and is refused if it is called anyway.

On a phone line the listening model does not run, so a role there comes from the caller's number.

Conversational flow

The flow is a set of stages. Each stage states its goal, lists the tools that exist while the call is in it, and names its ways out:

  • a condition the agent judges, such as "the caller has said what they need"
  • an event the platform reports, such as a tool call succeeding

A tool a stage does not list does not exist for the agent at that stage.

Payments

An agent never takes card details by voice. To take a payment, grant the Stripe connector the operation that creates a payment link and send the buyer the page it returns; the buyer pays on Stripe.

On this page