Salesforce · Filed Apr 29, 2025 · Published Oct 29, 2026

Salesforce Files Patent for a Three-AI Team That Writes and Grades Its Own Instructions

Getting an AI to do what you want often takes days of trial and error with the wording. Salesforce's patent application hands that tinkering to three AI models that write, test and grade the instructions on their own.

A workspace interface lets someone draft instructions while three separate AIs review, test, and grade the results. Drawing from patent filing US 2026/0339925 A1.
A workspace interface lets someone draft instructions while three separate AIs review, test, and grade the results.
See all 6 drawings from this filing ↓
Publication number US 2026/0339925 A1 US20260339925A1
Applicant Salesforce, Inc.
Filing date Apr 29, 2025
Publication date Oct 29, 2026
Inventors Lidor Avigad, Kexin Xie, Yacov Salomon
US classification 707/722
Examiner ZHAO, YU (Art Unit 2169)
Status when we published Examiner raised objections; the company can respond (Oct 21, 2026)
Document 20 claims

What Salesforce's teacher-student-principal trio does

Imagine you ask an AI to write a thank-you email for customers who sent feedback. The first try comes back stiff and generic, so you tweak your wording, try again, and repeat. Now picture that tweaking happening without you.

Salesforce's patent application describes three AI models with different jobs. A "teacher" writes the instructions. A "student" follows them and produces the email. A "principal" grades the result against a checklist and sends notes back to the teacher, who rewrites the instructions and goes another round.

The loop stops once the grade clears a passing score. Only then do you see the result. The filing says this can cut the time needed to build a good set of instructions from days to seconds or minutes.

From the filing · CLAIM 1
… generating, by the third machine learned model and based on the third input, feedback data comprising values indicating whether the output meets one or more quality criteria of the task; …

Translation: The third AI acts as a grader, checking if the work meets the required quality standards.

How the grader sends a draft back for another try

The filing describes a loop built from three separate AI models, usually large language models (the text-generating AI behind chatbots). Each gets a system prompt (a standing note telling it what role to play).

  • Teacher: takes the user's task, such as "create a customer appreciation email template," and writes the instructions (the "prompt") for the next model.
  • Student: follows those instructions and produces the draft. It can look up data in databases when the instructions say so.
  • Principal: scores the draft against quality criteria and can call an outside testing tool.

The filing's example checklist has 21 questions, each scored 1 to 5, covering things like completeness, tone, personalization and compliance. The teacher gets the scores and the draft back. Below the threshold, it rewrites the instructions using the feedback, and optionally a knowledge base. At or above it, the result goes to the user's screen and can be saved as a reusable template, tagged with the type of model used.

The filing also describes variations: two student models from different AI makers, several competing teachers, or a second grader focused on safety. In its email example, one rewrite lifts low scores on engagement and personalization to mostly 5s.

From the filing · THE ABSTRACT
The first machine learned model may determine whether to end the iterative process or perform another iteration to produce more refined instruction prompts.

Translation: The first AI decides whether the job is finished or needs to be done over again.

Why Salesforce is automating AI instruction writing

If you use AI at work, the wording of your request often decides whether you get something useful or something bland. This patent application aims to move that trial and error off your plate: the system writes the instructions, checks the result and retries before showing you anything. The filing names Salesforce's Prompt Builder as one place it could be built in, where a follow-up like "make the tone more professional" makes the grader raise its tone standard.

The examiner's first review rejected the claims as filed, which is routine at this stage and usually followed by amendments. The filing also targets a chore companies face when they switch AI providers: instructions that work well on one model often need rewriting for another, and this loop is meant to find versions that give similar results across several.

That makes this Salesforce's 14th filing we've tracked since July in our AI agents working together watchlist, building on their work around agents showing their reasoning and plug-in AI apps.

Editorial take

If you have ever rewritten the same AI request five times to get a decent email, this idea targets exactly that chore. What you would notice is that the first answer you see has already survived a grading round.

The weak spot is the grader. A model scoring another model's work is only as good as the checklist it is handed, and the filing's own example asks for 21 separate judgments on a 1 to 5 scale. If that checklist is sloppy, every round of polishing aims at the wrong target.

You would most likely meet this inside business software, as a template builder that hands over finished email text. Expect it to save time on routine writing, and expect a person to still read the result before it goes out.

Get our take in your Top Stories

Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time Salesforce patent news breaks.

There are more where this came from

We read every patent application Big Tech publishes and send you the ones worth knowing. Plain English, free, every week.

The drawings

6 drawing sheets from US 2026/0339925 A1 · click any drawing to enlarge

Cloud servers and user devices that run the AI system, drawing sheet 1 from US 2026/0339925 A1
Sheet 1 Cloud servers and user devices that run the AI system
Three AI agents collaborating to write and grade prompts, drawing sheet 2 from US 2026/0339925 A1
Sheet 2 Three AI agents collaborating to write and grade prompts
An app screen where users test automated drafts, drawing sheet 3 from US 2026/0339925 A1
Sheet 3 An app screen where users test automated drafts
Pairing multiple student or teacher models together, drawing sheet 4 from US 2026/0339925 A1
Sheet 4 Pairing multiple student or teacher models together
Adding a safety checker to the multi-agent team, drawing sheet 5 from US 2026/0339925 A1
Sheet 5 Adding a safety checker to the multi-agent team
How the system loops until results pass quality checks, drawing sheet 6 from US 2026/0339925 A1
Sheet 6 How the system loops until results pass quality checks
Browse all the drawings 6 drawing sheets
Patent filing page

Source. Full patent text and figures from the official USPTO publication PDF.
Reader comments

Be the first to weigh in

Start the discussion

Real name or a handle, either is fine. Comments are read by a person before they appear, so allow a little time. Keep it about the filing.