The agent object
A chat persona the workspace builds and plugs into workflow steps.
createdAt string (date-time) When the agent was created.
customRules stringFree-text rules the agent never breaks, on top of the guardrails.
emojiEnabled booleanWhether the agent may use emoji.
guardrails array of enumThe preset rules the agent never breaks.
id string The unique identifier of the agent (UUID).
instructions stringFree-text instructions that refine the role: who the business is, what matters to it.
knowledgeDocumentCount integer (int32) How many knowledge documents the agent has.
knowledgeDocuments array of object The agent's knowledge documents. Getting one agent returns them with their content; listing agents leaves them out.
6 child attributes
agentId string The agent the document belongs to (UUID).
content stringThe document's Markdown content.
createdAt string (date-time) When the document was created.
id string The unique identifier of the document (UUID).
title stringThe document's title.
updatedAt string (date-time) When the document was last updated.
language stringISO 639-1 code of the language the agent always speaks. Empty matches the visitor's language.
name stringThe agent's name, shown to the workspace and used by the agent to introduce itself.
questionHandling enumWhat the agent does when a visitor asks it something.
Allowed values
AGENT_QUESTION_HANDLING_ANSWER_AND_STEERAnswers, then brings the conversation back to its goal.AGENT_QUESTION_HANDLING_ANSWER_BRIEFLYOne-line answers, then back to the goal.AGENT_QUESTION_HANDLING_COLLECT_ONLYPolitely declines questions and only collects.AGENT_QUESTION_HANDLING_FREE_CONVERSATIONTalks freely and collects along the way.AGENT_QUESTION_HANDLING_UNSPECIFIEDNot set. Defaults to AGENT_QUESTION_HANDLING_ANSWER_AND_STEER on create, keeps the value on update.
replyLength enumHow long the agent's messages are.
Allowed values
AGENT_REPLY_LENGTH_SHORTOne or two sentences.AGENT_REPLY_LENGTH_MEDIUMA short paragraph.AGENT_REPLY_LENGTH_DETAILEDAs long as the answer needs.AGENT_REPLY_LENGTH_UNSPECIFIEDNot set. Defaults to AGENT_REPLY_LENGTH_SHORT on create, keeps the value on update.
role enumThe job the agent does.
Allowed values
AGENT_ROLE_LEAD_QUALIFIERQualifies leads: learns who the visitor is and what they need.AGENT_ROLE_EVENT_CONCIERGEWelcomes event attendees and answers practical questions.AGENT_ROLE_FEEDBACK_COLLECTORCollects feedback about an experience.AGENT_ROLE_PRODUCT_EXPERTPresents a product and answers questions about it.AGENT_ROLE_SUPPORT_FAQAnswers frequent support questions.AGENT_ROLE_CUSTOMNo preset role: the agent follows its instructions only.AGENT_ROLE_UNSPECIFIEDNot set. Defaults to AGENT_ROLE_CUSTOM on create, keeps the value on update.
styleNotes stringFree-text notes that refine the tone.
tone enumHow the agent sounds.
Allowed values
AGENT_TONE_FRIENDLYWarm and approachable.AGENT_TONE_PROFESSIONALPolished and businesslike.AGENT_TONE_PLAYFULLight and fun.AGENT_TONE_CONCISEStraight to the point.AGENT_TONE_ENTHUSIASTICEnergetic and upbeat.AGENT_TONE_UNSPECIFIEDNot set. Defaults to AGENT_TONE_FRIENDLY on create, keeps the value on update.
updatedAt string (date-time) When the agent was last updated.
usages array of object The workflow steps that talk through this agent. An agent in use cannot be deleted.
3 child attributes
linkId stringThe link the step belongs to (UUID).
linkName stringThe link's name, or its short link when it has none.
workflowStepId stringThe chat bot step (UUID).
workspaceId string The workspace the agent belongs to (UUID).
{
"createdAt": "2026-03-14T09:30:00Z",
"customRules": "Never quote room rates. Send booking questions to [email protected].",
"emojiEnabled": true,
"guardrails": [
"AGENT_GUARDRAIL_STAY_ON_TOPIC",
"AGENT_GUARDRAIL_NO_COMMITMENTS"
],
"id": "3f9a1c52-8d1e-4b7a-9c3e-2a6f5d8b1e40",
"instructions": "You work for Hotel Lumiere, a boutique hotel in Lyon.",
"knowledgeDocumentCount": 3,
"knowledgeDocuments": [
{
"agentId": "3f9a1c52-8d1e-4b7a-9c3e-2a6f5d8b1e40",
"content": "# Opening hours\n\nMonday to Friday, 9am to 6pm.",
"createdAt": "2026-03-14T09:30:00Z",
"id": "e5b2c8f1-6a3d-4b9e-8c7f-1d0a2e4b6c93",
"title": "Opening hours and prices",
"updatedAt": "2026-03-18T16:05:00Z"
}
],
"language": "fr",
"name": "Front desk",
"questionHandling": "AGENT_QUESTION_HANDLING_ANSWER_AND_STEER",
"replyLength": "AGENT_REPLY_LENGTH_SHORT",
"role": "AGENT_ROLE_SUPPORT_FAQ",
"styleNotes": "Address visitors informally.",
"tone": "AGENT_TONE_FRIENDLY",
"updatedAt": "2026-03-18T16:05:00Z",
"usages": [
{
"linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
"linkName": "Spring menu",
"workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
}
],
"workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
}