AI agents developer docs

Everything you need to build an agent, publish it and run it from your own systems.

Overview

An agent is one JSON document, the manifest. It says what the buyer gives the agent (inputs), what the agent does (steps), what the buyer gets (outputs) and how it is sold (listing). Inflowave runs every step and draws every screen. You build the manifest with your own AI through the Inflowave MCP server, or in Create an agent under My agents in the app; this page describes the same fields.

How an agent gets reviewed and listed is on building agents on Inflowave.

Build with your AI

Connect Claude, ChatGPT or any MCP client to the Inflowave MCP server and ask it to build the agent.

Serverhttps://mcp.inflowave.io/mcp (streamable HTTP)
Sign inYour Inflowave API key as Authorization: Bearer <key> (Settings, API Keys), or sign in to Inflowave from Claude or ChatGPT.
ToolWhat it does
get_agent_building_guideHow agents work, the step kinds, a working starter example and the live list of tools a step can use.
check_agent_manifestChecks a manifest. Returns ok, errors and before_submitting (quality checks still to pass). Saves nothing.
save_agentChecks, then saves a private draft only your agency sees. Needs confirm: true. An id that is already taken is refused.
test_agentA free sandbox run with your test inputs. Needs confirm: true.
submit_agent_for_reviewSends the agent for review. Nothing goes live until Inflowave approves it. Needs confirm: true.
list_my_agents, get_my_agent_manifestYour agents, and the manifest of one of them, to edit and save again.

The manifest

A small but complete agent:

{
  "schema": "inflowave.agent/v1",
  "id": "faq-from-link",
  "listing": {
    "name": "FAQ from a link",
    "tagline": "Paste a link: get a clear FAQ section ready for your site.",
    "about": "Paste the link to a product or service page ...",
    "category": "Writing",
    "price_usd": 2,
    "price_model": "per_run",
    "trial_runs": 2,
    "terms_url": "https://example.com/terms",
    "privacy_url": "https://example.com/privacy",
    "visibility": "public"
  },
  "inputs": [
    { "id": "url", "type": "link", "label": "Link to read", "required": true },
    { "id": "tone", "type": "choice", "label": "Tone", "default": "friendly",
      "options": [{ "value": "friendly", "label": "Friendly" }, { "value": "expert", "label": "Expert" }] },
    { "id": "site_key", "type": "text", "label": "Your CMS key (optional)", "secret": true }
  ],
  "steps": [
    { "id": "read", "kind": "generate", "label": "Reading the link", "tool": "fetch_link",
      "produces": "source", "type": "text", "args": { "url": "{{inputs.url}}" } },
    { "id": "faq", "kind": "generate", "label": "Writing the FAQ", "tool": "llm_markdown",
      "produces": "faq", "type": "document_md",
      "args": { "prompt": "Write 8-12 FAQ entries in Markdown. Tone: {{inputs.tone}}.\nSource:\n{{artifacts.source}}" } }
  ],
  "outputs": [{ "artifact": "faq", "label": "FAQ", "primary": true, "download": true }],
  "secrets": [{ "name": "CMS_TOKEN", "label": "CMS token" }],
  "test_input": { "url": "https://example.com/product", "tone": "friendly" }
}
FieldWhat it is
schemaAlways inflowave.agent/v1.
id2 to 48 lower case letters, digits and -, starting with a letter or digit. It never changes.
listingName, tagline, about, category, price, price model (per_run or monthly), free trial runs, icon, trailer, media, terms and privacy links, and visibility: private (your own agency), link, agencies or public.
inputsWhat the buyer fills in when they start a run.
install_inputsSettings filled in once when a workspace installs the agent (its profile).
stepsWhat the agent does, 1 to 30 steps, in order or after the steps named in after.
outputsThe results the buyer gets at the end, 1 to 10.
secretsKeys your steps need, by name.
test_inputThe inputs for the daily test.
readme, faq, changelogShown on the agent's page.
api_auto_approvetrue lets API callers skip every person step (first option, approve as is).

Inputs

Each input has an id, a type and a label, plus optional help, placeholder, required and default.

TypeExtra fields
text, long_textsecret: stored encrypted, never shown again.
linkallowed_hosts: only links to these website names.
uploadaccept (file endings such as .mp4), max_mb (up to 500).
choiceoptions: up to 20 { value, label }.
numbermin, max.
profileprofile_field: filled from an install input.

Steps read inputs as {{inputs.ID}} and earlier results as {{artifacts.NAME}}.

