{
  "id": 17681305,
  "title": "Creating an intelligent chat with React, .NET and Microsoft Foundry",
  "url": "https://urgent.news/2026/11/01/criando-um-chat-inteligente-com-react-net-e-microsoft-foundry",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-01T21:33:26.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hgmauri/criando-um-chat-inteligente-com-react-net-e-microsoft-foundry-52nj"
  },
  "original_language": "pt",
  "account": "A common request from clients is to create a customized ChatGPT-like chatbot that responds in a brand-specific way without sending sensitive data elsewhere. Many attempts at building such a chatbot make the mistake of directly calling the model from the frontend with the API key, which can lead to security issues. A developer has shared an example of how to build a secure chatbot using React, .NET 10 API, and Microsoft Foundry with the gpt-5.4-mini model. The architecture involves a React frontend that only communicates with the API, which validates input, controls cost, and streams responses, while the API authenticates with Entra ID without using a key. The code is available on GitHub.",
  "summary": "Almost every conversation about AI with a client ends with the same request: I want a ChatGPT for my company. A chat with the brand's face, that responds the right way and doesn't send sensitive data anywhere. And almost every first attempt I see makes the same mistake: the frontend calls the model directly, with the API key inside the JavaScript. It works in the demo. In production, it's a leaked key, prompt injection, and so on.",
  "key_points": [
    "Chat inteligente desenvolvido com React, .NET e Microsoft Foundry",
    "API .NET 10 gerencia prompt de sistema, controle de custo e streaming de resposta",
    "Microsoft Foundry hospeda modelo gpt-5.4-mini com autenticação via Entra ID"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}