Agent 01: A customer support agent with Microsoft Agent Framework, C# and React A .NET backend engineer built a customer support agent for an online electronics store using Microsoft Agent Framework, C# and React, as the first entry in a weekly series of industry-specific AI agents. The agent wraps a gpt-5-mini model via IChatClient in a ChatClientAgent with instructions and a GetOrderStatus tool, keeps per-session conversation history keyed by sessionId, and streams answers to a React chat frontend. In testing, the agent declined to invent order contents when its tool returned only delivery status, and it recalled an order number from an earlier message without being reminded. I'm a .NET backend engineer, and I've started a series: one AI agent every week , each one solving a real problem in a different industry. It's how I'm building deep, practical knowledge of generative AI: build an agent, break it, fix it, ship it, and write up what I learned, including what went wrong. This is Agent 01: a customer support agent for an online electronics store. I'm pairing two things: The course teaches the idea. Each weekly agent makes me use it on a real problem. IChatClient , so I'm on OpenAI today and can switch providers later by changing one class. Online stores answer the same questions all day, and "Where is my order?" is the biggest one. A support agent can answer instantly, look up the real order status instead of guessing, and hand the customer to a human when money is involved, like a refund. Agent checking a real order and streaming the answer. My favourite moment from testing: I asked "What are the contents of this order?" The tool only returns the delivery status, so the agent said it couldn't see the items, instead of making some up. It also remembered order 1234 from my earlier message without me repeating it. Admitting what it doesn't know matters more to me than sounding clever. gpt-5-mini React chat → POST /api/chat { sessionId, message } → ChatController ↓ ChatService sessions + streaming ↓ AIAgent built by AgentService ↓ OpenAIProvider → OpenAI ↓ OrderTools → IOrderRepository when the customer asks about an order The backend is split into layers, and inner layers never know about outer ones: backend/ ├── Controllers/ ChatController: only calls the service ├── Domain/ Order: a plain business object ├── Application/ interfaces, AgentService, ChatService, OrderTools ├── Infrastructure/ OpenAIProvider, InMemoryOrderRepository └── Extensions/ AddServices: all DI in one place An agent is the model, plus instructions, plus tools, wrapped in one object. In Agent Framework that's a ChatClientAgent : public AIAgent CreateAgent { IChatClient chatClient = aiProvider.GetChatClient ; return new ChatClientAgent chatClient, name: "SupportAgent", instructions: """ You are a friendly support agent for an online electronics store. Keep answers short and clear. Use the GetOrderStatus tool whenever a customer asks about an order. Never promise a refund. Offer to connect the customer to a human instead. """, tools: AIFunctionFactory.Create orderTools.GetOrderStatusAsync, name: "GetOrderStatus" ; } The model reads the Description text to decide when to call the tool and what to pass in. The framework runs the method and hands the result back to the model. Description "Gets the delivery status of a customer's order." public async Task