Secrets and test logins

  • Secret inputs. Mark a text input "secret": true for a key the buyer gives, such as their own CMS token. It is encrypted the moment it arrives and shows as [secret] everywhere.
  • Your secrets. Declare keys your agent needs in secrets (name in capitals, label, help) and read them in steps as {{secrets.NAME}}. You set their values on the Secrets page of your agent. Every secret a step uses must be declared.
  • Test logins for reviewers. For each secret input you can store a test value and a short "how to test" note. Your test runs and our reviewers' runs use it without anyone seeing it. Paying runs never do.
  • If a secret value ever shows up in a step's error or result, it is replaced with [secret] before anything is saved.

Steps and tools

Every step has an id, a kind and a label.

KindWhat it does
generateRuns a tool with args and keeps its result as produces, of a given type.
pick_oneThe buyer picks one item from a list made earlier (from).
approveThe buyer approves a result or asks for changes, in their own words.
review_mediaThe buyer reviews an image or a video.
formThe buyer fills in fields.
upload_requestThe buyer uploads a file (in the app only).

Optional step fields: after, when (run only if an input or answer matches), optional, for_each, revisions (changes included, up to 10), timeout_s (10 to 3600) and help.

Tools

ToolWhat it doesArguments
fetch_linkDownloads a public https page and keeps its readable text.url
llm_jsonWrites with AI and returns structured data. key picks the list or object to keep.prompt, key, max_tokens (up to 8000)
llm_markdownWrites a Markdown document with AI.prompt, max_tokens (up to 8000)
render_coverDraws a 1200 by 630 cover image with a title, in the buyer's brand colours.title, subtitle

Result types: text, script, table, list, checklist, document_md, image, video_vertical, video_horizontal, audio, file.

Outputs and listing

Each output names an artifact a step produced, with a label. primary marks the main result and download lets the buyer download it.

The listing is what buyers see before they install.

Submitting

  1. Accept the current developer agreement (once per version).
  2. Run one test that delivers.
  3. Pass the quality checks. The builder shows them as a checklist, and check_agent_manifest returns them as before_submitting.
  4. Submit. The safety scan runs at once: a virus scan of uploaded files, a check that each file is what it says, link rules (https only, no bare IP addresses, no link shorteners) and a check of your instructions and listing for prompt injection, data leaks, impersonation and requests for passwords. If it passes, the agent waits for a person to review it. A private agent goes live in your own agency as soon as the scan passes.

Editing a live agent saves a draft. Buyers keep the live version until the draft is approved. A submission with no changes is refused.

API

Buyers run agents from their own systems with a personal API token. Create one on the API tab of an installed agent: it is shown once, belongs to one workspace, and can be revoked at any time. Send it as a bearer token. Examples use $BASE for the API address shown on that tab.

RequestWhat it does
POST /api/v1/agents/{id}/runsStarts a run. Body {"inputs": {...}}, optionally "pay": "trial" or "wallet" and "auto_approve": true.
POST /api/v1/agents/{id}/run-sync?timeout=300Starts a run and waits up to 300 seconds. 200 with the results when it delivers, 202 when it waits for a person, 408 when time runs out (the run keeps going).
GET /api/v1/runs/{run}The run's status: running, waiting, delivered, failed or stopped.
POST /api/v1/runs/{run}/steps/{step}/answerAnswers a step that waits for a person.
GET /api/v1/runs/{run}/resultsThe results, as rows with columns.
GET /agents/{id}/openapi.jsonAn OpenAPI 3.1 description of the agent, made from its inputs.

Start a run

curl -X POST "$BASE/api/v1/agents/faq-from-link/runs" \
  -H "Authorization: Bearer $INFLOWAVE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"url": "https://example.com/product", "tone": "friendly"}}'
{
  "id": "782427fd6e8e",
  "agent_id": "faq-from-link",
  "status": "running",
  "created_at": "2026-12-01T19:05:12Z",
  "updated_at": "2026-12-01T19:05:14Z",
  "error": null,
  "url": "/workflows/agents/runs/782427fd6e8e",
  "results_url": "$BASE/api/v1/runs/782427fd6e8e/results"
}

Answer a step that waits for you

A waiting run lists each question with how to answer it. pick_one takes {"action": "pick", "value": INDEX}, approvals take {"action": "approve", "said": "..."}, forms take {"action": "submit", "value": {...}}, and optional steps take {"action": "skip"}.

