Get the newsletter
Apple · AI / ML · Filed Aug 6, 2026 · USPTO published Dec 3, 2026 · This week's release

Apple Files Patent to Make Phone AI Answer in Formats Apps Understand

AI chatbots are good at chatting and clumsy at filling out forms. Apple's patent application describes a checkpoint that reshapes the AI's answer so an app can use it right away.

Sample code showing how an app restricts an AI to answer with exact categories, like a person's name and job. Drawing from patent filing US 2026/0386781 A1.
Sample code showing how an app restricts an AI to answer with exact categories, like a person's name and job.All 17 drawings ↓
Publication number
US 2026/0386781 A1(US20260386781A1)
USPTO patent title:
On-Device Language Model for Syntax-Guided Responses
Applicant
Apple Inc.
Filed · Published
Aug 6, 2026 · Dec 3, 2026
Inventors
Erik D. HORNBERGER, Louis D'HAUWE, Alexander D. PALMER, Yifei HE, Bowen HUANG, Xinran WEI, John DENNISON, Zhen LI
Status when we published
Waiting for an examiner
Document
11 claims
US classification
717/106
Parent application
Continuation of 19/393,817 (filed Nov 19, 2025)(19393817)

What Apple's format-fixing AI patent does

A contacts app asks a chatbot for a person's name and age. The chatbot replies with a friendly sentence, and the app has no clean way to pull the two facts out of it.

AI models are good at reading messy human writing and bad at answering in a strict layout. Apple's patent application adds a checkpoint for AI that runs on your device. The system looks at the AI's first reply. If it passes a check, it goes straight through. If not, the system translates it into the format the app asked for.

According to the filing, a developer would only name the data they want, such as a name and an age, and the system works out the rules itself. For you, that could mean apps built on your phone's AI that hand back usable answers, with your data staying on the device.

From the filing · CLAIM 1
translating the first response to the prompt to obtain a second response to the prompt, wherein a syntax of the second response to the prompt is acceptable for a predetermined data type in a programming language; …

Translation: Rewriting the AI answer so it fits the strict formatting rules that coding languages require.

How the AI's reply gets checked and reshaped

The claims describe a check-and-fix step around a large language model (the AI engine behind chatbots). An app sends a prompt, and the system tests the model's first reply against a condition. If it fails, the system translates it into a second reply whose syntax (its exact formatting rules) suits a set data type in a programming language, such as a "Person" holding a name and an age. If it passes, it goes out untouched.

The description adds constrained decoding, which limits the words the model may pick next:

  • A developer names a data type, say in Swift (Apple's programming language), and the system gets the rules from the compiler (the tool that reads that language).
  • Those rules become a grammar, and a prefix tree (a branching map of valid next pieces) blocks every invalid choice.
  • When one valid piece remains, the system fills it in and skips the model's work, using the CPU instead of the power-hungry GPU.

Tool use works the same way. Asked "What is my mom's phone number?", the model writes a structured call to a contacts tool, and the answer is copied back into its context window (its working memory).

The filing also describes add-on files that let developers fine-tune the model, plus a smaller model that drafts answers for the big one to check.

From the filing · THE ABSTRACT
The present technology pertains to executing language models on personal computing devices, offering enhanced privacy and security over cloud-based solutions.

Translation: Running AI directly on your phone instead of distant servers keeps your personal data much safer.

Why app makers and iPhone owners should care

If you use apps on an iPhone, this is about plumbing that could let those apps tap the AI on your phone, keeping the work on the device for privacy. The filing says that benefit has mostly stayed with the operating system and Apple's own apps, and this patent application is aimed at opening it to outside developers.

For developers, the pitch is less busywork: hand over a data type and get tidy answers back, with no hand-built schema (a written template for the answer). For Apple, it makes its AI easier to build on, which matters when apps need the AI to trigger real actions such as looking up a contact. The filing continues an earlier application that traces back to a May 2025 provisional, so the idea has been in motion for a while.

Apple's 13th filing we've tracked since July on our agents that act for you list follows a search bar that runs tasks and voicemail that suggests calendar events.

Source: US 2026/0386781 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.

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 Apple patent news breaks.

There are more where this came from

We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.

The drawings · 17 sheets

17 drawing sheets from US 2026/0386781 A1 · click any drawing to enlarge

How apps on a phone access the built-in AI model, drawing sheet 1 from US 2026/0386781 A1
Sheet 1 How apps on a phone access the built-in AI model
Steps for forcing AI answers into coding formats apps accept, drawing sheet 2 from US 2026/0386781 A1
Sheet 2 Steps for forcing AI answers into coding formats apps accept
Using a decision tree to restrict AI word choices, drawing sheet 3 from US 2026/0386781 A1
Sheet 3 Using a decision tree to restrict AI word choices
Blocking invalid word choices while the AI writes replies, drawing sheet 4 from US 2026/0386781 A1
Sheet 4 Blocking invalid word choices while the AI writes replies
When phone chips calculate word choices and filter invalid answers, drawing sheet 5 from US 2026/0386781 A1
Sheet 5 When phone chips calculate word choices and filter invalid answers
Auto filling known answers to speed up AI responses, drawing sheet 6 from US 2026/0386781 A1
Sheet 6 Auto filling known answers to speed up AI responses
Switching between strict formatting rules and freeform AI text, drawing sheet 7 from US 2026/0386781 A1
Sheet 7 Switching between strict formatting rules and freeform AI text
How an app requests and receives structured AI data, drawing sheet 8 from US 2026/0386781 A1
Sheet 8 How an app requests and receives structured AI data
Show the other 9 sheets
Steps for the AI to trigger an external tool, drawing sheet 9 from US 2026/0386781 A1
Sheet 9 Steps for the AI to trigger an external tool
How the AI chains multiple external tool calls together, drawing sheet 10 from US 2026/0386781 A1
Sheet 10 How the AI chains multiple external tool calls together
Delivering custom app AI models through an app store, drawing sheet 11 from US 2026/0386781 A1
Sheet 11 Delivering custom app AI models through an app store
Moving an app's custom AI into protected device storage, drawing sheet 12 from US 2026/0386781 A1
Sheet 12 Moving an app's custom AI into protected device storage
Checking and refining draft answers using two AI models, drawing sheet 13 from US 2026/0386781 A1
Sheet 13 Checking and refining draft answers using two AI models
General structure of the AI that generates responses, drawing sheet 14 from US 2026/0386781 A1
Sheet 14 General structure of the AI that generates responses
Internal parts that digest prompts and create replies, drawing sheet 15 from US 2026/0386781 A1
Sheet 15 Internal parts that digest prompts and create replies
Phone chip hardware that runs the on-device AI, drawing sheet 16 from US 2026/0386781 A1
Sheet 16 Phone chip hardware that runs the on-device AI
Hardware parts that run the phone AI features, drawing sheet 17 from US 2026/0386781 A1
Sheet 17 Hardware parts that run the phone AI features
Patent filing page

More in AI assistant & agent

All 491 AI assistant & agent patents →

Watchlists this filing belongs to

All watchlists →
Reader comments

No comments yet

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.