Set Policy
AI-generatedSummary
Set spending policies and workflow intent to enforce limits and domain rules for the current workflow execution.
Inputs
- Workflow Description (required) — Provide a detailed description of the workflow's purpose, accessed data, and expected outputs to guide intent-based policy enforcement by xpay✦.
- Wallet (required) — Choose the payment wallet for this workflow: either your account's default wallet or specify a custom wallet ID.
- Wallet ID — When using a custom wallet, specify its ID as found on your xpay✦ dashboard.
- Spending Limits (required) — Set maximum budget limits including per call, per day, per month, and lifetime spending (lifetime 0 means unlimited). Defaults exist if not set.
- Domain Rules — Optionally define allowed and blocked domains as comma-separated lists to restrict service calls within the workflow.
Output shape
a single JSON object containing the policy configuration and metadata
The returned policy object includes workflow description, wallet info, spending limits, domain rules, and the timestamp applied. This policy applies to all subsequent xpay✦ Run calls during the current workflow execution and is intended for downstream nodes enforcement. No external API calls are made in this node; the policy is stored in workflow context.