Action Types: JSON-LD Markup, Properties and potentialAction
How Schema.org Action types work in JSON-LD: agent and object properties, subtypes, and potentialAction on pages and entities.
This page summarises Schema.org documentation on Action types: vocabulary for describing something a person or organisation did, might do, or can trigger from a page. Most official examples use JSON-LD inside a <script type="application/ld+json"> block. The same ideas appear across dozens of subtypes—from ListenAction to BuyAction—so understanding the shared property pattern matters more than memorising every type name.
Action in structured data: what it is and when to use it
Section titled “Action in structured data: what it is and when to use it”An Action is structured metadata for an event with an agent (who acts), often an object (what the action concerns), and optional context such as participant, location, instrument, or result. Publishers use it when the page’s meaning includes “someone did X”, “users can do Y here”, or “this entity offers action Z” (via potentialAction on a Restaurant, Movie, WebSite, or MathSolver).
Typical situations: activity feeds or histories (“John commented on a blog post”), commerce and logistics (BuyAction, SendAction, ReceiveAction), media consumption (WatchAction, ListenAction), social reactions (LikeAction, ShareAction), and callable UI (“Search this site”, “Reserve a table”, “Watch this movie”) encoded as potentialAction rather than as a past event.
JSON-LD Action markup: how examples are embedded
Section titled “JSON-LD Action markup: how examples are embedded”Schema.org’s examples follow one embedding pattern: JSON-LD in HTML.
Example encoded as JSON-LD in a HTML script tag.
— Schema.org, Action
A minimal completed action matches the shape used on CreateAction, CommentAction, and most other subtypes:
<script type="application/ld+json">{ "@context": "https://schema.org", "@type": "CommentAction", "agent": { "@type": "Person", "name": "John" }, "resultComment": { "@type": "Comment", "text": "That's cool!" }, "about": { "@type": "ScholarlyArticle", "name": "We found that P = NP!" }}</script>Always set "@context": "https://schema.org" (with or without a trailing slash in other examples) and a concrete "@type" such as AcceptAction or SearchAction, not the vague word “Action” alone, unless you intentionally use the base type.
Cloudflare’s Markdown for Agents notes that when HTML is converted for agents, application/ld+json scripts are preserved while other scripts are stripped:
JSON-LD is a structured-data format used by search engines and AI systems to interpret a page’s semantic content. Markdown for Agents preserves any
<script type="application/ld+json">blocks from the source HTML by appending them at the end of the converted Markdown inside a single fenced json code block.— Cloudflare, Markdown for Agents — JSON-LD
If multiple JSON-LD blocks exist, that pipeline concatenates them into one JSON fence—worth knowing when you validate markup on the live HTML, not only on a Markdown export.
Action properties: agent, object, participant and related fields
Section titled “Action properties: agent, object, participant and related fields”Across the cluster examples, the same properties recur with stable roles. The first sentence in each row is the rule; subtypes add specialised names (e.g. endorsee on EndorseAction).
| Property | Role in plain language | Example subtype |
|---|---|---|
agent |
Actor who performed or performs the action | PhotographAction |
object |
Primary thing the action is about | ReadAction |
participant |
Additional actor (not the main agent) | ExerciseAction |
recipient |
Party receiving communication or goods | AskAction, GiveAction |
instrument |
Tool or app used to perform the action | BookmarkAction |
location |
Where the action happened | CheckInAction |
result / resultComment / resultReview |
Output of the action | CheckAction, ReviewAction |
targetCollection |
List being modified | AddAction |
fromLocation / toLocation |
Movement endpoints | TravelAction, MoveAction |
price / priceCurrency |
Monetary amount when relevant | PayAction, DonateAction |
startTime / scheduledTime |
Timing | AllocateAction, ScheduleAction |
Action’s extended ListenAction example also ties place, co-participants, and device:
John listened to Pink with Steve at Anna’s apartment on his iPod.
— Schema.org, Action
That pattern—agent, object, participant, location, instrument on one action—is the template most subtypes copy with small renames.
Collection and list actions: AddAction, DeleteAction, ReplaceAction
Section titled “Collection and list actions: AddAction, DeleteAction, ReplaceAction”List mutations share object (the item) and targetCollection (often an ItemList with a url). AddAction, AppendAction, InsertAction, PrependAction, DeleteAction, and ReplaceAction differ by intent (add vs delete vs swap), not by JSON syntax. Pick the subtype that matches what the user did; use UpdateAction when the whole collection changed without a single added item (UpdateAction).
Commerce, transfer and travel actions
Section titled “Commerce, transfer and travel actions”BuyAction, OrderAction, SellAction, and TradeAction attach products or books to agents and sometimes sellers. SendAction and ReceiveAction pair sender, recipient, deliveryMethod, and geography—useful for shipment narratives.
Financial transfer without a full Action narrative can use MoneyTransfer JSON-LD as in Schema.org’s bank markup doc:
This example illustrates the use of a JSON-LD code snippet to describe a requested bank transfer. The goal of the transfer is expressed using its name. The amount of the transfer is expressed by the amount detailed by the actual amount and the currency (currency). The transfer beneficiary is indicated by the respective property (beneficiaryBank).
— Schema.org, Markup for Banks and Financial Institutions
That is a transfer record, not the same as marking up a user’s PayAction on a checkout page—but both belong in the same financial structured-data toolbox.
potentialAction: actions users can take from an entity
Section titled “potentialAction: actions users can take from an entity”Many real-world integrations do not describe past behaviour. They attach potentialAction to a type so clients know what URL or entry point to use.
SearchAction on WebSite (site search box)
Section titled “SearchAction on WebSite (site search box)”SearchAction documents both a personal search (agent + query) and site-wide search templates:
{ "@context": "https://schema.org", "@type": "WebSite", "url": "http://example.com/", "potentialAction": { "@type": "SearchAction", "target": "http://example.com/search?&q={query}", "query": "required" }}The target URL must use the placeholder pattern Schema.org shows ({query} in the example on SearchAction). The visible HTML form in the same document (Microdata/RDFa variants) should point at the same search endpoint.
WatchAction, ViewAction, ReserveAction on businesses and media
Section titled “WatchAction, ViewAction, ReserveAction on businesses and media”WatchAction on a Movie links “Watch” anchors to potentialAction.target. ViewAction on a Restaurant can list several target values—plain URLs, EntryPoint objects, and mobile app URIs—in one action.
ReserveAction on a restaurant may expose multiple targets (for example a Japanese-localised reserve link via LinkRole and inLanguage). Align every target with a real, working reservation flow.
ListenAction and access rules
Section titled “ListenAction and access rules”ListenAction includes an advanced pattern: potentialAction on a MusicRecording with actionAccessibilityRequirement (availabilityStarts, eligibleRegion, requiresSubscription, expectsAcceptanceOf). Use that when playback is gated by region, subscription, or purchase—not for a simple “play” button on a public file.
MathSolver and SolveMathAction
Section titled “MathSolver and SolveMathAction”MathSolver is for sites that solve or graph math and want to declare entry URLs:
Direct users to a leaf page when solving math problems. The leaf page may contain a step by step walkthrough of the problem and a solution.
— Schema.org, MathSolver
potentialAction entries use SolveMathAction with target templates such as https://mathdomain.com/solve?q={math_expression_string} and eduQuestionType (for example "Polynomial Equations"). Each target should land on a page that actually solves or graphs that class of problem.
How to choose an Action subtype
Section titled “How to choose an Action subtype”Use the most specific type that matches the verb in your content. If the user joined a team, JoinAction fits better than InteractAction. If they checked in to a flight, CheckInAction carries object (flight) and location (airport) fields that a generic action would omit.
When several types seem close:
- Communicate vs Ask vs Reply:
CommunicateActionis broad;AskActionandReplyActionmodel Q&A withQuestion/Answer. - React vs Like vs Review:
ReactActionis generic;LikeActionandReviewActionadd social or review structure. - Create vs Write:
CreateActionemphasisesresult;WriteActionmaps well to authoring text with aresultarticle.
If no subtype fits, fall back to InteractAction or the base Action only when necessary—but prefer a specific type from the Action hierarchy when documentation lists one.
For one-of-a-kind products, Schema.org uses IndividualProduct when the page is about a specific item, not a product class:
We use the IndividualProduct type when we are concerned with the specific item, rather than a set of indistinguishably similar items.
— Schema.org, IndividualProduct
That is product identity markup, not an Action subtype.
Common mistakes with Action JSON-LD
Section titled “Common mistakes with Action JSON-LD”- Wrong layer: Putting site search on a
Personinstead ofWebSite.potentialAction, or describing a button as a completedSearchActionwith a fictionalagent. - Mismatched subtype: Using
AddActionwhen the narrative isReplaceAction(swap) orDeleteAction. - Missing counterpart properties:
AskActionwithoutrecipientorquestion;GiveActionwithoutrecipient; list actions withouttargetCollection. - Broken
targettemplates:SearchActionorSolveMathActionURLs that omit required placeholders or do not match the live route. - Copy-paste examples: Publishing Schema.org’s sample names (“John”, fictional articles) as if they were real on your domain.
- Ignoring specialised fields:
CheckInActionfor flights needs flight and location structure when you claim check-in; half-populated flights waste the type’s intent.
How to check this on your site
Section titled “How to check this on your site”-
Open a live page, view source, and confirm one or more valid
<script type="application/ld+json">blocks whose@typematches the action you intend (compare with the official page for that type, e.g. SearchAction or ReserveAction). -
For each action object, trace required roles:
agentwhere the example shows it,objectortarget, and any subtype-specific properties (query,targetCollection,price, etc.) against the same type’s examples on Schema.org. -
For
potentialAction, click everytargetorurlTemplatein a browser (or issue a test request) and confirm it matches the JSON-LD, including templated paths like{query}or{math_expression_string}. -
If the page is served through Markdown for Agents, fetch the agent Markdown and confirm JSON-LD blocks were preserved at the end of the document as described in that reference.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.