AskAction
AskAction is a CommunicateAction subtype. Property: question (Question).
Full example of schema.org/AskAction json-ld markup
The markup is verified as valid with Rich Results Test from Google.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AskAction",
"agent": { "@type": "Person", "name": "Questioner" },
"question": { "@type": "Question", "name": "Why doesn't Google render my FAQPage?" }
}
</script>Minimal valid version
The smallest markup that still produces a valid AskAction entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "AskAction",
"question": { "@type": "Question", "name": "Example question" }
}
</script>Google rich results this unlocks
AskAction is a structural type. It does not produce a rich result on its own.
Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). AskAction becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.
Common AskAction mistakes
Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.
- 01
question as a string
Wrong"question": "..."RightQuestion node with name / textWrap in Question to let QAPage rich results resolve the link.
About the example data
Posting a question to the Xoo Code Q&A.
Comments
Loading comments...