Define an outcome unit
define_outcome_unitCreate an organization outcome unit, or update it when the code exists (only the fields given change). Outcome units never move money; they measure value for goals and ROI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Stable lowercase code, e.g. 'ticket_resolved'. | |
| icon | No | Optional icon name from the Blueprint icon set. | |
| name | No | Display name; required when creating. | |
| active | No | Set false to deactivate the unit. | |
| source | No | How the unit is recorded (default self_report). | |
| auto_rule | No | For auto_rule: {event: run_completed|tool_invoked|thread_messages, tool?, min_messages?}. | |
| description | No | One line on what counts as one unit. | |
| minutes_saved | No | Minutes of human work one unit saves, for ROI. | |
| value_per_unit | No | Monetary value of one unit, for ROI. | |
| billable_unit_code | No | For billing_mirror: the billable unit's code. |