LangChain releases Restock, a sample Slack agent that can pay with Stripe Link
LangChain published Restock, an open sample agent that runs in Slack on Managed Deep Agents and can search products, build a cart and check out through an API supporting the Machine Payments Protocol. Payment is handled by Stripe's consumer wallet Link, so the agent never sees a card number; the user reviews the cart in Slack and approves a capped amount in Link, and the agent cannot spend above the budget. The code is in langchain-samples/restock-agent with rehearsal, Link test-approval and live-purchase modes, limited to US delivery and USD. LangChain says it ran one live order end to end on a hosted deployment and the expected refund arrived, but this is self-reported and the post labels its prices illustrative.
The sample places spending limits and human approvals in code the model cannot touch, offering a reusable pattern for agents that spend real money.
Key Takeaways
- Restock is a sample agent that pays for real purchases. It runs in Slack on Managed Deep Agents, finds products, builds a cart, and checks out through an API that supports the Machine Payments Protocol (MPP).
- Payments stay safe and within budget. Link, Stripe's consumer wallet, handles the payment, so the agent never sees a card number. The user approves a spend request up to a set amount, and the agent can't spend above it.
- Build your own agent that can pay. Start from Restock's sample code, and let us know what you build.
Agents are already good at finding things to buy. Paying is harder: it moves real money, needs credentials the model should never see, and is hard to undo.
To show how to build an agent that pays, we built Restock, a sample office-supply agent that runs in Slack on Managed Deep Agents. It searches real products, builds a cart, and pays through Link, Stripe's consumer wallet, which gives agents the safest way to pay.
This post follows one request from the first message to the confirmed order:
#LangChain#Restock#Stripe#Link#Managed Deep Agents#Machine Payments Protocol#Zinc#OpenAI#GPT-5.6 Sol