M365 Show Podcast

Building AI-Powered Apps with Azure OpenAI and Power Platform


Listen Later

Ever wondered why so many “AI-powered” Power Platform demos stop at chatbots and don’t actually survive in a real business workflow? This video shows what they don’t—how to actually wire up Azure OpenAI with Power Apps and Dynamics 365, with every security, performance, and governance piece that professional deployments demand. If you’ve ever wanted less magic and more how, you’re in the right place.Beyond the Connector: The Real Anatomy of AI in Power PlatformIt always starts the same way. Business users see a slick demo—maybe a sales chatbot that can respond in seconds or a customer service app that magically sorts tickets—and they think, “Great, let’s put that right in Power Apps.” The connector's there, the screens light up, and people start picturing AI doing their busywork. But reality sets in fast. The connector works for two people in a demo, and then—just when you think you’re building the next big thing—performance issues show up, chatbots start mumbling nonsense, or sensitive customer data accidentally sneaks out. This is where most AI integrations stall out.Blame it on the myth that adding AI to Power Platform is just clicking ‘+ Add a connector’ and linking it to Azure OpenAI. That mindset sticks because—on paper—these tools look almost too easy. If only that was the hard part. So what’s really under the hood when you want more than just a toy project? Understanding where AI magic really happens makes all the difference between killing a demo and actually powering a business process.Now, in pretty much every serious Power Platform AI setup, there are four players. First, you’ve got Power Apps or Dynamics 365 themselves—the ones end-users interact with, and the actual trigger for every AI request. They collect data, maybe a customer message, survey result, product review—whatever input you want intelligence on. But Power Apps don’t talk to Azure OpenAI directly. That’s where Power Automate steps in, orchestrating the whole thing. Every time a user hits a button or submits a form, Power Automate’s flow picks up the data, shapes it into the right format, and sends it where it needs to go. Third comes the Azure OpenAI endpoint—this is the real brain, delivering things like sentiment analysis, text summarization, or even generating customer replies. And tucked quietly in the stack, you have Azure API Management, which is criminally overlooked until something blows up. That’s the security and throttling bit—the difference between having a steady flow and flooding the pipes.Let’s break down how these puzzle pieces lean on each other. Take the trigger—the instant a user in Dynamics 365 logs a sales call, for example. That fires off a Power Automate flow. The flow isn’t just moving data from A to B. It might clean up text, merge context from other sources, or mask out fields for privacy before the request flies off to Azure OpenAI. That journey matters. If the flow runs slowly because another automation is chewing up resources, you’ll see latency pile up in your app. If Power Automate doesn’t properly prep the payload—say, a product review is missing context or coming in with weird formatting—your OpenAI endpoint will spit back odd results, or worse, hallucinate answers. There’s no intelligence happening if the wiring upstream is messy.This gets even more interesting with Azure API Management in the mix. While everyone’s excited about the intelligence, not enough people think about who should have access and how often. API Management acts like a bouncer at the door. It checks every request, applies authentication, and makes sure usage doesn’t go wild. If you’re not setting up throttling policies, one broken app can run thousands of requests an hour and suddenly swamp your OpenAI instance or, equally fun, rack up a sky-high Azure bill. It also logs who did what, which means when something breaks—or someone cuts corners—you actually have an audit trail to follow.Demos never really show these problems. In those short walkthroughs, everything is optimized for a handful of users and near-perfect network conditions. But in a real business, you have actual SLAs, data privacy concerns, and performance thresholds that can’t just be ignored. For example, say you launch a sales feedback Power App with built-in sentiment analysis. With just ten people, the flow hums along and you get useful results in under a second. But the day that number jumps to ten thousand—maybe after an email campaign or a merger—you start seeing 30-second wait times, or errors because your endpoint can’t keep up with the requests. Worse, you might find half of the feedback data is suddenly failing to process because your payload size started tipping over Azure’s limits, or the security policies on API Management were never tightened. Now, instead of helping sales, your AI pipeline is blockading them—and the helpdesk is not thrilled.That’s the wake-up call: wiring up a connector is nothing more than the invitation to the architecture party. The real event is figuring out how each layer interacts and how fragile things get when you try to scale up. Knowing how Power Apps fire off orchestrations, how flows process and secure data, how AI endpoints interpret it, and how API Management acts as the guardrail—that’s what separates a bot stuck in a sandbox from an enterprise-ready solution.If you only understand the connector, you’re always gambling with stability and security. Anyone can drag and drop a new AI demo in Power Apps. Building something that survives contact with real users and real data? That means digging into the details, not just skating by on connectors. So when the ask changes from “make this echo text” to “actually solve my business problem,” the intelligence needs to become a whole lot smarter. Here’s how the brains get wired up for business impact.Tuning AI for Business: Sentiment, Summarization, and MoreIf you’ve ever played around with Azure OpenAI in Power Platform, you’ve probably noticed something odd: One endpoint can spot negative sentiment in a sentence, summarize a full email chain, or draft a new product description—sometimes in a single day, all with the same “AI box.” But it isn’t magic, and there’s a reason more than a few projects come unstuck the minute you try to do something actually useful. People often assume you just swap out the prompt and call it a day. The reality? Each business use case needs a different approach, and this is where that plug-and-play fantasy falls apart.Let’s talk about the difference between sentiment analysis and text generation. Say you want your Dynamics 365 app to flag customer complaints. Sentiment analysis is the obvious first use case: short inputs, quick responses, low cost, and barely any context to track. This works because Power Automate only needs to pass the most basic data to the OpenAI endpoint—a sentence or two, along with the right prompt telling the model what to look for. You can blaze through dozens of records with no real risk of the model running wild or eating into your budget. Those flows are easy to manage, easy to throttle, and almost never need to be rewritten.Now, move up to summary generation, which already starts stretching the seams. If your Power App lets managers paste in detailed meeting notes and expect coherent summaries in seconds, the prompt you send to OpenAI needs to be tightly worded and aimed at just the right tone. Even then, summaries aren’t all created equal. If your payload is too large or the source text is too unstructured, the model can break character and start paraphrasing instead of summarizing—or even hallucinate details that never happened. This comes back to configuration. Power Automate must shape the input, strip out signatures, remove formatting, and maybe chunk out the document if it’s too long. And this is all before the AI does its thing.But where things really get hairy is full-on text generation or classification at scale. Let’s say your sales team wants custom email replies built on the fly, or your support staff wants each ticket categorized based on issue type. Most people don’t realize that running those AI-powered flows on thousands of inputs is nothing like the sunny demo. The Power Automate flow has to loop through massive datasets, the OpenAI endpoint gets hammered with requests, and suddenly, your throughput drops and your Azure bill starts creeping upwards—sometimes fast enough to get accounting involved.The big tripwire here is treating these AI processes as interchangeable. Sentiment analysis might only cost a few fractions of a cent per request, but long-form generation cranks up model complexity, chews through hundreds of tokens, and takes more time to respond. Add on top the need for custom instructions—maybe a different tone or phrasing for a different customer—and every tweak demands precise prompt engineering. People hear that phrase—prompt engineering—and think it’s just about typing better instructions, but it’s more like tuning a search algorithm. You test, you get bizarre results, you rewrite. And every variation you push out affects not just the output, but the time, cost, and security profile of your workflow.This isn’t a theory—there are too many real-world examples to ignore. A company once built a Power Platform flow that used OpenAI to triage customer service tickets: classify by sentiment and suggest a canned response. It looked perfect in staging. The trouble hit when the team opened the flow up to all support staff, and suddenly the endpoint got requests for every ticket, every minute. The model was set for general text generation, not just simple classification, so it analyzed the full ticket history and wrote multi-paragraph drafts every single time. The costs ballooned overnight, workflows slowed to a crawl, and the AI started inventing information in its suggestions. Nobody paused to ask why a simple triage task needed the endpoint tuned for text generation instead of short classification. I

Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-show-podcast--6704921/support.
...more
View all episodesView all episodes
Download on the App Store

M365 Show PodcastBy Mirko