Generate Your AI Agent in Minutes with OpenAPI

Easily create a powerful LangChain based AI agent using your OpenAPI specification no manual coding required. Just enter your OpenAPI URL or upload a JSON/YAML file, and instantly generate a fully functional agent equipped with dynamic tools and intelligent task orchestration.

OR


         Quick Start
         

Dynamic API Toolset

This platform automatically builds intelligent tools and agents from your OpenAPI spec, transforming each API endpoint into callable components the agent can use to interact with external services.


Agent Architecture


LLM Integration

All agents are powered by a large language model (LLM), enabling them to:


Start Now


API Agent Guide: Build an AI Agent with OpenAPI

Quick Start

In this guide, you'll learn how to create an AI agent that interacts with the JSONPlaceholder API using its OpenAPI specification.

Resources

Step-by-Step Instructions

1. Generate Your Agent Project

  1. Visit: https://agentsapis.com/
  2. Upload the JSON OpenAPI spec you downloaded.
  3. Download the generated .zip file.
  4. Unzip and open the folder in your preferred code editor.

2. Set Up the Project

Inside the unzipped folder:

Add Your OpenAI API Key

Create or update the .env file with your API key:

env
OPENAI_API_KEY=your-api-key-here

Install Dependencies

Run one of the following commands:

bash
pnpm install
# or
yarn install
# or
npm install

3. Configure the API Client

Open src/index.ts and set your API URL to https://jsonplaceholder.typicode.com.

ts
import { createApiClient, getGraphAndRun } from './core'; import dotenv from 'dotenv'; dotenv.config(); const client = createApiClient("https://jsonplaceholder.typicode.com", { axiosConfig: { // Optional custom Axios configuration } }); (async () => { const out = await getGraphAndRun(client, 'list posts'); console.log(out); })();

4. Run the Script

Execute the script using ts-node:

bash
npx ts-node src/index.ts

You should see output from the agent calling the list posts endpoint using OpenAPI and LLM inference.


Explore the Core Logic

Once your agent is running, dive into src/core.ts to see how it all works under the hood:


You're Done!

You’ve successfully built an AI-powered agent that uses OpenAPI to intelligently query an external REST API. You can now build on top of it by customizing tools, modifying prompts, or adding your own logic.

Try different prompts like:

Happy building!