By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: I Built an AI Agent That Lets You Explore APIs in Plain English | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > I Built an AI Agent That Lets You Explore APIs in Plain English | HackerNoon
Computing

I Built an AI Agent That Lets You Explore APIs in Plain English | HackerNoon

News Room
Last updated: 2025/11/02 at 7:11 PM
News Room Published 2 November 2025
Share
I Built an AI Agent That Lets You Explore APIs in Plain English | HackerNoon
SHARE

My current product has hundreds of APIs. Every time I need to refer to the API specification, I have to navigate to the Swagger link, scroll endlessly, or use browser search to find what I need—and then manually filter things out. It’s frustrating and painfully slow. Even worse, every developer who needs to integrate with the API has to go through the same experience.

This frustration led me to explore how AI could improve the process. This post is a deep dive into that journey and how it evolved into something simple, robust, and effective.

Preparation

Rich API Documentation

As a first step, I reviewed entire api documentation to make sure it has clear summary and description details in the swagger docs. This is a critical step for better discoverability in later stages. I also made sure the summary and description are unique for each api.

paths": {

    "/users/accounts/{account-id}": {

      "put": {

        "tags": [

          "Account API"

        ],

        "summary": "Update Test suite by test-suite-id",

        "externalDocs": {

          "description": "Robust get account details description",

          "url": "https://mydocs.com/description"

        },

Categorization of the APIs

With hundreds of APIs available, it can be challenging to identify which ones are related. Categorizing the APIs makes management more efficient and later simplifies selecting the right API based on natural language input. This categorization was implemented using the tagging concept defined in the OpenAPI specification.

"paths": {

    "/users/accounts/{account-id}": {

      "put": {

        "tags": [

          "Account API"

        ],

        "summary": "Update Test suite by test-suite-id",

        "externalDocs": {

          "description": "Robust get account details description",

          "url": "https://mydocs.com/description"

        },

Building Natural Language Search

User Input

Users would enter the natural language question related to the API.

Example: How to retrieve account details?

Classify Category

At this stage, the question and all the available categories are sent to the LLM. The LLM is tasked to return the high-level category the question falls into. The output of this step is one of the categories.

Classify Specific API

Based on the LLM’s identified category, the system sends another request to the model with the same question — but this time, it includes all API details within that specific category detected in the previous step.

This is where the earlier preparation pays off: the more descriptive and well-structured the API documentation, the better the results. Clear descriptions help the LLM accurately determine which API the user is requesting information about.

The output of this step is a single, specific API.

Enrich API Response Details

The OpenAPI specification of the API is then provided to the LLM to generate a detailed, context-rich description of the API alongside the original question.

For example, if the user asks, “How can I retrieve account details using an account ID?”, the response will include the relevant specification details of the Account API.

Extention

With the system’s enhanced ability to accurately detect the appropriate API, users can now go a step further — generating code snippets to interact with various APIs directly.

For example:

  • “Share Python code to call the Get Account Details API for a given ID.”

  • “Provide a cURL command to fetch account details by ID.”

  • “Generate a Go client to retrieve account details for a specific ID.”

Lessons Learned and Insights

  • Rich documentation is imperative for better accuracy when working with AI systems. Precise, clear, and to-the-point documentation is essential for robustness. Bonus: We also used LLM to generate a summary and description for each API, which helped immensely.
  • Categorize First
  • Why: With hundreds of APIs, categorization reduces cognitive load and improves retrieval.
  • How: Group related APIs into a small set of clear categories. AI systems perform better when the label space is limited.
  • Scale tip: If the catalog is very large, add sub-categories for finer routing.
  • Build Iteratively
  • Start small: Take a subset of the spec and train/validate a router that can reliably select the correct API.
  • Expand gradually: Add more APIs over time, measure accuracy, and prioritize areas with misclassifications.
  • Focus: Optimize precision/recall rather than breadth at the outset.
  • Close the Loop with Users
  • Collect feedback: Capture cases where the system picked the wrong API.
  • Act on signals: Refine the misidentified APIs’ descriptions, summaries, and tags; clarify overlapping scopes.
  • Repeat: Re-evaluate after each change to confirm that accuracy improves and regressions are avoided.

Conclusion

As the number of available APIs continues to grow, exploring and managing them requires a new approach. With the rise of AI agents powered by large language models (LLMs), developers now have a more intuitive and efficient way to discover and interact with APIs—saving countless hours previously spent searching for the right endpoints.

The potential doesn’t stop there. This concept can evolve into a standalone product capable of seamlessly ingesting OpenAPI specifications at runtime and exposing them through a natural language interface—offering users an out-of-the-box solution for API exploration.

Hopefully, this article has illustrated how to leverage LLMs effectively and how well-structured API documentation can create a smoother, more intelligent discovery experience.

n n

n n

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article I’d Label Everything With the Munbyn RealWriter 405B, If Only I Could Figure Out Its Tricky Software I’d Label Everything With the Munbyn RealWriter 405B, If Only I Could Figure Out Its Tricky Software
Next Article From OnePlus Nord CE5 to Xiaomi 14 Civi: The Best 5G Smartphones Under Rs 30,000 You Can Buy in November 2025 From OnePlus Nord CE5 to Xiaomi 14 Civi: The Best 5G Smartphones Under Rs 30,000 You Can Buy in November 2025
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Best Buy Reveals Black Friday Plans With Sitewide Sales Available Now
Best Buy Reveals Black Friday Plans With Sitewide Sales Available Now
News
China Grants Pony.ai City‑wide Driverless Robotaxi Licence | HackerNoon
China Grants Pony.ai City‑wide Driverless Robotaxi Licence | HackerNoon
Computing
Humans ‘used to sleep twice every night’ with surprising activity in between
Humans ‘used to sleep twice every night’ with surprising activity in between
News
The Future of Workplace Connectivity: Building Culture Through Intranet Solutions
The Future of Workplace Connectivity: Building Culture Through Intranet Solutions
Trending

You Might also Like

China Grants Pony.ai City‑wide Driverless Robotaxi Licence | HackerNoon
Computing

China Grants Pony.ai City‑wide Driverless Robotaxi Licence | HackerNoon

1 Min Read
Nvidia to Deliver 260,000+ Blackwell AI Chips to South Korea | HackerNoon
Computing

Nvidia to Deliver 260,000+ Blackwell AI Chips to South Korea | HackerNoon

1 Min Read
AMD Radeon AI PRO R9700 Offers Competitive Workstation Graphics Performance/Value Review
Computing

AMD Radeon AI PRO R9700 Offers Competitive Workstation Graphics Performance/Value Review

3 Min Read
Social media hiring in 2025: How to build a high-performing team
Computing

Social media hiring in 2025: How to build a high-performing team

32 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?