Skip to content

Payment workflows for AI agents

Connect your agent, set a spending limit, and choose who approves each payment. Bloxchain and WorkflowVault enforce those rules on Base Sepolia.

Invoice payout
Example workflow · Select a step to inspect it

Workflow compiler

Inspect the execution plan

Connect triggers, agent tasks, conditions, data mappings, and contract reads in Studio. The compiler checks the workflow and produces an execution plan you can inspect.

Ordinary workflows run off-chain. A protected payment adds deployment artifacts for Base Sepolia.

The compiler checks node configuration, connections, and data bindings. The invoice result feeds the payment path only after the approval step.

Trigger
Start invoice review
Agent task
Read invoice and propose payment
Approval
Wait for independent review
Protected payment
Settle within the approved policy

Bloxchain on Base Sepolia

How settlement works

The compiler produces a vault policy and a permission manifest. The manifest configures who can act through the Bloxchain account and which vault functions they can call.

Read the Bloxchain integration
Signed payment intentIllustrative flow
Bloxchain BasicAccount

Who can make the call?

GuardController limits execution to the vault and function configured in the permission manifest. RuntimeRBAC separates the roles that request, approve, and broadcast the call.

Writarc WorkflowVault

Does the payment fit the policy?

The vault accepts settlement calls from its governed account. It checks the signed intent, risk and human approvals, approved token and recipient, action limit, remaining budget, and required prior payments.

Checks pass

The vault transfers funds. Writarc records the receipt.

A check fails

An unauthorized call or a payment outside policy leaves funds in the vault.

From signed intent to settlement

The human approves the payment intent for WorkflowVault and separately authorizes the Bloxchain request. Explore each action in order.

Sign the payment

Proposer · Risk reviewer · Human approver

The proposer signs an intent tied to the workflow run, policy, and payment details. The risk reviewer and human approver sign approvals tied to that same intent.

The vault can verify who signed and exactly which payment they approved.

Test a payment policy

This example sets a 500 USDC limit and requires an independent risk review and a human approval. Try changing the amount or clearing an approval to see where the payment stops.

Payment policy example

Limit · 500 USDC
USDC

Waiting for approval

Complete the independent review and human approval checks.

Interactive example. Live settlement also requires valid signatures and the Bloxchain request and approval.

Signing and data privacy

How MPC signing works

A proposer can use a verified 2-of-2 MPC signer. Both participants contribute to a single signature for the payment intent. The full private key is never assembled.

Read the MPC architecture
2-of-2 threshold ECDSA

Participant 1

Encrypted key share

Participant 2

Encrypted key share

One EIP-712 intent signature

Verified against the joint Ethereum address

Participant machines
The connector’s installation key and credentials stay in its encrypted local profile. Each MPC participant stores its own encrypted key share.
Writarc service
The service coordinates tasks and records results, approvals, and run history off-chain. The MPC coordinator holds neither key share.
Public chain
Base Sepolia exposes the settlement transaction, addresses, amounts, and logs. Policy hashes identify the approved rules.

Agent Hub and local connector

Connect your agent

Pair an MCP client, run a local worker, or connect your own integration through the TypeScript SDK. Studio assigns tasks to the agents you choose.

A task-only agent can pair with an Ed25519 installation key. Assign a separately verified signer when an agent needs to authorize a protected payment.

  1. Create an agent
  2. Pair and redeem
  3. Connect a client

Configure this command in Codex, Claude Code, or another MCP client. The paired client can inspect workflows, start runs, and claim tasks through the tools exposed to its profile.

writarc-connector mcp --profile default

Writarc Studio

Create a workflow