Skip to content

Services, workflows and tests

Define service agents, connect real and simulated APIs in a workflow graph, bind outputs, and run isolated test cases in your browser or local runner.

Open /services to build a draft, or fork an example from the workflow gallery. Sign in to save workflows to your account and run tests. Building and exporting drafts remains available when account access is unavailable.

Draft edits stay in the current tab until you save or export JSON. The editor asks before replacing or leaving unsaved work; it does not automatically restore a closed tab. Correct unfinished JSON before switching editors or exporting so the download includes your latest input. Before deleting a service, operation, or component, remove the references identified beside its delete control.

  1. Define each service's behavior, operations, input/output contracts and initial state. Attach documentation, source files or fixtures that explain the service.
  2. Add service-operation nodes to the graph. Choose real or simulated execution explicitly. Connect dependencies and bind upstream output fields into downstream inputs.
  3. Add test cases with workflow inputs, service scenarios or initial state, and assertions. Each case gets its own session.
  4. Run in your browser for browser-accessible APIs. Export and use the local runner for localhost/private endpoints, secret headers, or dependency endpoints called by your real service.
  5. Inspect each node's actual input/output, assertions, duration and error. Cancel a run if it is no longer needed.

The graph is a DAG: no cycles or conditional routing. Branches can run in parallel and join. Bindings use JSON Pointer, including nested objects and arrays. A test may select terminal nodes and their required ancestors to test an early exit.

Eve simulates requests using service context, rather than replaying canned expected answers. A service's working state exists only inside one workflow run. Referencing the same instance ID shares state; a separate instance is independent. Real services retain their own state and are not reset automatically.

Browser calls obey CORS and cannot reach private networks merely because xEntropy is hosted. A secret-header reference requires the local runner. API credentials remain outside exported workflows. Long-running simulated calls are polled until completed; closing a network connection does not create another charged request.

Real Service A calls simulated Service B

Setting a graph component to simulated mode controls that component's execution. To direct calls made inside your real application to a simulation, configure a dependency endpoint:

  1. Define Service B's operations, behavior, and initial state under Services.
  2. Under Local access, add a dependency endpoint for B's operation. For example: path /reserve, local port 4401, environment variable INVENTORY_BASE_URL, and instance ID inventory-main.
  3. Copy the service configuration, export INVENTORY_BASE_URL=http://127.0.0.1:4401, into the terminal or process configuration used to start A. A's code must read INVENTORY_BASE_URL and send a JSON POST to /reserve. Start A with your usual command. Changing the runner's environment cannot reconfigure an already running A.
  4. Add a real graph component that calls A, such as http://127.0.0.1:3000/orders, with the request input and result assertions for your test. B does not need its own graph node.
  5. Save and export the workflow, create a workflow-scoped runner token, and use the command shown in Local access from a separate terminal. The local runner starts the listener before calling A and closes it when that test ends. Each test creates fresh simulated state.

The request path must match the one A uses. Each endpoint needs a distinct port between 1024 and 65535, and a unique uppercase environment variable. The base URL omits the path. Reuse B's instance ID in other dependencies or simulated graph components only when they should share B's state during a test.

By default, B's agent output is returned directly as JSON with HTTP 200. Choose HTTP status and JSON body to simulate service errors: B's output must then be an object such as {"status":409,"body":{"error":"out_of_stock"}}. Describe that response structure in B's instructions and output schema. HTTP 204 and 304 require a null body. A receives the selected status; an intentional service error is separate from a failed simulation.

Dependency calls appear in run results with their actual request, output, status, and timestamps, and are included in downloaded evidence. They use the same session and simulation credits as graph calls. The runner never falls back to the original B after a failure.

Only trusted applications on the same computer can use the loopback endpoint. It accepts JSON POST requests of up to 2 MB; requests with an Origin header are rejected, so a browser cannot call it. It does not forward A's credentials or HTTP headers to the agent. A does not need an xEntropy token: the runner authenticates its own requests to hosted xEntropy. The endpoint waits up to five minutes for a simulation. Set a suitable timeout in A and its real graph component; graph calls default to 60 seconds. Busy ports fail startup. Simulation transport failures return HTTP 502, timeouts return 504, and hosted API rejections retain their error status. Inspect run evidence for details.

The UI and local runner do not provision workflow sandboxes or launch your application. The API reference describes automation.