Executive Summary
In this forward-looking .NET Conf 2026 session, Daniel Roth presented how to evolve modern web applications from static, form-heavy interfaces into Agentic User Interfaces using Blazor, .NET 11, and the new AGUI (Agent User Interaction) protocol.
As enterprise and consumer web applications grow in complexity, users spend more effort finding buttons, navigating nested menus, and cross-referencing tabs than actually completing work. Agentic UI pairs the user with an intelligent, embedded co-pilot that can not only answer questions, but actively manipulate the user interface, query backend domain services, synchronize live application state, preview tentative changes, and seek human confirmation before executing critical operations.
Microsoft demonstrated this architecture via:
- The AGUI Protocol: An open, event-driven protocol co-developed with CopilotKit connecting human applications to agents. It forms a triad alongside MCP (Model Context Protocol, agent-to-tools) and ATA (Agent-to-Agent protocol).
- Official
AGUI.NETSDK: Shipped on NuGet (AGUI.ClientandAGUI.Server), introducingAGUIChatClient(implementingIChatClientfromMicrosoft.Extensions.AI) andMapAGUIServer()in ASP.NET Core. - Blazor AI Components (
aka.ms/blazor/ai-components): Out-of-the-box building blocks (<ChatPage>,<AgentBoundary>,<MessageList>,<MessageInput>) with modular Block Renderers. - Front-End & Back-End Tools: Allowing server-side agents to reach directly into the running Blazor client to trigger client UI modals and form updates.
- Shared & Predictive State (
UIAgent<TState>): Enabling bi-directional state synchronization with previewable, roll-backable provisional edits. - Human-in-the-Loop Approvals: Guarding consequential business actions with
ApprovalRequiredAIFunctionand<FunctionApprovalBlock>.
1. The Agentic UI Paradigm Shift

Why Agentic UI?
Traditional software requires users to map their mental goals onto specific UI pathways—deciding which dropdown to open, which form fields to populate, and which validation rules to satisfy. In photo editors, 3D modelling suites, or enterprise ERP systems, mastering the UI becomes a difficult skill in its own right.

Agentic applications invert this paradigm:
- The user expresses their intent in natural language, voice, or images.
- The embedded agent reads the current screen context and leverages backend domain tools to propose solutions.
- The agent does not simply explain what to click—it actually performs the actions in the UI.
- The human retains full visibility, can make precise manual edits at any time, and explicitly approves high-impact transactions.
2. The Agent Protocol Triad: AGUI, MCP, and ATA
To build scalable agentic systems, Microsoft categorizes agent communication into three distinct protocols:
flowchart TD
User["Human User"] <-->|"AGUI (Agent-to-App Protocol)"| AppUI["Blazor Client / App UI"]
AppUI <-->|"AGUI Events (Streaming text, state, client tools)"| Agent["Microsoft Agent Framework / Server Agent"]
Agent <-->|"MCP (Agent-to-Tools Protocol)"| Tools["External Tools, DBs, Services"]
Agent <-->|"ATA (Agent-to-Agent Protocol)"| PeerAgents["Peer Autonomous Agents"]
- MCP (Model Context Protocol): Governs Agent-to-Tools. Connects the AI agent to external data sources, enterprise databases, and headless API services.
- ATA (Agent-to-Agent Protocol): Governs Agent-to-Agent delegation and multi-agent coordination.
- AGUI (Agent User Interaction Protocol): Governs Agent-to-App. An open, streaming, event-driven protocol that transmits messages, client state snapshots, available front-end tools, provisional diffs, and approval requests between the application and the agent.
3. Official AGUI.NET SDK & Microsoft Agent Framework

Contributed by Microsoft in collaboration with CopilotKit, the official AGUI.NET SDK is an open-source (MIT) NuGet library:
AGUI.Client: ProvidesAGUIChatClient, which implementsMicrosoft.Extensions.AI.IChatClientover the streaming AGUI protocol.AGUI.Server: Provides ASP.NET Core middleware to host AGUI endpoints.- Microsoft Agent Framework Integration: Maps AI agent definitions directly to AGUI endpoints using minimal API syntax:
// Program.cs on Agent Server (ASP.NET Core)
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddAgentFramework();
var app = builder.Build();
// Expose the customer support agent over the AGUI protocol
app.MapAGUIServer("/agent/support", async (HttpContext context) =>
{
var agent = new AIAgent(
instructions: "You are a customer support agent. Help resolve delivery disputes.",
tools: [
AIFunctionFactory.Create(GetCaseContextAsync),
new ApprovalRequiredAIFunction(ConfirmResolutionAsync)
]);
return agent;
});
app.Run();
4. Blazor AI Components Architecture

The experimental Blazor AI Components (aka.ms/blazor/ai-components) provide declarative Razor components for rendering agent interactions:
flowchart TD
subgraph UIComponents["Blazor AI Components"]
ChatPage["<ChatPage> (Turnkey Agentic UI)"]
Boundary["<AgentBoundary> (Context & State Scope)"]
MsgList["<MessageList>"]
MsgInput["<MessageInput>"]
end
subgraph BlockRenderers["Modular Block Renderers"]
Markdown["Markdown & Rich Text"]
ToolCallBlock["Function Invocation Block"]
ToolResultBlock["Tool Result Renderers (CaseContextCard)"]
ApprovalBlock["Function Approval Block"]
end
subgraph AgentCore["Client Agent Engine"]
UIAgent["UIAgent<TState> (Observable State & Tools)"]
ChatClient["AGUIChatClient (IChatClient)"]
end
ChatPage --> Boundary
Boundary --> MsgList
Boundary --> MsgInput
MsgList --> BlockRenderers
Boundary --> UIAgent
UIAgent --> ChatClient
Component Breakdown
<ChatPage>: Pre-assembled UI with streaming status indicators, message thread history, error recovery, retry prompts, and user input field.<AgentBoundary>: Cascading state container that wires up the underlyingUIAgent<TState>to all child elements.- Block Renderers: Custom Razor templates that intercept specific content blocks (such as tool execution results or Markdown) and replace raw JSON/text with tailored UI cards.
5. Front-End Tools, Back-End Tools, and Custom Block Renderers

