An example
agent.json sits at the top of your agent folder. It is the same manifest every Inflowave agent uses
(schema is inflowave.agent/v1), with two extra blocks for code agents: runtime and
pricing. A code agent needs no steps or outputs, because your program is the one step and its rows are the results.
{
"schema": "inflowave.agent/v1",
"id": "seo-brief",
"runtime": { "kind": "code", "command": "python main.py", "timeout_s": 300, "memory_mb": 512 },
"listing": {
"name": "SEO Brief",
"tagline": "One keyword in, an outline and a brief out.",
"about": "Describe what the agent does, what the buyer gives it and what they get back.",
"category": "Utilities",
"price_usd": 0,
"price_model": "per_run",
"visibility": "private"
},
"inputs": [{ "id": "keyword", "type": "text", "label": "Keyword", "required": true }],
"pricing": {
"events": { "result": { "title": "A finished brief", "price_cents": 50 } },
"default_cap_cents": 500
},
"test_input": { "keyword": "email marketing for dentists" },
"changelog": [{ "version": "1.0", "notes": ["First version."] }]
} runtime
| Field | Meaning |
|---|---|
kind | Always "code". |
command | What starts your program, on one line of 1 to 500 characters, such as python main.py or node main.js. If you leave it out, Inflowave uses python main.py or node main.js depending on what the archive holds. It is needed if you bring your own Dockerfile. |
timeout_s | 10 to 3,600 seconds. The default is 900. It covers the whole run, including time spent waiting for the buyer to answer. When it passes, the program is stopped and the run fails, and the buyer pays nothing. |
cpu | 1 to 8. The default is 2. |
memory_mb | 512 to 8,192, in steps of 128. The default is 2,048. |
internet | true (the default) or false. With false the program has no outbound traffic at all. |
cpu and memory_mb are fixed when the build is made, so changing them needs a new upload. The run time limit applies to the whole run.
listing
What buyers see before they install: name, tagline, about, category, price_usd, price_model (per_run or monthly) and visibility.
| visibility | Who can use the agent |
|---|---|
private | Only you: your own agency, every workspace. Private agents run free and need no review. |
agencies | Chosen agencies: yours plus the ones in listing.allowed_agencies (at most 200 agency ids, written as digits). |
link | Anyone with the share link. The agent is hidden otherwise. |
public | Everyone, listed after review. This is the default. |
Before an agent can go public it is reviewed. The checks that exist today are a test run that delivered, a trailer, an About of 200 to 3,000 characters, terms and privacy links for agents that others can buy, and a price that covers the typical cost.
inputs
The form the buyer fills in. Your program reads the answers with get_input() (or getInput()),
keyed by each input's id. Each input has an id, a type and a label.
| type | Settings |
|---|---|
text, long_text | placeholder, required, default |
link | allowed_hosts (empty means any public host). Always https. |
upload | accept (for example .mp4), max_mb |
choice | options as a list of value and label, and default |
number | min, max, default |
profile | profile_field, filled from the buyer's install profile |
test_input is the input used for the automatic daily test of a live agent.
pricing
Code agents report results as they go. Under pricing.events you list each kind of result your program may charge for.
When your code calls charge("result"), the name must match a key here.
| Field | Rule |
|---|---|
events | Up to 20 events. Each key is a name that starts with a lowercase letter and then uses lowercase letters, digits and underscores, up to 40 characters. |
events.NAME.title | What the buyer sees, 2 to 60 characters. |
events.NAME.price_cents | The price of one event, from 1 to 100,000 cents. |
default_cap_cents | The most one run may cost when the buyer sets no limit of their own. The default is 500. It needs at least one event. |
pricing is for code agents only. On a private agent, events are counted but never charged. The buyer's own limit for
a run always wins, and the SDK's charge tells your program when it is reached. See the
SDK reference.
secrets and egress
Never put keys in your code or your folder. Declare what you need, and set the values in the app. At run time each secret is an environment variable with that name. Do not print secrets in your logs.
"secrets": [
{ "name": "OPENAI_API_KEY", "label": "OpenAI key", "help": "Used to write the outline." }
],
"egress": ["api.openai.com"] egress is optional. When internet is true and you list domains here, the sandbox can only reach those domains.
Other fields
changelog: a list of versions, newest first, each withversion, an optionaldateand a list ofnotes. A live agent can only be updated with a new version number.readme: Markdown for the agent's page, up to 20,000 characters, with no HTML.slug: the agent's public name in the formdeveloper/agent, using lowercase letters, digits and hyphens. It must end with the agent's own id.faq,install_inputsandpermissionsalso exist, and work as for every other agent.
Checking it
Run inflowave agents check before every push. It checks the file against the same rules Inflowave uses and warns when your
code charges an event that is not listed. Mistakes are reported with the path of the field and a short message.
Want to build one?
Tell us about your agency and what you would like to build. We will switch the beta on for your account.