Cloudflare

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

Jun 3, 2025Chris Bell
Building an AI Agent that puts humans in the loop with Knock and Cloudflare’s Agents SDK
SummaryAI, from the source post

This post details the integration of Knock's messaging infrastructure with Cloudflare's Agents SDK to build an AI agent that incorporates a human-in-the-loop approval workflow for a virtual card issuing process. It demonstrates how to expose tools to the LLM that delegate complex approval logic to Knock, leveraging Knock's workflow engine and Agent Toolkit. The post also covers setting up the chat UI using the Agents SDK's `AIChatAgent` and `useAgentChat` hook, and handling asynchronous approval callbacks via webhooks.

More from the Edge Computing with Cloudflare Workers trail