Record a fact
record_factSave facts about customers, tickets, orders, or other records with evidence, source, and attribution, preserving history so values can be corrected or undone.
Instructions
Use when you learn something about a customer, ticket, order or other business record and want it kept. Use this before, and instead of, overwriting records in other systems: the fact is kept with its evidence and attributed to you, and it can be corrected or undone later. Recording a new value for the same entity and predicate makes it the current value; the old one stays in history. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The value. Any JSON: string, number, boolean, object or array. | |
| evidence | No | Where the fact came from, so a person can check it. | |
| entity_id | Yes | Stable ID of the thing the fact is about, such as customer:42 or ticket:T-1009. Not a display name. | |
| predicate | Yes | What the fact is about, such as status, email, owner or amount_due. | |
| confidence | No | Optional confidence from 0 to 1. Leave unset when you are sure. | |
| observed_at | No | When the fact was observed at the source, RFC 3339. Defaults to unset. | |
| operation_id | Yes | Your ID for this one write, 8-200 characters. Reuse it when retrying the same write so it is not recorded twice. Never reuse it for a different write. |