Skip to main content

Instruction Configuration

The Instruction Configuration is the heart of agent behavior. It contains prompts, guidelines, and contextual instructions that define how agents operate during conversations. One instruction set can govern multiple agents (1:N relationship).

Schema: InstructionConfigurationSchema Source: src/core/service-configuration/instruction-config.schema.ts


Attributes​

AttributeTypeRequiredDefaultDescription
idstring——Unique identifier for the instruction configuration
instructionNamestringYes—System-readable name (e.g., 'customer-support-agent')
rolestringYes—Role or persona the agent adopts
introductionMessagestringYes—Initial greeting message for conversations
instructionsstringYes—Detailed behavioral guidelines and decision-making processes
guardrailsstringYes—Safety constraints, compliance rules, and forbidden topics
requiredSkillsarray<string>No—Required capabilities (e.g., 'appointment_booking')
validationRulesobjectNo—Custom validation rules for input/output
serviceIdstringNo—Associated service ID
supportedServicesarray<BusinessSupportServices>No[]Enabled platform services (tools)
toolsarray<string>No—Tool identifiers for extended capabilities
isTemplatebooleanNofalseWhether this is a reusable template
isPrimarybooleanNofalseWhether this is the primary system template
metadataobjectNo—Additional metadata
knowledgeSourceIdsarray<string>No[]Referenced knowledge source IDs
createdAtnumber——Unix timestamp when created
updatedAtnumber——Unix timestamp when last updated

Example​

{
"id": "inst_abc123",
"instructionName": "customer-support-agent",
"role": "Customer Support Specialist",
"introductionMessage": "Hello! How can I help you today?",
"instructions": "You are a helpful customer support agent. Always be polite and professional...",
"guardrails": "Never share sensitive customer data. Always verify identity before account changes...",
"supportedServices": ["APPOINTMENT_MANAGEMENT"],
"knowledgeSourceIds": ["kb_789"],
"isTemplate": false,
"isPrimary": false,
"createdAt": 1709856000000,
"updatedAt": 1709856000000
}

Create / Update Schemas​

SchemaDescriptionOmits
CreateInstructionConfigurationSchemaFor creating instructionsid, createdAt, updatedAt
UpdateInstructionConfigurationSchemaFor partial updatesAll fields optional except id