Bridging the Gap: Documenting APIs for Humans and LLM Agents

Bookmark
Rate this content

Over the past few years, there has been a notable shift in how developers interact with documentation.

Before now, developers often turned to Docs and Stack Overflow for answers about tools, but that is no longer the case.

Today, API Docs, tutorials, and specifications are not just for humans—they are also utilized to train LLM agents to answer questions about your tools. This talk will explore how to document API and tutorials in a way that serves both developers and LLMs, making your documentation more accessible, actionable, and future-proof.

Through case studies and practical insights, we'll cover how companies are adjusting to this new dynamic shift and the rise of GEO (Generative Engine Optimization).

This talk has been presented at AI Coding Summit, check out the latest edition of this Tech Conference.

FAQ

The speaker is Trust Jermin, a developer advocate at UploadCare who also writes technical articles.

The talk is about documenting APIs for both humans and LLMs (Large Language Models).

With the rise of AI, many developers use LLMs to find and access content. Optimizing documentation for LLMs can increase product visibility and user engagement.

The new DX refers to a combination of a good user experience and a good agent experience, catering to both humans and LLMs.

Key steps include providing clear language, logical structure, examples, utilizing open API specifications, and having an LLMS.txt file for better context.

Humans look for clarity and logical flow, while LLMs need structured data and context for better understanding and indexing.

GEO (Generative Engine Optimization) is the optimization for LLMs and AI tools, ensuring content is accessible and relevant in the AI-driven search landscape.

For humans, success can be measured by bounce rates and feedback. For LLMs, it involves checking the accuracy of AI-generated content and frequency of citation.

Companies such as MongoDB, Twilio, Vercel, Stripe, and UploadCare are already optimizing their documentation for LLMs.

Resources include LLMS txt.org, Open API docs, and documentation from Vercel and Stripe.

Trust Jamin
Trust Jamin
22 min
23 Oct, 2025

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Discussing the importance of writing for humans and LLMs, optimizing content for AI and LLM accessibility, and enhancing signups through AI referrals. Exploring methods to structure content for LLMs, optimize documentation for both human and LLM accessibility, and enhance AI-friendly documentation. Utilizing MCP server for better content structuring, adopting GEO for future AI tool optimization, and targeting audiences with content optimization by companies like MongoDB and Stripe.

1. Writing for Humans and LLMs

Short description:

Discussing writing for humans and LLMs, importance of AI in content search, and increasing signups through AI referrals.

Hi, everyone, and welcome to my talk. So today I'll be talking about bridging the gap, documenting APIs for humans and also for LLMs. So before we dive into the talk, let's do a little bit of introduction. So my name is Trust Jermin. I mostly prefer to be called Jermin, but you can call me Trust. So I work as a developer advocate at Upload Care, and I also write technical articles as well. And so you'll find me always talking a lot online about Upload Care and about uploading files as well. You can find me on social media using the handle at CodeJackaband. It's what I use for all my handles. So today we're going to be talking about how you should write content for both humans and LLMs. So over the course of the talk, we'll cover a few things. So we'll cover why you should care about writing for LLMs, the way you write for humans, how humans read Docs versus how LLM consume content, how you can write for humans and also how you can write for LLMs. And some very smart actions you can take today to make sure that your Docs and your tutorials are positioned for LLMs. And we'll also see how you can measure success and how it compares for both audiences, for humans and for LLMs, and some resources that you could check out while trying to write for both.

So why is this talk important? So there's a new wave of AI taking the old space in terms of how people search for content and how people find content and also how companies get referrers or get signups these days. Gilamo from Vassel made a tweet a while back that charge equity now refers 10% of their signups for Vassel. And it also shows that a couple of things is happening. So some reasons why you should care include this one charge equity currently has over 800 million users, weekly users that are very active using charge equity and also charge equity handles over 1 billion queries every single day. That's a huge number of people depending on charge equity and LLMs for asking questions. Take note, this is just charge equity that we're using as one LLM as a use case. There are others as well that you could also check out. And the 2025 Stackoverflow survey shows that five out of every six developers uses AI in their workflow, possibly for writing code, for asking questions, for fixing bugs, or for handling errors. So that's a very huge number if you are trying to get your product to those developers. So if those five out of every six developers are not discovering your product via AI, then it means something is wrong and it should be fixed. So other companies are also getting this as well. So this is a screenshot from a company that is actually getting referrals from charge equity. And where I work at Upload Care, we are also seeing a very, you know, increasing the number of signups that we're getting. And this chart show this signups have been having over time starting from January this year. And up to now, the number has been increasing very consistently.

2. Enhancing Content Accessibility

Short description:

Exploring the importance of optimizing content for AI and LLMs, the evolution of developer experience, and strategies to enhance accessibility for all users.

And up to now, the number has been increasing very consistently. So this shows that you should not ignore, you know, optimizing your content for AI and LLMs. Instead, you should be optimizing your content for them as well.

