Agentic Commerce Guide - Enabling AI Agents to Transact Programmatically Onchain
This guide shows you how to enable AI agents to programmatically create and complete USDC transactions for goods or services on Base using Coinbase Commerce and AgentKit.
Integrate Coinbase Commerce: Create orders and enable USDC payments on Base. Coinbase Commerce offers order tracking, reporting, webhook notifications, and built-in business tools that streamline payment management.
Add AgentKit Tools: Extend agents with the ability to handle charges and payments programmatically.
const CREATE_CHARGE_PROMPT = `This tool creates a new charge using the Coinbase Commerce API.Use this to create a payment request or invoice.`;const CREATE_ONRAMP_LINK_PROMPT = `This tool generates a Coinbase Onramp link for crypto purchases sent to a wallet.`;