.NET Integration

AI Integration for .NET

Integrate NeoAI and Amy AI into your ASP.NET Core, C#, or .NET application. NuGet packages with native dependency injection, middleware pipeline, and SignalR real-time support.

Terminal
$ dotnet add package Eforge.NeoAI

using Eforge.NeoAI;

// Program.cs
builder.Services.AddNeoAI(options => {
  options.ApiKey = Configuration["NeoAI:ApiKey"];
  options.Agents = ["support", "sales"];
});
Products

How NeoAI & Amy AI Integrate with .NET

First-class .NET packages that follow Microsoft conventions and idioms.

N

NeoAI — AI Agents

Add AI agents that call your services, query the database, invoke APIs, and orchestrate workflows. NeoAI registers through ASP.NET Core's DI container with full ILogger integration.

✓ NuGet package with AddNeoAI() extension ✓ ASP.NET Core middleware pipeline ✓ SignalR hub for real-time AI responses ✓ ILogger and IServiceProvider integration ✓ Async/await with CancellationToken support
A

Amy AI — Business Intelligence

Connect Amy AI to your Entity Framework DbContext. Ask business questions in natural language and get analytics, KPIs, and visualizations generated from your EF Core models.

✓ Entity Framework Core DbContext integration ✓ LINQ-compatible AI query generation ✓ Multi-DbContext and multi-database support ✓ Blazor-compatible dashboard output ✓ Power BI export format support
Methods

Integration Methods for .NET

Multiple approaches that follow .NET conventions and best practices.

NuGet Package

Install via dotnet add package Eforge.NeoAI. AOT compatible, nullable annotations, and full XML documentation.

REST API

Call Eforge AI via HttpClient with typed clients. Refit-compatible interfaces and Polly resilience policies included.

MCP Server

Expose your .NET services as MCP tools so AI agents can discover and call them dynamically via Model Context Protocol.

Code

Examples

Real code examples for integrating Eforge AI into your .NET application.

ASP.NET Core Controller

Controllers/ChatController.cs
using Eforge.NeoAI;

[ApiController]
[Route("api/chat")]
public class ChatController : ControllerBase
{
  private readonly INeoAiClient _neoAi;

  [HttpPost]
  public async Task<IActionResult> Chat(
    [FromBody] ChatRequest req) {
    var result = await _neoAi
      .Agent("support")
      .Message(req.Message)
      .Tools("crm", "calendar")
      .SendAsync();
    return Ok(result);
  }
}

Amy AI with Entity Framework

Controllers/BiController.cs
using Eforge.AmyAI;

[ApiController]
[Route("api/bi")]
public class BiController : ControllerBase
{
  private readonly IAmyAiClient _amyAi;

  [HttpPost("query")]
  public async Task<BiResult> Query(
    [FromBody] BiRequest req) {
    return await _amyAi
      .Ask(req.Question)
      .DbContext(_context)
      .Format("chart")
      .ExecuteAsync();
  }
}
Compatibility

Works with your version of .NET

Eforge AI packages support .NET 6+ and follow Microsoft's LTS (Long-Term Support) release schedule.

.NET 6, 7, 8, 9+
ASP.NET Core 6, 7, 8, 9+
Entity Framework Core 6, 7, 8+
Blazor Server and WebAssembly
Compatible with .NET MAUI
AOT compilation support
📦
dotnet add package Eforge.NeoAI
AddNeoAI() in Program.cs
🔑
Set API key in appsettings.json
AI is ready via DI injection

Add AI to your .NET app today

Tell us about your .NET project. We'll show you the best integration path for ASP.NET Core, Blazor, or enterprise systems.

Start a project See all integrations