Preparing Applications and APIs for Generative AI with JSON-LD

F5 Ecosystem | January 22, 2025

Generative AI and emerging AI agents are driving significant changes in how web applications and APIs are constructed. Like the indexing bots that built search engines, generative AI relies on reading and understanding Internet content: your products, services, location, hours, and APIs. And it's happening now.

  • Over 50% of consumers now use generative AI tools over traditional search engines for recommendations. (Statista)
  • 42% increase in chatbot usage boosted online holiday sales in 2024. (Reuters)
  • Traffic from AI sources to online retailers rose tenfold between July and September 2024. (The Times)

Obviously, generative AI is already able to access your information. But if you want to optimize how it consumes and understands that information—as well as represents it to consumers—then read on, my friend.

Metadata and AI optimization

To ensure generative AI can accurately retrieve and process your content, optimizing metadata is critical:

  • Metadata (OpenGraph, Schema.org): Helps AI interpret content, improving indexing, sharing, and response accuracy.
  • Structured Content: Semantic tags like <article>, <section>, <header>, and breadcrumbs provide clear content hierarchy and relationships.
  • JSON-LD: Defines structured data explicitly, making key information like product prices and availability accessible to AI tools. Google also uses JSON-LD to generate visually rich snippets in search results.

What is JSON-LD?

JavaScript Object Notation for Linked Data (JSON-LD) is a lightweight, machine-readable format that has become the de facto standard for structuring data, adopted by W3C in 2014. It is based on JSON and makes it easier for machines (like search engines, AI tools, or APIs) to understand the relationships between entities and the context of content.

Its simplicity has made it the go-to for major retailers, search engines, and social platforms. Adding JSON-LD ensures AI tools can fully leverage your APIs and applications, improving discoverability and usability.

Adding JSON-LD at scale

For organizations managing hundreds of apps (and from our research we know that’s most of them), manually updating each to include JSON-LD can be costly and time consuming. However, programmable application delivery controllers (ADCs) (like F5 BIG-IP or F5 NGINX) can add JSON-LD programmatically given that many applications leverage similar frameworks and constructs, such as including breadcrumbs as navigation elements and semantic tags in applications.

Programmable ADC diagram

The programmable ADC extracts breadcrumbs and semantic tags already present in the unmodified response, formats those elements into JSON-LD constructs, and injects them into the application.

This approach can further be tailored to only modify responses intended for AI or machine consumers, as adding JSON-LD does not enhance the human experience with the content.

Using a programmable ADC also allows a single rule to scale across multiple applications and APIs, enhancing AI interaction without additional development costs.

A programmatic approach to modernizing applications and APIs ensures both are AI-ready, enhancing automation and enabling better outcomes from generative AI tools without incurring significant costs or time investments.

Find out how F5 is leading enterprise AI delivery and security.

Share

About the Author

Related Blog Posts

At the Intersection of Operational Data and Generative AI
F5 Ecosystem | 10/22/2024

At the Intersection of Operational Data and Generative AI

Help your organization understand the impact of generative AI (GenAI) on its operational data practices, and learn how to better align GenAI technology adoption timelines with existing budgets, practices, and cultures.

Using AI for IT Automation Security
F5 Ecosystem | 12/19/2022

Using AI for IT Automation Security

Learn how artificial intelligence and machine learning aid in mitigating cybersecurity threats to your IT automation processes.

The Commodification of Cloud
F5 Ecosystem | 07/19/2022

The Commodification of Cloud

Public cloud is no longer the bright new shiny toy, but it paved the way for XaaS, Edge, and a new cycle of innovation.

Most Exciting Tech Trend in 2022: IT/OT Convergence
F5 Ecosystem | 02/24/2022

Most Exciting Tech Trend in 2022: IT/OT Convergence

The line between operation and digital systems continues to blur as homes and businesses increase their reliance on connected devices, accelerating the convergence of IT and OT. While this trend of integration brings excitement, it also presents its own challenges and concerns to be considered.

Adaptive Applications are Data-Driven
F5 Ecosystem | 10/05/2020

Adaptive Applications are Data-Driven

There's a big difference between knowing something's wrong and knowing what to do about it. Only after monitoring the right elements can we discern the health of a user experience, deriving from the analysis of those measurements the relationships and patterns that can be inferred. Ultimately, the automation that will give rise to truly adaptive applications is based on measurements and our understanding of them.

Inserting App Services into Shifting App Architectures
F5 Ecosystem | 12/23/2019

Inserting App Services into Shifting App Architectures

Application architectures have evolved several times since the early days of computing, and it is no longer optimal to rely solely on a single, known data path to insert application services. Furthermore, because many of the emerging data paths are not as suitable for a proxy-based platform, we must look to the other potential points of insertion possible to scale and secure modern applications.

Deliver and Secure Every App
F5 application delivery and security solutions are built to ensure that every app and API deployed anywhere is fast, available, and secure. Learn how we can partner to deliver exceptional experiences every time.
Connect With Us