Attribute Task to Outcome
metrx_attribute_taskAttribute an agent task to a business outcome for ROI tracking. Specify agent, outcome type, and source to map actions to measurable results, including optional value in cents and description.
Instructions
Link an agent task/event to a business outcome for ROI tracking. This creates a mapping between agent actions and measurable business results. Do NOT use for reading attribution data — use get_attribution_report or get_task_roi.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The agent UUID to attribute | |
| event_id | No | Optional: specific event/task ID to attribute | |
| outcome_type | Yes | Type of outcome | |
| outcome_source | Yes | Source of the outcome data | |
| value_cents | No | Outcome value in cents | |
| description | No | Optional description of the outcome |