{"id":1306,"date":"2025-04-21T14:57:22","date_gmt":"2025-04-21T14:57:22","guid":{"rendered":"https:\/\/www.naveedulhaq.com\/?p=1306"},"modified":"2025-04-25T22:24:42","modified_gmt":"2025-04-25T22:24:42","slug":"what-is-genai-a-developers-guide-to-generative-ai","status":"publish","type":"post","link":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/","title":{"rendered":"What is GenAI? A Developer&#8217;s Guide to Generative AI (with Code Examples)"},"content":{"rendered":"\n<p>Heard the term <strong>GenAI<\/strong> buzzing around? Spoiler: it\u2019s more than just hype.<\/p>\n\n\n\n<p>If you&#8217;re a .net developer like me, you&#8217;re probably wondering:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;Can I actually <em>use<\/em> GenAI in my code?&#8221;<br>Short answer: <strong>Yes<\/strong> \u2014 and it&#8217;s easier than you think.<\/p>\n<\/blockquote>\n\n\n\n<p>Let\u2019s break it all down. And yeah, I\u2019ll throw in some code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is GenAI?<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-1024x536.png\" loading=\"lazy\" alt=\"What is GenAI?\" class=\"wp-image-1319\" srcset=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-1024x536.png 1024w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-300x157.png 300w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-768x402.png 768w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-1536x804.png 1536w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2025\/04\/genai-2048x1072.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>GenAI<\/strong> stands for <strong>Generative Artificial Intelligence<\/strong>. Unlike traditional AI, which focuses on prediction and classification, GenAI <em>creates<\/em> things.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Text (think Chatgpt)<\/li>\n\n\n\n<li>Images (hello DALL\u00b7E and Midjourney)<\/li>\n\n\n\n<li>Music<\/li>\n\n\n\n<li>Code (GitHub Copilot, anyone?)<\/li>\n<\/ul>\n\n\n\n<p>It\u2019s AI that writes, draws, sings, and codes. Sounds fun? It is.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Should .net Developers Care About GenAI?<\/h2>\n\n\n\n<p>Because GenAI can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Speed up development<\/li>\n\n\n\n<li>Help generate boilerplate code<\/li>\n\n\n\n<li>Assist with unit tests<\/li>\n\n\n\n<li>Summarise legacy code<\/li>\n\n\n\n<li>Generate documentation<\/li>\n\n\n\n<li>Even debug<\/li>\n<\/ul>\n\n\n\n<p>Let\u2019s look at how we can use GenAI in a .net app.<\/p>\n\n\n\n<p><strong>Using GenAI in .NET with Azure OpenAI<\/strong><\/p>\n\n\n\n<p>Microsoft has made it super easy to integrate <strong>GenAI<\/strong> with the Azure OpenAI Service. Here&#8217;s how to get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1: Set up Azure OpenAI<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create an Azure OpenAI resource<\/li>\n\n\n\n<li>Deploy a model (e.g., <code>gpt-35-turbo<\/code>)<\/li>\n\n\n\n<li>Grab your endpoint and API key<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">2: Install NuGet Package<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>dotnet add package Azure.AI.OpenAI<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3: Code Example \u2013 Chat with GenAI<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>using Azure;\nusing Azure.AI.OpenAI;\n\nvar endpoint = new Uri(\"https:\/\/your-openai-endpoint\/\");\nvar apiKey = new AzureKeyCredential(\"your-api-key\");\n\nvar client = new OpenAIClient(endpoint, apiKey);\n\nvar chatOptions = new ChatCompletionsOptions()\n{\n    Messages =\n    {\n        new ChatMessage(ChatRole.System, \"You are a helpful .NET assistant.\"),\n        new ChatMessage(ChatRole.User, \"Generate a basic ASP.NET Core controller.\"),\n    },\n    Temperature = 0.7f,\n    MaxTokens = 500\n};\n\nvar response = await client.GetChatCompletionsAsync(\"gpt-35-turbo\", chatOptions);\n\nConsole.WriteLine(response.Value.Choices&#91;0].Message.Content);\n<\/code><\/pre>\n\n\n\n<p>Boom! You&#8217;re chatting with GenAI right inside your .NET app<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use Case: Generating Code<\/h2>\n\n\n\n<p>Ask it to write a controller, service layer, unit test, or even LINQ queries.<\/p>\n\n\n\n<p><strong>Example prompt<\/strong>:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201cWrite a C# method to paginate a list using LINQ.\u201d<\/p>\n<\/blockquote>\n\n\n\n<p>The GenAI model will return working code 9 out of 10 times. Of course, always validate before using it in production.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices for Using GenAI in Dev Work<\/h2>\n\n\n\n<p>Here are some tips:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Use it for inspiration<\/strong>, not automation<\/li>\n\n\n\n<li><strong>Always review the code<\/strong> it generates<\/li>\n\n\n\n<li><strong>Don&#8217;t share sensitive data<\/strong> in prompts<\/li>\n\n\n\n<li><strong>Use temperature settings wisely<\/strong> (lower = more accurate, higher = more creative)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common Dev Use Cases for GenAI<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Use Case<\/strong><\/td><td><strong>Example<\/strong><\/td><\/tr><tr><td>Code generation<\/td><td>Scaffold services, controllers, models<\/td><\/tr><tr><td>Unit tests<\/td><td>Create test cases with sample data<\/td><\/tr><tr><td>Documentation<\/td><td>Summarize complex methods<\/td><\/tr><tr><td>Debugging help<\/td><td>\u201cWhat could cause a NullReferenceException in this code?\u201d<\/td><\/tr><tr><td>Regex writing<\/td><td>Save yourself a headache!<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">The Future of GenAI for Developers<\/h2>\n\n\n\n<p>We&#8217;re heading toward an era where <strong>GenAI<\/strong> is your coding buddy. It\u2019ll sit inside your IDE, write comments, optimise queries, and maybe even refactor your code for performance.<\/p>\n\n\n\n<p>It&#8217;s not a replacement. It&#8217;s an enhancement. Like adding rocket fuel to your dev workflow<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>So, what is GenAI for us developers?<\/p>\n\n\n\n<p>It\u2019s a generative AI toolset that helps you code smarter, not harder. GenAI is here to stay, whether you\u2019re using Azure OpenAI, ChatGPT, or GitHub Copilot.<\/p>\n\n\n\n<p>Start small. Try an API call. Ask it to write a test. See how it fits in your workflow.<\/p>\n\n\n\n<p>Trust me \u2014 once you get a taste of what GenAI can do, there\u2019s no going back.<\/p>\n\n\n\n<p>Explore more <a href=\"https:\/\/www.naveedulhaq.com\/index.php\/tag\/ai\/\">AI &#8211; How-to Guides<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Heard the term GenAI buzzing around? Spoiler: it\u2019s more than just hype. If you&#8217;re a .net developer like me, you&#8217;re probably wondering: &#8220;Can I actually&#8230;<\/p>\n","protected":false},"author":1,"featured_media":523,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,142,18],"tags":[11,141,32,143],"class_list":["post-1306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dot-net-core","category-ai","category-azure","tag-dot-net-core","tag-azure","tag-developer","tag-genai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog<\/title>\n<meta name=\"description\" content=\"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog\" \/>\n<meta property=\"og:description\" content=\"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/\" \/>\n<meta property=\"og:site_name\" content=\"Naveed Ul-Haq&#039;s blog\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-21T14:57:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-25T22:24:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png\" \/>\n\t<meta property=\"og:image:width\" content=\"840\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Naveed Ul-Haq\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naveed Ul-Haq\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/\"},\"author\":{\"name\":\"Naveed Ul-Haq\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"headline\":\"What is GenAI? A Developer&#8217;s Guide to Generative AI (with Code Examples)\",\"datePublished\":\"2025-04-21T14:57:22+00:00\",\"dateModified\":\"2025-04-25T22:24:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/\"},\"wordCount\":489,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/The-Future-Of-Artificial-Intelligence.png\",\"keywords\":[\".net core\",\"Azure\",\"developer\",\"GenAI\"],\"articleSection\":[\".NET\",\"AI\",\"Azure\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/\",\"name\":\"What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/The-Future-Of-Artificial-Intelligence.png\",\"datePublished\":\"2025-04-21T14:57:22+00:00\",\"dateModified\":\"2025-04-25T22:24:42+00:00\",\"description\":\"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/The-Future-Of-Artificial-Intelligence.png\",\"contentUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/The-Future-Of-Artificial-Intelligence.png\",\"width\":840,\"height\":450,\"caption\":\"Artificial Intelligence\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/ai\\\/what-is-genai-a-developers-guide-to-generative-ai\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.naveedulhaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is GenAI? A Developer&#8217;s Guide to Generative AI (with Code Examples)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/\",\"name\":\"Naveed Ul-Haq's blog\",\"description\":\"AI, Optimizely, Azure &amp; more\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.naveedulhaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\",\"name\":\"Naveed Ul-Haq\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"caption\":\"Naveed Ul-Haq\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\"},\"description\":\"I lead engineering delivery teams for digital commerce and digital experience platforms, combining hands-on architecture experience with strong delivery governance. Over 20+ years, I\u2019ve built and led cross\u2011functional teams (engineering, BA, QA) delivering modern cloud solutions on Azure, microservices, APIs and eCommerce\\\/CMS platforms. My recent focus includes AI-enabled commerce automation: product ingestion and enrichment workflows, content optimisation for SEO and shopping feeds, and agentic tooling to improve marketing and accessibility workflows. I\u2019m passionate about building high-performing teams, establishing quality\\\/release standards, and delivering measurable outcomes across performance, reliability, and speed of change.\",\"sameAs\":[\"https:\\\/\\\/www.naveedulhaq.com\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/naveedulhaq\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog","description":"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/","og_locale":"en_GB","og_type":"article","og_title":"What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog","og_description":"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.","og_url":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/","og_site_name":"Naveed Ul-Haq&#039;s blog","article_published_time":"2025-04-21T14:57:22+00:00","article_modified_time":"2025-04-25T22:24:42+00:00","og_image":[{"width":840,"height":450,"url":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png","type":"image\/png"}],"author":"Naveed Ul-Haq","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naveed Ul-Haq","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#article","isPartOf":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/"},"author":{"name":"Naveed Ul-Haq","@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"headline":"What is GenAI? A Developer&#8217;s Guide to Generative AI (with Code Examples)","datePublished":"2025-04-21T14:57:22+00:00","dateModified":"2025-04-25T22:24:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/"},"wordCount":489,"commentCount":0,"publisher":{"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"image":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png","keywords":[".net core","Azure","developer","GenAI"],"articleSection":[".NET","AI","Azure"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/","url":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/","name":"What is GenAI? How Developers Can Use GenAI in .NET Apps Naveed Ul-Haq&#039;s blog","isPartOf":{"@id":"https:\/\/www.naveedulhaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#primaryimage"},"image":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png","datePublished":"2025-04-21T14:57:22+00:00","dateModified":"2025-04-25T22:24:42+00:00","description":"What is GenAI? Learn how developers can use GenAI with .NET and Azure OpenAI to build smarter, faster applications with real code examples.","breadcrumb":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#primaryimage","url":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png","contentUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2021\/02\/The-Future-Of-Artificial-Intelligence.png","width":840,"height":450,"caption":"Artificial Intelligence"},{"@type":"BreadcrumbList","@id":"https:\/\/www.naveedulhaq.com\/index.php\/ai\/what-is-genai-a-developers-guide-to-generative-ai\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.naveedulhaq.com\/"},{"@type":"ListItem","position":2,"name":"What is GenAI? A Developer&#8217;s Guide to Generative AI (with Code Examples)"}]},{"@type":"WebSite","@id":"https:\/\/www.naveedulhaq.com\/#website","url":"https:\/\/www.naveedulhaq.com\/","name":"Naveed Ul-Haq's blog","description":"AI, Optimizely, Azure &amp; more","publisher":{"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.naveedulhaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9","name":"Naveed Ul-Haq","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","caption":"Naveed Ul-Haq"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g"},"description":"I lead engineering delivery teams for digital commerce and digital experience platforms, combining hands-on architecture experience with strong delivery governance. Over 20+ years, I\u2019ve built and led cross\u2011functional teams (engineering, BA, QA) delivering modern cloud solutions on Azure, microservices, APIs and eCommerce\/CMS platforms. My recent focus includes AI-enabled commerce automation: product ingestion and enrichment workflows, content optimisation for SEO and shopping feeds, and agentic tooling to improve marketing and accessibility workflows. I\u2019m passionate about building high-performing teams, establishing quality\/release standards, and delivering measurable outcomes across performance, reliability, and speed of change.","sameAs":["https:\/\/www.naveedulhaq.com","https:\/\/www.linkedin.com\/in\/naveedulhaq\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts\/1306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/comments?post=1306"}],"version-history":[{"count":0,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts\/1306\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/media\/523"}],"wp:attachment":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/media?parent=1306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/categories?post=1306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/tags?post=1306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}