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
- You write the program and a file called
agent.jsonthat describes it. - You run it on your computer. In this local mode everything is written to a
storagefolder and nothing is billed. - You push it with the
inflowavecommand line tool. The upload goes to private storage and is scanned for viruses and unsafe files before anything is built. - 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.
- 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 agent | Code agent | |
|---|---|---|
| You write | agent.json with steps from a fixed list | agent.json plus a program in Python or Node |
| Runs on | Inflowave's own engine | Your program, in its own sandbox |
| Screens | Drawn by Inflowave | Drawn by Inflowave |
| What you charge for | One price per run | A 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.