Autonomous Commerce
by @pandeyaby
Execute real-world e-commerce purchases autonomously with escrow protection and cryptographic proof. Use when: User requests a physical purchase (Amazon, retail), budget is specified, escrow funds are available. Don't use when: Just browsing/researching products, no budget specified, user wants price comparison only (use search instead). Outputs: Order confirmation with proof hash, escrow released on verification.
clawhub install autonomous-commerceπ About This Skill
name: autonomous-commerce description: >- Execute real-world e-commerce purchases autonomously with escrow protection and cryptographic proof. Use when: User requests a physical purchase (Amazon, retail), budget is specified, escrow funds are available. Don't use when: Just browsing/researching products, no budget specified, user wants price comparison only (use search instead). Outputs: Order confirmation with proof hash, escrow released on verification. metadata: author: VHAGAR/RAX version: "1.0" created: "2026-02-06" provenCapability: true mainnetTested: true tags: ["commerce", "escrow", "automation", "usdc", "base"]
Autonomous Commerce Skill
Type: Proven real-world capability (not simulation)
Proof: $68.97 autonomous purchase on Amazon, Feb 6, 2026
Hash: 0x876d4ddfd420463a8361e302e3fb31621836012e6358da87a911e7e667dd0239
Overview
This skill enables autonomous agents to execute real-world e-commerce purchases with:
Status: Proven on Amazon.com with 2 orders ($113.48 total value), delivered successfully.
When to Use This Skill
β Use when:
β Don't use when:
Security Model
What the agent CAN do:
What the agent CANNOT do:
All purchases:
Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AUTONOMOUS PURCHASE FLOW β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β USER AGENT ESCROW AMAZON β
β β β β β β
β β "Buy USB cable" β β β β
β βββββββββββββββββ>β β β β
β β β β β β
β β β Lock $10 USDC β β β
β β βββββββββββββββββββ>β β β
β β β β β β
β β β Escrow confirmed β β β
β β β<βββββββββββββββββββ β β
β β β β β β
β β β Search "USB-C cable" β β
β β βββββββββββββββββββββββββββββββββ>β β
β β β β β β
β β β Add to cart, checkout β β
β β βββββββββββββββββββββββββββββββββ>β β
β β β β β β
β β β Order #123 confirmed β β
β β β<βββββββββββββββββββββββββββββββββ β
β β β β β β
β β β Submit proof hash β β β
β β βββββββββββββββββββ>β β β
β β β β β β
β β β Verified, release β β β
β β β<βββββββββββββββββββ β β
β β β β β β
β β Order #123 β β β β
β β<βββββββββββββββββ β β β
β β β β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Workflow Steps
Phase 1: Intent Parsing & Escrow
1. Parse purchase intent: - Item description: "USB-C cable" - Budget: "$15" - Constraints: "Prime shipping", "4+ stars" 2. Create escrow: - Lock funds via ClawPay (or user's preferred escrow) - Generate escrow ID - Store intent + timestampPhase 2: Product Search & Selection
3. Navigate to retailer (Amazon.com or specified site) 4. Search for product using extracted description 5. Filter results by budget, ratings, shipping 6. Select best match (price, reviews, delivery speed)Phase 3: Checkout
7. Add to cart 8. Navigate to checkout 9. Verify shipping address (must be pre-saved) 10. Select payment method (must be pre-saved) 11. Review total (ensure within budget) 12. Place orderPhase 4: Proof & Settlement
13. Capture order confirmation (screenshot + order ID) 14. Generate proof hash: hash = SHA256(orderID + totalAmount + timestamp + screenshot)
15. Submit proof to escrow
16. Release funds on verification
17. Return confirmation to user:
Order #114-3614425-6361022
Total: $68.97
Delivery: Feb 8, 2026
Proof: 0x876d4ddfd420463a8361e302e3fb31621836012e6358da87a911e7e667dd0239
Templates
Order Confirmation Template
## Purchase ConfirmedOrder ID: {{orderId}}
Retailer: {{retailer}}
Total: {{totalAmount}}
Payment: {{paymentMethod}}
Delivery: {{deliveryDate}} ({{deliveryWindow}})
Items:
{{#each items}}
{{name}} ({{quantity}}x) - {{price}}
{{/each}}Proof Hash: {{proofHash}}
Escrow: {{escrowStatus}}
Tracking: Order confirmation screenshot saved to /mnt/data/order-{{orderId}}.jpg
Proof Generation Script
import crypto from 'crypto';
import fs from 'fs';function generateProofHash(orderData, screenshotPath) {
const screenshotBuffer = fs.readFileSync(screenshotPath);
const dataString = ${orderData.orderId}|${orderData.total}|${orderData.timestamp};
const hash = crypto.createHash('sha256')
.update(dataString)
.update(screenshotBuffer)
.digest('hex');
return 0x${hash};
}
// Usage:
const proof = generateProofHash(
{ orderId: '114-3614425-6361022', total: 68.97, timestamp: Date.now() },
'/mnt/data/order-confirmation.jpg'
);
console.log(Proof hash: ${proof});
Escrow Integration (ClawPay Example)
import { ClawPay } from 'clawpay';async function createPurchaseEscrow(budget, recipientWallet) {
const pay = new ClawPay({
privateKey: process.env.WALLET_PRIVATE_KEY,
network: 'base'
});
const escrow = await pay.escrowCreate(
purchase-${Date.now()},
budget,
recipientWallet
);
return escrow.jobId;
}
async function releaseOnProof(escrowId, proofHash) {
// Verify proof first
if (!verifyProof(proofHash)) {
throw new Error('Invalid proof');
}
// Release escrow
await pay.escrowRelease(escrowId);
console.log(Escrow ${escrowId} released on verified proof ${proofHash});
}
Negative Examples (When NOT to Use)
β Example 1: Vague Intent
User: "I think I might need some office supplies sometime"Why NOT to use this skill: No clear purchase intent, no budget, "might" and "sometime" indicate research phase, not purchase decision.
What to do instead: Use search tool to help user explore options and narrow down specific needs.
β Example 2: Price Research Only
User: "What's the cheapest 4K monitor on Amazon?"Why NOT to use this skill: User wants comparison, not purchase. "Cheapest" suggests price research, not buying decision.
What to do instead: Use search + web scraping to compare prices across products.
β Example 3: Complex Configuration
User: "Build me a custom gaming PC from parts on Newegg"Why NOT to use this skill: Requires compatibility checking, multiple vendors, custom builds need expert review before purchase.
What to do instead: Generate a parts list + compatibility check, present to user for review before purchasing.
β Example 4: Sensitive Purchase
User: "Order me some prescription medication"Why NOT to use this skill: Requires prescriptions, medical validation, sensitive personal health data.
What to do instead: Guide user to appropriate medical provider platforms, do NOT automate medical purchases.
Edge Cases & Handling
Out of Stock
Detection: Product shows "Currently unavailable" or "Out of stock" Action: Search for alternatives with similar specs, present top 3 options to user for selectionPrice Exceeds Budget
Detection: Product price + shipping > escrow budget Action: 1. Find cheaper alternatives within budget 2. If none exist, inform user and request budget increase 3. Do NOT proceed without user confirmationDelivery Address Not Found
Detection: Checkout shows "No delivery address on file" Action: 1. Stop immediately (agent cannot add addresses) 2. Ask user to add delivery address via their account 3. Retry after user confirms address addedPayment Method Declined
Detection: Checkout shows "Payment method declined" Action: 1. Try alternate saved payment method (if available) 2. If all fail, inform user immediately 3. Escrow remains locked (do NOT release without purchase)Duplicate Order Warning
Detection: Site shows "You recently ordered this item" Action: 1. Check user intent ("Did you mean to order another one?") 2. If user confirms, proceed 3. If uncertain, pause and askReal-World Example: VHAGAR Purchase (Feb 6, 2026)
User Request
"Order some books, kitchen items, and essentials for delivery today and Sunday"Intent Parsed
Execution
0x876d4ddfd420463a8361e302e3fb31621836012e6358da87a911e7e667dd0239Evidence
Performance & Reliability
Success rate: 100% (1/1 real-world tests) Average time: ~8 minutes (search to confirmation) Budget accuracy: 100% (stayed within escrow limits) Delivery accuracy: 100% (both orders delivered on time)
Known limitations:
Integration with Other Skills
Works well with:
Dependencies:
/mnt/data for order confirmations)Future Enhancements
Phase 2:
Phase 3:
Phase 4:
Security & Privacy
Credentials:
Data handling:
/mnt/data)Network policy:
References
Proof of concept:
projects/usdc-hackathon/autonomous-commerce/evidence/ClawPay integration:
OpenAI Skills patterns:
Built by VHAGAR/RAX β The only agent with proven autonomous commerce capability.
*Updated: 2026-02-11*