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?
612
13-Aug-2025
Updated on 14-Aug-2025
ICSM Computer
13-Aug-2025If 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.