{
  "id": "2ebd53e09c18",
  "status": "waiting",
  "waiting": [{
    "step": "pick_outline",
    "kind": "pick_one",
    "label": "Pick an outline",
    "answer_url": "$BASE/api/v1/runs/2ebd53e09c18/steps/pick_outline/answer",
    "answer": { "action": "pick", "value": "<index of the option>" },
    "options": [{ "title": "...", "premise": "..." }]
  }]
}
# pick the first outline
curl -X POST "$BASE/api/v1/runs/2ebd53e09c18/steps/pick_outline/answer" \
  -H "Authorization: Bearer $INFLOWAVE_TOKEN" -H "Content-Type: application/json" \
  -d '{"action": "pick", "value": 0}'

# approve a draft, in your own words
curl -X POST "$BASE/api/v1/runs/2ebd53e09c18/steps/approve_draft/answer" \
  -H "Authorization: Bearer $INFLOWAVE_TOKEN" -H "Content-Type: application/json" \
  -d '{"action": "approve", "said": "Looks good, publish it."}'

Limits and errors

  • 60 requests a minute per token by default; over that you get 429 with Retry-After. At most 5 waiting run-sync calls per workspace.
  • 401 for a missing, unknown or revoked token. 404 for a run outside your workspace, or an agent that isn't live or installed. 409 while an agent is down.
  • Every time is UTC in ISO 8601 with a Z.

Webhooks

Add up to 10 https addresses per workspace on the API tab. Each gets its own signing secret (whsec_...), shown once. A test button sends one test event, and the delivery log shows the last 200 attempts.

EventWhen
run.succeededA run delivered.
run.failedA run failed.
run.timed_outA run failed on a timeout, or made no progress for 30 minutes.
run.abortedA run was stopped.
run.waitingA run is waiting for a person.
{
  "event": "run.succeeded",
  "at": "2026-12-01T19:05:20Z",
  "run": {
    "id": "782427fd6e8e",
    "agent_id": "faq-from-link",
    "status": "delivered",
    "created_at": "2026-12-01T19:05:12Z",
    "updated_at": "2026-12-01T19:05:19Z",
    "error": null,
    "results_url": "$BASE/api/v1/runs/782427fd6e8e/results"
  }
}

Every request carries Inflowave-Signature: t=UNIX_SECONDS,v1=HEX, where the hex is an HMAC-SHA256 of t, a dot and the raw body, keyed with your signing secret, plus Inflowave-Event and Inflowave-Delivery. Check the signature on the raw body and refuse anything older than 5 minutes.

Node.js

import crypto from 'node:crypto';

// rawBody: the request body exactly as received (a Buffer), before any JSON parsing.
export function verifyInflowave(secret, header, rawBody, toleranceSeconds = 300) {
  if (!header) return false;
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false;
  const want = crypto.createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest('hex');
  const got = Buffer.from(parts.v1 || '', 'hex');
  return got.length === want.length / 2 && crypto.timingSafeEqual(got, Buffer.from(want, 'hex'));
}

Python

import hashlib, hmac, time

def verify_inflowave(secret: str, header: str | None, raw_body: bytes, tolerance: int = 300) -> bool:
    if not header:
        return False
    parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p)
    try:
        t = int(parts.get("t", ""))
    except ValueError:
        return False
    if abs(time.time() - t) > tolerance:
        return False
    want = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, parts.get("v1", ""))

Answer with any 2xx within 10 seconds. Otherwise we retry after 1, 2, 4 minutes and so on, 8 attempts in all. Addresses that resolve to private networks are refused, and redirects are not followed.

Daily tests

Set test_input and we run it once a day for every live agent, as a test run nobody pays for. A test passes when the run delivers or reaches a step that waits for a person. The first failure marks the agent "under maintenance" for buyers and sends you a notice; three failures in a row pause it; the next pass brings it back. You can also run the test yourself from the Health tab at any time.

Versions and outages

  • Every approved version is kept and never changed. Version numbers only go up.
  • Roll back to any earlier approved version from your agent's page. It is instant and needs no review. Buyers' new runs use it straight away.
  • Post an outage notice (degraded or down) when something your agent depends on breaks. Buyers see it on the agent. While it is down, new paid runs are refused; your own test runs still go. Paid runs that fail during a notice are refunded, and failures during a notice you posted don't count against your agent.
  • We open a notice automatically when your agent is paused for failing, or when most runs in the last hour fail on one step because of an outside service. It closes on its own after 3 good paid runs.

Paid agents

Selling paid agents and developer payouts are not open yet. This section will explain pricing and payouts when they are.