Skip to main content
GET
Get an agent

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header.

Path Parameters

agentId
string
required

ID of the agent.

Response

Success

An agent: its identity and channel, its prompt, the variables it expects, how it classifies conversations, and what is connected to it (tools, sub-agents, knowledge base chat)

agentId
string | null

Agent identifier

agentName
string | null

Agent name

channel
string | null

Channel the agent talks on: Phone, SMS, Web or WhatsApp. Phone and WhatsApp campaigns need a phone number; Web agents are reached through the web widget.

direction
string | null

Inbound: the agent answers contacts who reach it. Outbound: the agent initiates, its campaign items are dialed or messaged.

language
string | null

Language of the agent, as an ISO code such as fr or en

tags
string[] | null

Tags set on the agent in the interface, for organisation only. Not related to classification tags.

createdAt
string<date-time>

Creation date (UTC)

prompt
string | null

Prompt of the agent

outboundWelcomeMessage
string | null

First sentence the agent says when it initiates the conversation (outbound campaign items, callbacks). Placeholders such as {firstName} are replaced by the field values.

inboundWelcomeMessage
string | null

First sentence the agent says when a contact reaches it (inbound call, message or web widget). Placeholders such as {firstName} are replaced by the field values.

fields
object[] | null

Variables the prompt expects. Pass their values as dataBag when creating or updating a campaign item or starting a simulation chat, and as variables of a simulation test. System fields are filled by the platform.

classificationTags
object[] | null

Tags the agent can assign to a conversation once it ends. A classification test expects one of these names in tagExpected, and campaign item results carry the assigned tag.

extractedValues
object[] | null

Values the agent extracts from a conversation once it ends, returned with the campaign item results

isCallTransferEnabled
boolean

Whether the agent may transfer the call to a human. When true, mockCallTransfer is relevant in simulation tests.

tools
object[] | null

Tools connected to the agent

subAgents
object[] | null

Sub-agents the agent can delegate to. Their ids are the ones accepted by mockedSubAgents in simulation tests.

knowledgeBaseChatId
string | null

Identifier of the knowledge base chat connected to the agent, if any (see GET /Agent/{agentId}/chat)