Execute Research Agent with Paid Mandate
The agent performs a governed research task, summarizing findings while automatically billing the user via a receipt trail, ensuring zero-key upstream access and auditable payment execution.
How it works
The user initiates the ResearchAgent example flow by setting the required environment variables (AGENTPAY_API_KEY and AGENTPAY_MERCHANT_ID) and running the server script. The agent then executes a search and summarization task under a governed mandate. Before letting it act, the user should verify that the API key is valid and the merchant ID is correctly configured to ensure the billing receipt trail is generated correctly. The system handles the create, approve, and execute flow against the live API.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Run the ResearchAgent example to search, summarize, and bill via a governed mandate. Ensure AGENTPAY_API_KEY and AGENTPAY_MERCHANT_ID are set.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
Research agent Search, summarize, and bill via a governed mandate.Examples - AgentPay Docs - AgentPay Docs