0dc26f3b15
- Add create_call tool: records phone calls as Call entity (not Meeting) - Add AssistantRule entity: persistent behavioral rules the AI follows - Add save_rule tool: AI can save new rules when user requests them - Add systemInstructions to webhook: call vs meeting guidance, open question tracking - Add recentCalls to case context for AI awareness - Add AssistantRuleContextProvider: injects active rules per mode into context Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"maxLength": 255,
|
|
"required": true
|
|
},
|
|
"rule": {
|
|
"type": "text",
|
|
"required": true
|
|
},
|
|
"scope": {
|
|
"type": "enum",
|
|
"options": ["global", "case", "office"],
|
|
"default": "global"
|
|
},
|
|
"isActive": {
|
|
"type": "bool",
|
|
"default": true
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
}
|
|
},
|
|
"links": {
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
}
|
|
},
|
|
"indexes": {
|
|
"isActive": {
|
|
"columns": ["isActive", "deleted"]
|
|
},
|
|
"scope": {
|
|
"columns": ["scope", "isActive", "deleted"]
|
|
}
|
|
}
|
|
}
|