Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Artificial Intelligence and Agents in .NET
Bestseller
Rating: 4.5 out of 5(21 ratings)
181 students

Artificial Intelligence and Agents in .NET

Create Chatbots, RAG, MCP Servers and Intelligent Apps
Created byFelipe Gavilán
Last updated 7/2026
English
English [Auto],

What you'll learn

  • Integrating AI into .NET applications
  • Build chatbots in ASP.NET Core
  • Enabling AI to call C# functions in your app
  • Integrate AI with external databases and APIs
  • Implement human approval for sensitive actions (make AI ask for permission to do things)
  • Create a RAG system with internal documents (where AI answers questions based on documents)
  • Building and integrating an MCP server

Course content

8 sections96 lectures6h 23m total length
  • Introduction0:41
  • What is Artificial Intelligence?3:17
  • What is Generative AI?2:23
  • Introduction to LLMs4:16

    Understand how large language models process text into tokens, guided by prompts and context, producing probabilistic responses via APIs. Design effective prompts and manage temperature to build robust .NET applications.

  • Types of Instructions2:39
  • Roles in Conversations with LLMs2:03
  • Chatbots vs Agents4:21
  • Limitations3:21
  • Our First App That Uses AI1:26

    Build a simple console chatbot in .NET that uses AI with OpenAI, includes streaming text, and demonstrates context-aware responses.

  • Github Repository of the Course0:03
  • A Chatbot That Responds5:08

    Build a console app, obtain an OpenAI API key, install the OpenAI SDK via NuGet, and use a chat client to query a model like GPT 5.4 nano for testing.

  • Storing the Key in a Safe Place3:53
  • Conversation History - Adding Context5:50

    Learn how to add conversation history to a chat bot by passing the full list of user and assistant chat messages to the AI, giving it context for coherent responses.

  • Using a System Prompt4:33

    Explore how system prompts shape model behavior in .NET and other languages, preventing markdown formatting and enforcing plain text responses through practical examples.

  • Streaming the Response3:37

    Explore streaming the response to display model text as it arrives, improving perceived speed, while coding for continuous updates, history handling, and using a string builder to preserve context.

  • Making Our Chatbot with Claude8:07

    This lecture demonstrates building a Claude-based chatbot in .NET using Anthropic Cloth, including installing the SDK, configuring API keys, selecting Haiku, streaming responses, and comparing with OpenAI implementations.

  • Beyond SDKs: APIs1:57

    Explore communicating with models via APIs by sending HTTP POST requests without SDKs. Send JSON payloads with system prompts, user prompts, reasoning, and responses using a C# HTTP client.

  • Summary1:43

    Explore the fundamentals of artificial intelligence, including learning, reasoning, pattern recognition, and decision making, and examine generative artificial intelligence, large language models, prompts, system prompts, message rules, hallucination, and chatbots.

Requirements

  • You don't need prior experience in artificial intelligence, but you do need basic knowledge of C# and ASP.NET Core.

Description

Discover how to take your .NET applications to the next level by integrating artificial intelligence in a practical, modern, and production-ready way. In this course, you’ll learn step by step how to add AI capabilities to your applications, with minimal theory and a strong focus on real-world scenarios.

We’ll start with the basics by integrating AI into a console application, so you can understand the fundamentals of interacting with language models. From there, we’ll move on to Microsoft Extensions AI, one of the key components of the modern .NET ecosystem for working with AI in a flexible and decoupled way, allowing you to switch between providers such as OpenAI, Anthropic, or Google without rewriting your application.

As we progress, we’ll build a fully functional chatbot using ASP.NET Core. This won’t be just another text generator: we’ll implement response streaming to improve the user experience, enabling text to appear in real time without unnecessary waiting. You’ll also learn how to use tool calling, a technique that allows the AI to execute functions from your C# code, integrate with your database, or consume external APIs.

We’ll also cover more advanced scenarios, such as human-in-the-loop workflows, where the AI requests approval before performing sensitive actions like sending emails. This is essential for building secure and reliable systems in real-world environments.

In the RAG (Retrieval-Augmented Generation) module, you’ll learn how to build applications that allow AI to answer questions based on your company’s own documents. Not only that, but we’ll also implement a source citation system, increasing the reliability of responses and making it possible to verify the information being used.

Finally, we’ll explore the Model Context Protocol (MCP), where we’ll build a server that enables tools like ChatGPT or Claude to interact directly with your application. This opens the door to scenarios where users can perform real actions in your system simply through natural language.

This course is designed for .NET developers who want to learn by building real-world projects they can immediately apply to their jobs or products. You don’t need prior experience with artificial intelligence, but you should have a basic understanding of C# and ASP.NET Core.

By the end of the course, you won’t just understand how modern AI works, but also you’ll be able to integrate it effectively into your own applications, creating smarter, more automated solutions aligned with today’s industry trends.

If you want to learn how to build AI and agent-powered .NET applications, this course is for you.

Who this course is for:

  • .NET developers who want to create smart apps