Build code agents for Inflowave

A code agent is a program you write. Inflowave runs it for every buyer and draws every screen around it.

Beta: request access. Code agents are in beta and are switched on for each agency by hand. Names and limits can still change. Request access

What a code agent is

A code agent is a small program in Python or Node. You use the Inflowave SDK to read what the buyer typed in, hand back results, ask the buyer a question when you need one, and say when a result is done and worth charging for. You test it on your own computer, push it to Inflowave, and we run it for every buyer run.

Your program never draws a screen. The buyer sees Inflowave's own screens: the input form, the progress, any questions and the results.

from inflowave_agent import Agent

with Agent() as agent:
    data = agent.get_input()                 # what the buyer typed in
    agent.push_data({"title": data["keyword"]})   # a result row
    agent.charge("result")                   # report a result worth paying for

How it works

  1. You write the program and a file called agent.json that describes it.
  2. You run it on your computer. In this local mode everything is written to a storage folder and nothing is billed.
  3. You push it with the inflowave command line tool. The upload goes to private storage and is scanned for viruses and unsafe files before anything is built.
  4. Every buyer run starts your program alone in its own isolated sandbox. A sandbox is a small virtual machine that is thrown away when the run ends.
  5. Before an agent can be offered to other people, it is reviewed. A private agent, for your own agency only, needs no review.

Code agent or recipe agent

Inflowave has two kinds of agent. Pick the one that fits the job.

Recipe agentCode agent
You writeagent.json with steps from a fixed listagent.json plus a program in Python or Node
Runs onInflowave's own engineYour program, in its own sandbox
ScreensDrawn by InflowaveDrawn by Inflowave
What you charge forOne price per runA price for each kind of result your program reports

Recipe agents are covered in the agent documentation. These guides are about code agents.

The guides

Quickstart

Install the tool, create an agent, run it, push it and call it.

SDK reference

Every call for Python and Node.

CLI reference

Every command and option of the inflowave tool.

Uploads and test runs

The security scan, the size limits and the daily limit on test runs.

The manifest

The agent.json file, field by field.

Request access

Code agents are in beta. The beta is switched on for each agency by hand, so the tools and the My agents area do not show up until we turn it on for you. To ask for access, email support@inflowave.io with a line about your agency and what you would like to build.

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.