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
idstringUnique identifier for the instruction configuration
instructionNamestringYesSystem-readable name (e.g., 'customer-support-agent')
rolestringYesRole or persona the agent adopts
introductionMessagestringYesInitial greeting message for conversations
instructionsstringYesDetailed behavioral guidelines and decision-making processes
guardrailsstringYesSafety constraints, compliance rules, and forbidden topics
requiredSkillsarray<string>NoRequired capabilities (e.g., 'appointment_booking')
validationRulesobjectNoCustom validation rules for input/output
serviceIdstringNoAssociated service ID
supportedServicesarray<BusinessSupportServices>No[]Enabled platform services (tools)
toolsarray<string>NoTool identifiers for extended capabilities
isTemplatebooleanNofalseWhether this is a reusable template
isPrimarybooleanNofalseWhether this is the primary system template
metadataobjectNoAdditional metadata
knowledgeSourceIdsarray<string>No[]Referenced knowledge source IDs
createdAtnumberUnix timestamp when created
updatedAtnumberUnix 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