Keep a Person's Name on Every AI-Drafted Decision in Salesforce
A lot of teams now draft replies, summaries and proposals with an AI assistant before they reach a customer or a manager. That is fine. What gets lost is the record of who actually read the draft and decided to use it.
A lot of teams now draft replies, summaries and proposals with an AI assistant before they reach a customer or a manager. That is fine. What gets lost is the record of who actually read the draft and decided to use it.
I wrote today, in Spanish, about bosses who forward their team's work to a chatbot and send back whatever it produces. This is the Salesforce side of that problem: a small pattern that keeps a human name on every AI-drafted decision, built with standard objects, Field History Tracking and SOQL.
The object
A custom object, Draft_Review__c, one record per AI-assisted draft:
| Field | Type | Purpose |
|---|---|---|
Related_Record__c |
Text (18) | The Case, Opportunity or record the draft is for |
Source__c |
Picklist: Human, AI-assisted | Where the first version came from |
Status__c |
Picklist: Draft, Approved, Rewritten, Rejected | What the reviewer did |
Reviewer__c |
Lookup (User) | Who decided |
Reviewer_Note__c |
Text Area (255) | One line on why |
Turn on Field History Tracking for Status__c and Reviewer__c. For picklists and lookups the history keeps old and new values plus the user who made the change. Long text areas are tracked only as "changed", without values, which is why the note is a 255-character field.
Two validation rules
The reviewer cannot be the integration user that created the draft:
AND(
NOT(ISPICKVAL(Status__c, "Draft")),
Reviewer__c = CreatedById
)
And an AI-assisted draft cannot be approved without a note:
AND(
ISPICKVAL(Source__c, "AI-assisted"),
ISPICKVAL(Status__c, "Approved"),
ISBLANK(Reviewer_Note__c)
)
Queries worth saving
Who approves AI-assisted drafts, and how often they rewrite them instead:
SELECT Reviewer__r.Name, Status__c, COUNT(Id) total
FROM Draft_Review__c
WHERE Source__c = 'AI-assisted'
AND CreatedDate = LAST_N_DAYS:30
GROUP BY Reviewer__r.Name, Status__c
A reviewer with hundreds of approvals and zero rewrites is either working with a great prompt or not reading.
Status changes, with who made them:
SELECT ParentId, OldValue, NewValue, CreatedBy.Name, CreatedDate
FROM Draft_Review__History
WHERE Field = 'Status__c'
ORDER BY CreatedDate DESC
Why bother
When a customer complains about an answer, the useful question is who decided to send it. If that name is in the data, the conversation moves to judgment, which is where it belongs.
The longer piece, in Spanish, is on EGA Futura Discover. At Vantegrate, the company I co-founded with Francisco Morales, we build AI agents for companies; the overview of what AI agents are and how they are implemented is in Spanish. At EGA Futura we build a native ERP for Salesforce for mid-sized companies, including an HR application that covers each person from hiring to exit.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.