create_chat_rule
Define a rule for AI assistant chat behavior in a workspace. Specify scope, content, and activation state to control conversations.
Instructions
Create a chat rule. Uses AgentFarm internal API.
Skill: runwhen-skill://manage-rules (scoping + wording guidance).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the rule. | |
| scope_id | No | Scope ID (null for platform; workspace name for workspace). | |
| is_active | No | Whether the rule is active. | |
| scope_type | Yes | One of platform, org, workspace, persona, user. | |
| rule_content | Yes | Markdown content of the rule. | |
| workspace_name | Yes | The workspace to create the rule in (e.g. 't-oncall'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |