{"id":57905,"date":"2026-07-20T09:17:54","date_gmt":"2026-07-19T23:17:54","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/"},"modified":"2026-07-20T09:19:22","modified_gmt":"2026-07-19T23:19:22","slug":"building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core","status":"publish","type":"post","link":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/","title":{"rendered":"Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this blog post Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core we will explain how to turn a capable AI agent into a practical application employees can actually use. Many organisations build a promising agent, only to discover that a basic chat box cannot show progress, request approvals or present business data clearly.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI, short for Agent User Interaction Protocol, addresses the connection between an AI agent and its user interface. It gives the browser and the agent a consistent way to exchange messages, status updates, actions and structured information in real time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ASP.NET Core provides the secure web application layer, while Microsoft Foundry provides the models, agent services and management capabilities behind the experience. Together, they let organisations move beyond demonstrations and build agent interfaces that fit real business processes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why a simple chat window is often not enough<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A chat window works well when somebody asks a question and receives a paragraph in return. Business processes are rarely that simple.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An operations agent might need to search several systems, compare records, prepare a recommendation and ask a manager to approve an action. If the interface only displays a loading icon, users cannot tell whether the agent is working, waiting or has failed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This uncertainty reduces trust. Employees either repeat the request, abandon the tool or return to the manual process the agent was meant to improve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A useful agent interface should be able to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Display answers as they are generated rather than making users wait for the full response.<\/li>\n<li>Show which stage of a task is currently running.<\/li>\n<li>Present results as tables, forms, cards or alerts instead of long blocks of text.<\/li>\n<li>Ask for human approval before making sensitive changes.<\/li>\n<li>Maintain the current conversation and task state.<\/li>\n<li>Explain errors in language the user can understand.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These capabilities improve productivity because users spend less time guessing what the system is doing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What AG-UI does in plain English<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI is the communication agreement between the frontend and the agent. Instead of each development team inventing its own message formats, loading behaviour and approval process, AG-UI defines common event types that both sides understand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the agent can send a message saying that a run has started, stream sections of its response, report a tool call, request approval and then confirm completion. The web interface listens for those events and updates the screen immediately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The streaming commonly uses Server-Sent Events, a standard web technique that keeps sending updates from the server to the browser over an open connection. To the employee, this means the application feels responsive rather than frozen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI also supports shared state. Shared state is simply structured information that both the browser and the agent can see, such as the fields in an incident form, the stages of a procurement request or the items in a proposed project plan.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the components fit together<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A practical implementation normally has five layers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>The web interface<\/strong> where the employee enters requests, reviews results and approves actions.<\/li>\n<li><strong>AG-UI<\/strong> which carries messages, progress updates, tool activity and state between the interface and the agent.<\/li>\n<li><strong>ASP.NET Core<\/strong> which hosts the endpoint, checks user identity and applies security controls.<\/li>\n<li><strong>Microsoft Agent Framework<\/strong> which runs the agent logic, tools, instructions and workflow.<\/li>\n<li><strong>Microsoft Foundry<\/strong> which provides access to the selected AI model and managed agent capabilities.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If your organisation is still designing the agent itself, our guide to building production AI agents with Microsoft Agent Framework and .NET covers that foundation in more detail.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The important design decision is separation. The browser should not connect directly to the AI model, hold cloud credentials or contain sensitive business rules. ASP.NET Core acts as the controlled gateway between employees and the agent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating the ASP.NET Core AG-UI endpoint<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following simplified example shows the basic server pattern. Package versions and preview status can change, so development teams should validate the current Microsoft documentation before locking versions for production.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet add package Microsoft.Agents.AI.Hosting.AGUI.AspNetCore --prerelease\ndotnet add package Microsoft.Agents.AI.Foundry --prerelease\ndotnet add package Azure.AI.Projects --prerelease\ndotnet add package Azure.Identity<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The application then registers AG-UI, creates the Foundry-backed agent and maps it to a protected web endpoint.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using Azure.AI.Projects;\nusing Azure.Identity;\nusing Microsoft.Agents.AI;\nusing Microsoft.Agents.AI.Hosting.AGUI.AspNetCore;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddHttpClient();\nbuilder.Services.AddLogging();\nbuilder.Services.AddAGUI();\nbuilder.Services.AddAuthentication().AddJwtBearer();\nbuilder.Services.AddAuthorization();\n\nvar app = builder.Build();\n\napp.UseAuthentication();\napp.UseAuthorization();\n\nvar projectEndpoint = builder.Configuration[&quot;FOUNDRY_PROJECT_ENDPOINT&quot;]\n ?? throw new InvalidOperationException(&quot;Foundry endpoint is missing&quot;);\n\nvar modelName = builder.Configuration[&quot;FOUNDRY_MODEL_NAME&quot;]\n ?? throw new InvalidOperationException(&quot;Model name is missing&quot;);\n\nAIAgent agent = new AIProjectClient(\n new Uri(projectEndpoint),\n new ManagedIdentityCredential())\n .AsAIAgent(\n model: modelName,\n name: &quot;OperationsAssistant&quot;,\n instructions: &quot;Help authorised staff review operational requests.&quot;);\n\napp.MapAGUI(&quot;\/api\/agents\/operations&quot;, agent)\n .RequireAuthorization();\n\napp.Run();<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>AddAGUI<\/code> registers the services needed to translate agent activity into AG-UI events. <code>MapAGUI<\/code> exposes the agent through an ASP.NET Core endpoint and handles the streaming response.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Managed identity allows an application hosted in Azure to access approved resources without storing passwords or access keys in source code. Local development may use a developer credential, but production should use a tightly controlled application identity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Design the interface around decisions, not conversation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The biggest mistake is treating every agent as another version of ChatGPT. The interface should reflect the employee&#8217;s job and the decision they need to make.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For an IT support agent, show the affected user, device, risk level and recommended action. For a finance agent, show invoice details, policy exceptions and approval limits. For an operations agent, show task status, dependencies and unresolved issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI can stream structured state and tool activity to these components. A frontend framework can then render that information as familiar business controls rather than exposing raw technical events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Agents can also receive frontend tools, meaning approved functions that run in the user&#8217;s application. These might open a specific record, populate a form or display an approval window. They should be limited to well-defined actions rather than giving the agent unrestricted control of the browser.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Keep people in control of sensitive actions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An agent that can read information creates one level of risk. An agent that can send emails, change records or approve transactions creates another.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI supports human-in-the-loop workflows, which means the agent pauses and asks a person before completing a sensitive action. The approval screen should clearly show what will happen, which system will be changed and what information will be submitted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Authentication is only the first control. The application must also confirm what each user is allowed to do. A staff member who can view a customer account should not automatically be allowed to change payment details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When agents need access to business platforms, use narrowly defined tools and APIs. Our article on connecting Foundry agents to business systems with MCP and OpenAPI explains how to provide that access without giving the model broad system permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the solution involves agents calling other agents, the same principle applies. Each connection needs its own identity, permissions and audit trail, as discussed in our guide to secure A2A authentication in Microsoft Foundry Agent Service.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A realistic business scenario<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a 200-person services company processing operational exceptions through email and spreadsheets. Managers spend several hours each week finding the right records, checking policy and asking staff for missing details.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A Foundry agent could collect the relevant information and prepare a recommendation. AG-UI could show progress as systems are checked, populate a structured review screen and request approval before updating the source system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The business outcome is not simply \u201chaving an AI chatbot.\u201d It is fewer manual checks, faster decisions, clearer accountability and a reliable record of who approved each action.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Plan for production from the beginning<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before releasing an AG-UI interface, confirm that the solution includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Microsoft Entra ID sign-in and role-based access.<\/li>\n<li>Server-side validation for every tool and requested action.<\/li>\n<li>Human approval for high-impact or irreversible changes.<\/li>\n<li>Logging that records actions without unnecessarily storing sensitive prompts.<\/li>\n<li>Rate limits and spending controls to prevent unexpected AI costs.<\/li>\n<li>Clear error messages and a manual fallback process.<\/li>\n<li>Testing against prompt manipulation and unauthorised data access.<\/li>\n<li>Patch management and application controls aligned with Essential 8, the Australian government&#8217;s cybersecurity framework that many organisations use to reduce common cyber risks.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">AG-UI is still developing, so isolate protocol-specific code and test upgrades before deployment. This reduces the cost of future changes and prevents the interface from being tied too closely to one package version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Start with one valuable workflow<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The strongest first project is usually a repetitive process with clear inputs, measurable delays and an obvious approval point. Avoid beginning with an agent that is expected to do everything for everyone.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CloudProInc brings more than 20 years of enterprise IT experience to these decisions. As a Melbourne-based Microsoft Partner and Wiz Security Integrator, we help organisations across Australia and internationally connect Foundry, Azure, Microsoft 365 and security controls without turning a useful AI project into another unmanaged risk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a Foundry agent but are not sure how to turn it into a secure, practical web application, we are happy to review the design and identify the simplest path forward \u2014 no strings attached.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Learn how AG-UI and ASP.NET Core turn Microsoft Foundry agents into secure, responsive web experiences with streaming, approvals and practical governance.<\/p>\n","protected":false},"author":1,"featured_media":57908,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_opengraph-title":"Agent Web Interfaces with AG-UI and ASP.NET Core","_yoast_wpseo_opengraph-description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","_yoast_wpseo_twitter-title":"Agent Web Interfaces with AG-UI and ASP.NET Core","_yoast_wpseo_twitter-description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[27,80,13,115],"tags":[],"class_list":["post-57905","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-ai-agents","category-blog","category-microsoft-ai-foundry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Agent Web Interfaces with AG-UI and ASP.NET Core<\/title>\n<meta name=\"description\" content=\"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Agent Web Interfaces with AG-UI and ASP.NET Core\" \/>\n<meta property=\"og:description\" content=\"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-19T23:17:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-19T23:19:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Agent Web Interfaces with AG-UI and ASP.NET Core\" \/>\n<meta name=\"twitter:description\" content=\"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core\",\"datePublished\":\"2026-07-19T23:17:54+00:00\",\"dateModified\":\"2026-07-19T23:19:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/\"},\"wordCount\":1421,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png\",\"articleSection\":[\".NET\",\"AI Agents\",\"Blog\",\"Microsoft AI Foundry\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/\",\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/\",\"name\":\"Agent Web Interfaces with AG-UI and ASP.NET Core\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png\",\"datePublished\":\"2026-07-19T23:17:54+00:00\",\"dateModified\":\"2026-07-19T23:19:22+00:00\",\"description\":\"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/2026\\\/07\\\/20\\\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/cloudproinc.com.au\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Agent Web Interfaces with AG-UI and ASP.NET Core","description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/","og_locale":"en_US","og_type":"article","og_title":"Agent Web Interfaces with AG-UI and ASP.NET Core","og_description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","og_url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/","og_site_name":"CPI Consulting","article_published_time":"2026-07-19T23:17:54+00:00","article_modified_time":"2026-07-19T23:19:22+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/cloudproinc.com.au\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","type":"image\/png"}],"author":"CPI Staff","twitter_card":"summary_large_image","twitter_title":"Agent Web Interfaces with AG-UI and ASP.NET Core","twitter_description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#article","isPartOf":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/"},"author":{"name":"CPI Staff","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core","datePublished":"2026-07-19T23:17:54+00:00","dateModified":"2026-07-19T23:19:22+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/"},"wordCount":1421,"commentCount":0,"publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","articleSection":[".NET","AI Agents","Blog","Microsoft AI Foundry"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/","url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/","name":"Agent Web Interfaces with AG-UI and ASP.NET Core","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#primaryimage"},"image":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","datePublished":"2026-07-19T23:17:54+00:00","dateModified":"2026-07-19T23:19:22+00:00","description":"Build agent web interfaces that stream progress, show structured data, request approvals and keep users in control across responsive business workflows.","breadcrumb":{"@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#primaryimage","url":"\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","contentUrl":"\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudproinc.com.au\/"},{"@type":"ListItem","position":2,"name":"Building Foundry Agent Web Interfaces with AG-UI and ASP.NET Core"}]},{"@type":"WebSite","@id":"https:\/\/www.cloudproinc.com.au\/#website","url":"https:\/\/www.cloudproinc.com.au\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudproinc.com.au\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cloudproinc.com.au\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/www.cloudproinc.com.au\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/cloudproinc.com.au\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2026\/07\/building-foundry-agent-web-interfaces-with-ag-ui-and-asp-net-core.png","jetpack-related-posts":[{"id":57787,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints\/","url_meta":{"origin":57905,"position":0},"title":"Connecting Microsoft Foundry Agents to External A2A Endpoints","author":"CPI Staff","date":"July 7, 2026","format":false,"excerpt":"A practical guide for tech leaders on connecting Microsoft Foundry agents to external A2A endpoints safely, without creating cost, security, or governance surprises.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png 1x, \/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png 1.5x, \/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png 2x, \/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png 3x, \/wp-content\/uploads\/2026\/07\/connecting-microsoft-foundry-agents-to-external-a2a-endpoints.png 4x"},"classes":[]},{"id":57288,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/03\/22\/what-microsoft-ai-foundry-means-for-australian-organisations-designing-enterprise-ai-platforms\/","url_meta":{"origin":57905,"position":1},"title":"What Microsoft AI Foundry Means for Australian Organisations Designing Enterprise AI Platforms","author":"CPI Staff","date":"March 22, 2026","format":false,"excerpt":"Most Australian organisations that started building AI capabilities in the last two years are hitting the same wall. The proof of concept worked. The board approved the next phase. And now IT teams are drowning in questions nobody planned for. Where do the models run? Who approves new deployments? How\u2026","rel":"","context":"In &quot;AI&quot;","block_context":{"text":"AI","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/ai\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png 1x, \/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png 1.5x, \/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png 2x, \/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png 3x, \/wp-content\/uploads\/2026\/03\/microsoft-ai-foundry-australian-enterprise-ai-platforms-cover.png 4x"},"classes":[]},{"id":57923,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/20\/building-production-ready-net-a2a-agents-on-azure-container-apps\/","url_meta":{"origin":57905,"position":2},"title":"Building Production-Ready .NET A2A Agents on Azure Container Apps","author":"CPI Staff","date":"July 20, 2026","format":false,"excerpt":"Learn how .NET, ASP.NET Core and Azure Container Apps turn A2A agents into secure, scalable business services with clear controls for cost, access and governance.","rel":"","context":"In &quot;.NET&quot;","block_context":{"text":".NET","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/net\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":57587,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/05\/28\/connecting-microsoft-foundry-agents-to-business-systems-2\/","url_meta":{"origin":57905,"position":3},"title":"Connecting Microsoft Foundry Agents to Business Systems","author":"CPI Staff","date":"May 28, 2026","format":false,"excerpt":"AI agents are moving from proof of concept to production planning. For many Australian organisations, the question is no longer whether an agent can answer a question. The harder question is whether it can safely do useful work across the systems the business already runs on. That means connecting agents\u2026","rel":"","context":"In &quot;AI for Business &amp; AI Strategy&quot;","block_context":{"text":"AI for Business &amp; AI Strategy","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/ai-for-business-ai-strategy\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png 1x, \/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png 1.5x, \/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png 2x, \/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png 3x, \/wp-content\/uploads\/2026\/05\/connecting-microsoft-foundry-agents-to-business-systems.png 4x"},"classes":[]},{"id":57836,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/12\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service\/","url_meta":{"origin":57905,"position":4},"title":"Implementing Secure A2A Auth in Microsoft Foundry Agent Service","author":"CPI Staff","date":"July 12, 2026","format":false,"excerpt":"AI agents are starting to call other agents. Here is how to implement A2A authentication in Microsoft Foundry Agent Service without creating a security blind spot.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png 1x, \/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png 1.5x, \/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png 2x, \/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png 3x, \/wp-content\/uploads\/2026\/07\/implementing-secure-a2a-auth-in-microsoft-foundry-agent-service.png 4x"},"classes":[]},{"id":57949,"url":"https:\/\/cloudproinc.com.au\/index.php\/2026\/07\/21\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure\/","url_meta":{"origin":57905,"position":5},"title":"Monitoring and Troubleshooting A2A Agent Communication in Azure","author":"CPI Staff","date":"July 21, 2026","format":false,"excerpt":"Learn how to trace A2A agent conversations in Azure, diagnose failures faster, control costs and give business leaders confidence that multi-agent workflows are operating safely.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png 1x, \/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png 1.5x, \/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png 2x, \/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png 3x, \/wp-content\/uploads\/2026\/07\/monitoring-and-troubleshooting-a2a-agent-communication-in-azure.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/57905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=57905"}],"version-history":[{"count":1,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/57905\/revisions"}],"predecessor-version":[{"id":57906,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/57905\/revisions\/57906"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/57908"}],"wp:attachment":[{"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=57905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=57905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=57905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}