Back-End vs Front-End Tools
- Back-End Tools: Run on the agent server (e.g., querying SQL inventory databases or shipping logistics APIs). The Blazor client uses custom block renderers to display rich cards when these tools complete.
- Front-End Tools: Registered on the Blazor client using standard
AIFunctionFactory.Create(). Over AGUI, the server agent invokes these tools to reach into the client app and trigger client-side actions (e.g., selecting items in a dropdown, scrolling to a section, or popping open a dialog).


In the demo, when the user asked the agent to "specify the replacement model", the agent called a front-end tool that populated the USB-C Dock Pro Plus selection directly inside the active Blazor form.
6. Bi-Directional Shared State and Predictive / Provisional State

How State Synchronization Works
- Initial Context: The client sends a
RunAgentInputpayload containing the serialized state of the application (TState). - Observation: As the user modifies the UI (e.g., changing the delivery address to
1 .NET Way), the state updates. When asked, the agent immediately knows the updated address. - Agent State Updates: When the agent modifies state, it streams state snapshots or partial updates back down via AGUI.
Predictive / Provisional State
Before committing potentially disruptive edits, the agent can submit a provisional update via SetPredictive:
- The UI highlights the proposed changes (e.g., a drafted customer reply message).
- The user is presented with Accept and Discard options.
- If discarded, the Blazor AI component automatically triggers state rollback, reverting the form to its exact prior state.

7. Human-in-the-Loop Safeguards (ApprovalRequiredAIFunction)

For irreversible business actions (issuing a refund, allocating physical inventory, or sending legal notices), the agent must not act unilaterally:
- The tool is wrapped in an
ApprovalRequiredAIFunction. - When invoked by the LLM, the AGUI engine pauses execution and emits an approval request event before calling the method.
- The client renders a
<FunctionApprovalBlock>with explicit confirmation buttons. - If rejected by the user, the tool is never executed, and the agent receives a rejection result allowing it to gracefully re-plan.
// Agent Server Tool Configuration
var confirmResolutionTool = new ApprovalRequiredAIFunction(
AIFunctionFactory.Create(async (string ticketId, string replacementSku) =>
{
// Executes ONLY after explicit human approval on client
return await warehouseService.AllocateAndShipAsync(ticketId, replacementSku);
}, "ConfirmResolution", "Allocates replacement inventory and confirms ticket resolution.")
);
8. Deep-Dive Code Walkthrough

Client Razor Configuration (SupportTicketPage.razor)
@inject UIAgent<SupportCaseState> Agent
<div class="support-ticket-layout">
<!-- Traditional Business UI -->
<div class="ticket-details">
<TicketHeader Ticket="@State.Ticket" />
<AddressEditor @bind-Address="State.DeliveryAddress" />
<ModelSelector @bind-SelectedSku="State.ReplacementSku" />
</div>
<!-- Agentic Chat Sidebar -->
<div class="agent-panel">
<ChatPage Agent="@Agent">
<BlockRenderers>
<!-- Custom Card for Tool Output -->
<CaseContextBlockRenderer />
<!-- Human-in-the-Loop Approval UI -->
<FunctionApprovalBlockRenderer />
<!-- Predictive State Diff Review -->
<PredictiveDraftReplyRenderer />
</BlockRenderers>
</ChatPage>
</div>
</div>
@code {
[Parameter] public SupportCaseState State { get; set; } = new();
protected override void OnInitialized()
{
// Register client-side front-end tools
Agent.AddClientTool("ShowResolutionReviewModal", () => OpenReviewModal());
Agent.AddClientTool("SetReplacementModel", (string sku) => {
State.ReplacementSku = sku;
StateHasChanged();
});
}
}
Key Session Takeaways
| Capability | Technical Mechanism | Benefit |
|---|---|---|
| AGUI Protocol | Open streaming event protocol (CopilotKit & .NET) | Standardized Agent-to-App interface alongside MCP and ATA. |
| AGUI.NET SDK | AGUI.Client & AGUI.Server NuGet packages |
Native IChatClient integration with Microsoft.Extensions.AI. |
| Blazor AI Components | <ChatPage>, <AgentBoundary>, <MessageList> |
Turnkey agentic chat interfaces in idiomatic Razor syntax. |
| Block Renderers | Custom component dispatch per content block | Replace raw JSON/text with interactive native Blazor UI cards. |
| Front-End Tools | AIFunction invoked on Blazor client via AGUI |
Server agent directly mutates client form state and controls. |
| Shared State | UIAgent<TState> bi-directional synchronization |
Keeps agent context continuously synchronized with screen edits. |
| Predictive State | SetPredictive with rollback guarantees |
User previews and approves/discards proposed modifications. |
| Human-in-the-Loop | ApprovalRequiredAIFunction & approval blocks |
Stops irreversible financial/warehouse operations without approval. |


