Agent Wranglers

EML-68Optional

Add structured data to orders and bookings

Describe orders, reservations and deliveries with schema.org data in the email, so mail apps can show them as cards.

How to do it

Add JSON-LD in the HTML part, using types such as Order, ParcelDelivery or EventReservation. Gmail shows most of it only for registered senders that pass SPF or DKIM. Keep the same facts in the visible text. Pages describe themselves the same way in Describe each page for machines.

Examples

HTML example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Order",
  "merchant": { "@type": "Organization", "name": "Example Shop" },
  "orderNumber": "1042",
  "priceCurrency": "EUR",
  "price": "49.00",
  "acceptedOffer": {
    "@type": "Offer",
    "itemOffered": { "@type": "Product", "name": "Walking boots" },
    "price": "49.00",
    "priceCurrency": "EUR",
    "eligibleQuantity": { "@type": "QuantitativeValue", "value": "1" }
  },
  "orderStatus": "https://schema.org/OrderProcessing"
}
</script>

How to check

Run the email through Google's email markup tester. It reports no errors, and the facts match the visible text.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/automation-and-agents/email-markup">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.