logo

Building an AI Agent that puts humans in the loop with Knock and Cloudflare’s Agents SDK

ID: 7ad01556-f5d2-51e5-b556-5017fef9d056

STIX ID: report--7ad01556-f5d2-51e5-b556-5017fef9d056

Feed Name: Cloudflare Blog

Date Published: 2025-06-03

Date Updated: 2026-04-27

Author: Chris Bell (Guest author)

...
...

This blog post outlines how to build a stateful AI agent for a virtual card issuance workflow that requires human approval, leveraging Cloudflare’s Agents SDK (Durable Objects, real-time chat, persisted state) and Knock’s Agent Toolkit for cross-channel notifications and deferred tool execution. It details wrapping tool calls with human approval via Knock workflows, handling asynchronous approvals through webhooks, resuming deferred executions, and preventing duplicate approvals using agent state, with example code and implementation patterns.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.