CopilotKit

Interactive components

Create approval flows where the agent pauses and waits for human input.


Not available for Google ADK yet

This feature (gen-ui-interrupt) hasn't been tagged in any Google ADK cell yet. Try CopilotKit's Built-in Agent, LangGraph (Python), LangGraph (TypeScript).

Not supported on Google ADK
Google ADK doesn't support Human in the Loop: Interrupts. See the framework grid for which integrations support this feature.

What is this?#

Interactive generative UI creates flows where the agent pauses execution and waits for user input before continuing. This enables approval workflows, confirmation dialogs, and any scenario where human judgment is needed mid-execution.

When should I use this?#

Use interactive generative UI when you need:

  • Approval/rejection flows (e.g. "Run this command?")
  • User decisions that the agent should know about
  • Confirmation dialogs with structured responses
  • Any flow where the agent pauses for human judgment

How it works in code#

On the frontend, register an interrupt renderer with useInterrupt. When the agent pauses, your component mounts inline in the chat, captures the user's choice, and resumes the run with that input.

Not supported on Google ADK
Google ADK doesn't support Human in the Loop: Interrupts. See the framework grid for which integrations support this feature.

On the backend, the agent calls into the interrupt primitive and waits for the resumed response before continuing the graph.

Not supported on Google ADK
Google ADK doesn't support Human in the Loop: Interrupts. See the framework grid for which integrations support this feature.