So before now, there used to be something called DX, developer experience, which is more like on the top layer of it, it's just good user experience, but tailored for developers. But now humans are not the only people trying to read your content. Humans are not the only people trying to access your content. Now, we now have LLM agents, AI agents that are trying to access your content. And so the new DX is no longer just humans alone. Instead, it's a combination of a good user experience and a good agent experience. That is what creates the new DX right now.

So how can you improve on your DX and make it as accessible to everybody? So first, let's understand how humans read content, how a typical developer would go through your content when using your tool. The first step they will do is possibly they might search for it on Google. That is where SEO helps a lot. Or they might just go directly to your URL. And when they are going through issues or trying to look for something, they will skim through your docs and read from top to bottom to try to look for something. If they can't find it like that, they'll use navigation or they'll use any of the search functionalities that you have. So in essence, this whole step shows that social developer is looking for a couple of things. One, clarity to logical flow in your documentation. And they're also looking for examples and use cases. So all of these are the things that they need in order for them to be able to access content in your docs and to understand what's going on. But in the case of LLMs, it's a bit different.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Full Stack Documentation
JSNation 2022JSNation 2022
28 min
Full Stack Documentation
Top Content
The Talk discusses the shift to full-stack frameworks and the challenges of full-stack documentation. It highlights the power of interactive tutorials and the importance of user testing in software development. The Talk also introduces learn.svelte.dev, a platform for learning full-stack tools, and discusses the roadmap for SvelteKit and its documentation.
Gateway to React: The React.dev Story
React Summit US 2023React Summit US 2023
32 min
Gateway to React: The React.dev Story
Watch video: Gateway to React: The React.dev Story
The Talk discusses the journey of improving React and React Native documentation, including the addition of interactive code sandboxes and visual content. The focus was on creating a more accessible and engaging learning experience for developers. The Talk also emphasizes the importance of building a human API through well-designed documentation. It provides tips for building effective documentation sites and highlights the benefits of contributing to open source projects. The potential impact of AI on React development is mentioned, with the recognition that human engineers are still essential.
Opensource Documentation—Tales from React and React Native
React Finland 2021React Finland 2021
27 min
Opensource Documentation—Tales from React and React Native
Documentation is often your community's first point of contact with your project and their daily companion at work. So why is documentation the last thing that gets done, and how can we do it better? This talk shares how important documentation is for React and React Native and how you can invest in or contribute to making your favourite project's docs to build a thriving community
Documenting components with stories
React Finland 2021React Finland 2021
18 min
Documenting components with stories
Most documentation systems focus on text content of one form or another: WYSIWYG editors, markdown, code comments, and so forth. Storybook, the industry-standard component workshop, takes a very different approach, focusing instead on component examples, or stories.
In this demo, I will introduce an open format called Component Story Format (CSF).
I will show how CSF can be used used to create interactive docs in Storybook, including auto-generated DocsPage and freeform MDX documentation. Storybook Docs is a convenient way to build a living production design system.
I will then show how CSF stories can be used create novel forms of documentation, such as multiplayer collaborative docs, interactive design prototypes, and even behavioral documentation via tests.
Finally, I will present the current status and outline a roadmap of improvements that are on their way in the coming months.
TypeScript for Library Authors: Harnessing the Power of TypeScript for DX
TypeScript Congress 2022TypeScript Congress 2022
25 min
TypeScript for Library Authors: Harnessing the Power of TypeScript for DX
TypeScript for library authors offers benefits for both internal and external use, improving code quality and providing accurate understanding of libraries. Documentation and examples should be in code to provide up-to-date information. Testing types alongside unit tests ensures accurate typing. Managing changes and exposing types requires careful versioning. Deep integration of types improves usability. Using a map in TypeScript allows for simpler implementation and customization. Leveraging types in libraries can generate code based on user access. TypeScript integration with Nuxt provides support and type declarations.
Designing Effective Documentation: Lessons Learned Building the Redux Docs
React Advanced 2024React Advanced 2024
22 min
Designing Effective Documentation: Lessons Learned Building the Redux Docs
Hi, I'm Mark Erickson, and today I'm very happy to talk to you about designing effective documentation, lessons I've learned writing the Redux docs. We'll discuss organizational techniques, practical tips, writing tutorials, and useful documentation tools. Redux offers learning-oriented tutorials and goal-oriented how-to guides. Other documentation categories include reference guides, explanations, readme files, FAQ pages, and release notes. Tips for organizing and writing documentation: consider the target reader, assume prerequisite knowledge, repeat information, cover topics in multiple areas. Writing tutorials for libraries in TypeScript presents challenges but can be tackled with TypeScript-first approach and keeping examples up-to-date. Engaging tutorials involve interactive exercises, diagrams, and formatting, and should be reviewed and improved based on feedback. Overall, documentation is valuable and worth the effort.