Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents
Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases. It searches Zinc, builds a cart, and pays through Stripe's Link wallet over the Machine Payments Protocol, where the merchant returns HTTP 402 with payment instructions and the client retries with a shared payment token. Spending limits and approvals live in code the model can't touch. The user sets an upfront amount under the budget, approves it through a Slack interrupt and again in Link, and the agent reads actual fees from the 402 challenge first. Credentials stay in per-user Connections and a sandbox, tokens are deleted after use, and an order counts as placed only when the merchant reports it.
Related posts
- Agents That Pay | How Nevermined Empowers LangChain Agents to Buy and Sell Services
LangChain mediumAdeptNevermined lets operators delegate a credit card to a LangChain agent once, under a server-enforced spend policy covering total budget, time window, per-purchase cap and transaction count. The agent can then buy API credits mid-task, top up when a provider returns 402 NO_MORE_CREDITS, and purchase new services such as Exa search and Baselayer company data via x402 without a human in the loop. On the sell side, a `@requires_payment` decorator gates a LangChain tool per call. Payment authorization propagates to Deep Agents subagents, and the verify and settlement steps appear as spans in LangSmith traces.
- How Stripe Built Kai on Deep Agents in 1 Week
LangChain mediumAdeptStripe's company-wide productivity agent Kai was built by one engineer in a week on LangChain's open-source Deep Agents harness. It uses a layered architecture: Deep Agents at the base, a Stripe-specific harness for security and infrastructure, a configuration layer for custom agents, and the UI on top. Key mechanics include an S3-backed virtual filesystem with sync-in/sync-out around sandbox calls, a sandbox exposed as a tool rather than as the agent's runtime, tunable summarization for long sessions, and skill-gated dynamic loading of 500+ MCP tools. Model quality degraded beyond about 150 skills, so the team is moving toward RAG or classifier prefiltering ahead of LLM skill selection, while adoption reached 83% weekly usage across the company.
- Stripe: An orchestration layer, not a platform
Render easyNovice
Stripe Projects is a CLI and open protocol that lets developers (or coding agents) create provider accounts, provision services, manage environment variables and pay for upgrades across roughly 50 providers from one place. The protocol models three objects (account, service and resource), and each provider implements three endpoints: a browserless account request, a service catalog polled every ten minutes, and a resource endpoint covering provisioning, credential return, rotation and removal. Payment uses one shared method that Stripe tokenizes separately per provider, with per-provider spending limits and a push API for syncing changes. Accounts remain owned by the developer, positioning Stripe as an orchestration layer rather than an intermediary, and the protocol is slated to be published later in the summer.
- How to build great out-of-the-box user experiences with Managed Deep Agents
LangChain mediumAdeptManaged Deep Agents v0.9 adds a `reactions` attribute for Slack channels that accepts either a static emoji string or an async callable, letting agents acknowledge messages with contextual emoji as a loading state. The callable can be a simple `if` heuristic or a decision model such as Jev via the TypeSafe Classifier, which picks from a vocabulary of up to 255 described options. Write `criteria` descriptions that describe the situation rather than the emoji, and fall back to a generic reaction such as 👀 when model confidence is below a threshold (0.25 in the example). Custom Slack emoji can also be added by shortcode.
- How We Built LangChain’s Paid Media Agent
LangChain mediumAdeptLangChain's Paid Media Agent is a Slack-resident Deep Agent that merges ad-platform data with warehouse pipeline data, produces weekly per-platform PDF reports, answers follow-up questions, and proposes campaign changes for human approval. It runs in a sandboxed microVM. Context is split into layers: a short map-like system prompt, progressively disclosed skills, a company wiki, live tools and deterministic code. Moving calculations into Python and keeping the model for judgment cut a reporting run from 18 minutes and about $3 (3.9M tokens) to 85 seconds, roughly 40x cheaper. Other lessons: merge separate Slack and scheduled graphs into one runtime with per-entry-point capability profiles, and define a source of truth per metric instead of forcing one normalized schema.