Beta
All guides

.NET (ASP.NET Core)

One C# file: you only write how to save an article.

Download virtual-employee-dotnet.zip

Add it to your site

  1. Copy VirtualEmployee.cs into your web project. ExampleStore.cs keeps pieces as files; replace it with your database.
  2. Make up a long random key and put it in configuration (VirtualEmployee__Secret).
builder.Services.AddScoped<IVirtualEmployeeStore, ExampleStore>();
var app = builder.Build();
app.MapVirtualEmployee(builder.Configuration["VirtualEmployee:Secret"]!);

In your panel

  1. In your panel, open the employee that writes (articles or news) and go to the website settings.
  2. Enter your website address (https, the root of the domain) and the same website key as on your site. Press “Make a key for me” if you have none yet.
  3. Save and press “Write one now” to test. Keep publishing without asking off until you have seen a draft arrive.

Good to know

If your front end is React and the back end is .NET, route /api/ve/ to the back end in your reverse proxy.

The body is Markdown. Render it with a Markdown library that does not allow raw HTML.