How to fetch meta description, title, keyword, category from content using AI in .net?
How to fetch meta description, title, keyword, category from content using AI in .net?
Student
The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
If you want to automatically fetch meta description, title, keywords, and category from a given piece of content using AI in .NET, you basically need a pipeline that:
.NETobjects.1. Example Prompt for AI Extraction
You can design a prompt like:
2. .NET C# Example with OpenAI
Here’s a working example using Azure OpenAI (but you can adapt for OpenAI API directly):
3. Why Use AI Instead of Regex?
<p>tags.4. If You Want to Avoid Paid APIs
.NET.facebook/bart-large-cnnfor summaries orkeyBERTfor keyword extraction (via Python interop or ONNX in C#).5. Possible Architecture
If you want, I can give you a ready-to-use .NET method that:
SEODatamodel withTitle,MetaDescription,Keywords,Category.