Open Graph Protocol
Definition
The Open Graph Protocol (OGP) is a metadata standard originally created by Facebook in 2010 that allows web pages to declare structured information about themselves - title, description, image, type, and URL. These meta tags sit in the HTML <head> of a page and tell platforms how to display the page when it’s shared or previewed.
In the context of agentic commerce, Open Graph has taken on new relevance. AI systems parsing product pages often use OGP tags as a quick, reliable source of structured information. When an AI agent encounters a product page, the og:title, og:description, og:image, and og:price tags provide clean, pre-summarized data that’s easier to parse than extracting information from the page’s body content.
Most e-commerce platforms generate OGP tags automatically for product pages, but the default values are often generic or incomplete. Optimizing these tags has always mattered for social sharing - it now matters for AI visibility too.
Why It Matters
Open Graph Protocol matters for agentic commerce because it’s one of the most widely deployed structured data formats on the web, and AI systems are leveraging it:
- Universal deployment. OGP is supported by virtually every e-commerce platform, social network, and messaging app. This ubiquity means AI agents can reliably find OGP tags on product pages across the web, making it a de facto data source.
- Fallback data source. When more sophisticated structured data (like Product schema or MCP feeds) isn’t available, AI systems fall back to OGP tags for basic product information. A well-optimized og:title and og:description can make the difference between an accurate recommendation and a garbled one.
- Image selection. The og:image tag directly influences which product image AI systems associate with your product. If your og:image points to a low-quality thumbnail or your site logo instead of the product photo, that’s what appears in AI-generated product cards.
- Price and availability. Extended OGP tags for products (og:price:amount, og:price:currency, product:availability) provide pricing data in a standardized format that AI systems can parse without scraping price elements from page HTML.
- Cross-platform consistency. Optimizing OGP tags ensures your products are represented consistently whether they appear in a ChatGPT recommendation, a Perplexity citation, a social media share, or a messaging app preview.
The practical reality is that most merchants have OGP tags on their product pages but have never reviewed them. Default platform-generated tags often use truncated titles, generic descriptions, or wrong images. A 15-minute audit of your OGP tags can meaningfully improve how your products appear across AI and social channels.
How It Works
Open Graph Protocol uses HTML meta tags in the <head> section of a page:
-
Core tags. Every page should have
og:title(product name),og:description(product summary),og:image(product photo URL),og:url(canonical URL), andog:type(set to “product” for product pages). -
Product-specific tags. E-commerce pages can use extended tags:
og:price:amountandog:price:currencyfor pricing,product:availabilityfor stock status, andproduct:brandfor brand attribution. -
Image requirements. The og:image should be at least 1200x630 pixels for optimal display. It should show the product clearly - not a lifestyle shot where the product is hard to identify, and not a site logo placeholder. AI systems use this image in product cards.
-
Description optimization. The og:description should be a concise, informative product summary in 150-200 characters. For AI consumption, include the key selling points, category, and primary use case. Avoid marketing language that doesn’t convey concrete information.
-
Platform integration. Most e-commerce platforms (Shopify, WooCommerce, PrestaShop, BigCommerce) generate OGP tags from product data. The quality depends on your product data - if your Shopify product description is thin, your og:description will be too. Some platforms allow manual OGP customization through apps or theme code.
For merchants, the optimization workflow is: audit your current OGP tags using a tool like Facebook’s Sharing Debugger or any OGP validator, identify products with missing or suboptimal tags, improve the underlying product data or manually override the tags, and validate the changes. Prioritize your top-selling and most-searched products first.
Related Terms
- Product Schema - A more detailed structured data format for product pages, complementary to OGP
- llms.txt - A site-level standard for providing AI models with structured context about your website
- AI Visibility Score - A metric that considers OGP quality among other factors in evaluating AI readiness
- Citation Optimization - Strategies for improving how AI systems reference your products, where OGP quality plays a role