Azure-Native AI Chatbots:
Architecture Lessons from an Enterprise Build

Azure OpenAI chatbot architecture
A cybersecurity software company with more than 16 security products wanted two results from AI: faster, more accurate customer support, and safer access to internal knowledge for its own staff. Softwarium engineers built two chatbots for a cybersecurity software company on one Azure pipeline: a customer support chatbot and an internal chatbot with access to IP-protected documents, both grounded through Azure AI Search and answered by Azure OpenAI Service.
The Azure OpenAI chatbot architecture behind that build comes down to five decisions, and current Microsoft documentation adds guidance to each of them for teams repeating the pattern. Two limits of the source apply throughout. The published case study keeps the client anonymous, and it reports no performance metrics, stating that exact metrics are unavailable. Every project fact below comes from that case study. Each passage is labeled as what the build did, what Microsoft documents, or what architects should consider, so documentation never reads as a feature of the original project. Architects who want the source can read the full case study.
Enterprise Chatbot Architecture: The Brief Softwarium Received
The case study lists seven challenges, and each one shaped a later architecture decision:
- ■Varied formats. Content arrived as PDFs, Word documents, HTML pages, plain text, images, audio and video.
- ■No structure. The data had no predefined schemas, which made meaningful information hard to extract.
- ■Noise and duplicates. Irrelevant and redundant content degraded the embeddings built from it.
- ■Sensitive data. Internal information had to stay inside the organization, with no leakage outside it.
- ■Real-time accuracy. Customers needed accurate, contextually relevant answers in real time.
- ■Usability. Both audiences needed an intuitive interface.
- ■Internal security. Staff interactions with the internal chatbot required stringent security measures.
Two chatbots followed from two sets of priorities:
Customer support chatbot
Priorities: response speed and accuracy for external users.
Internal chatbot
Priorities: access control and data protection, because it handled sensitive documents, including IP-protected materials.
The architecture had to serve both audiences from shared components and keep internal content away from the customer side.
RAG Chatbot Azure AI Search: Five Decisions
An Azure RAG chatbot rests on five architecture decisions: how content is ingested, how it is retrieved, how audiences are separated, how queries are routed, and how answers are generated.

Pipeline as described in the Softwarium case study. Components are labeled only where the case study names them.
- 1.Ingest: convert varied, unstructured content into embeddings stored in Azure AI Search.
- 2.Retrieve: combine vector and keyword search to find relevant passages.
- 3.Separate: keep internal and external datasets apart through metadata tagging and filtering.
- 4.Route: send each query down the right path with rules applied before retrieval.
- 5.Generate: build prompts from retrieved content and answer with Azure OpenAI Service.
1. Ingest: Turn Varied Content Into Searchable Embeddings
In the build. The ingestion side had to accept PDFs, Word documents, HTML pages, plain text, images, audio and video, none of it with a predefined schema. Softwarium engineers converted this unstructured, variably formatted content into structured, context-rich data and stored it as vector embeddings in Azure AI Search, which served as the vector database for both chatbots. The case study treats noise and redundancy as a quality problem for those embeddings: irrelevant or duplicated passages weaken the semantic signal that retrieval depends on. It names no conversion tools, chunking method or embedding model, and this post adds none.
Current Microsoft guidance. For teams building multi-format data ingestion on Azure AI Search today, integrated vectorization is one documented option. It extends indexer-driven indexing with vector encoding and adds vector encoding at query time. A skillset splits content with the Text Split skill or another chunking strategy and calls an embedding model through an embedding skill, such as the Azure OpenAI embedding skill. Microsoft lists simpler code and less pipeline maintenance among the benefits, and notes that the Text Split skill is free. One rule applies whichever route a team takes: the vectorizer used at query time must match the embedding model that encoded the indexed content. The case study does not say whether the original build used integrated vectorization.
Architect guidance
Deduplication and noise removal belong before embedding, since a vector index reproduces the quality problems of the content it encodes. Metadata tagging also starts here: the audience tags that later separate datasets are assigned during ingestion. Data preparation beyond this single build, from inventory to indexing, is covered in from enterprise data silos to AI-ready data.
2. Retrieve: Hybrid Search and Retrieval Tuning
In the build. The build combined vector and keyword search in Azure AI Search, so the chatbots could match both the meaning of a question and exact product terms. The case study also describes semantic retrieval that finds the right context despite varied query phrasing. Softwarium engineers added a retrieval optimization approach of their own to use the vector database more fully.
The retrieval stages do different jobs:
Vector search
Retrieves passages by semantic similarity, so a question in everyday language can reach a passage written in product vocabulary.
Keyword search
Matches exact terms such as product names, identifiers and error codes, where similar meaning falls short.
Semantic ranking · optional
A separate stage. Where a team configures it, the semantic ranker reranks the candidates that retrieval returns.
Hybrid search runs the first two over the same content and merges them into one result set. Teams choose each capability independently, and not every Azure AI Search implementation uses all of them.
Architect guidance
For a support chatbot covering a portfolio of products, exact matches on product names and error codes carry as much weight as semantic similarity. Retrieval quality deserves its own test set, separate from answer quality, so a team can tell a retrieval miss from a generation error.
Current Microsoft guidance. The semantic ranker is billed by the number of semantic queries, and a dedicated search service is billed hourly per search unit for as long as it runs. The hidden cost of enterprise AI covers how these charges add up.
3. Separate: One Pipeline, Two Audiences
In the build. The customer support chatbot and the internal chatbot shared one pipeline. Metadata tagging and filtering separated internal and external datasets and tailored retrieval to each chat context, with metadata filters applied according to the use case. The internal chatbot handled sensitive documents, including IP-protected materials.
Anyone repeating the pattern needs to keep three functions distinct:
Metadata filtering
Narrows retrieval to documents whose field values match a filter, such as an audience tag.
Identity verification
Establishes who is asking, typically through Microsoft Entra sign-in.
Authorization enforcement
Decides which documents that verified identity may see and applies the decision to every query.
Current Microsoft guidance. In Azure AI Search, a security filter compares a string the application supplies, so the application must derive that string from a verified identity and apply the filter to every query. Microsoft's security trimming guidance states that the security principal carries no authentication or authorization of its own and functions only as a string in a filter expression. The application authenticates users, obtains trusted identity values, applies the filter to every query and prevents bypasses. Setting the identity field to non-retrievable only hides it from results and provides no field-level security.
Microsoft also documents identity-based document-level access. When the application attaches the user's Microsoft Entra token to a query, the service validates the token on each request and returns only documents the caller may read. Status as of Microsoft's November 23, 2026 update:
| Approach | Status | How access is checked |
|---|---|---|
| Security filters | Generally available | String the application supplies; suits custom identity systems |
| ACL and RBAC scopes (ADLS Gen2, Blob Storage) | Generally available, REST API 2026-10-01 | Caller's Entra token on each request |
| SharePoint in Microsoft 365 ACLs | Generally available, REST API 2026-10-01 | Caller's Entra token on each request |
| Microsoft Purview sensitivity labels | Preview | Entra token and Purview policies; single-tenant only |
| OneLake source permissions | Preview | Query-time OneLake authorization |
Preview capabilities need a production-readiness assessment before use. Permission changes reach results only after they synchronize to the index, and Microsoft states that refresh provides no immediate revocation.
Architect guidance
Metadata tagging alone cannot guarantee isolation. The application has to apply the correct filter to every query, or the system has to use a supported identity-based mechanism. The same identity questions arise for AI agents, covered in securing enterprise AI agents.
4. Route: Rules Before the Model
In the build. Every query entered through either the customer-facing chatbot or the internal chatbot. Rules-based routing then decided where the query should go before retrieval, and retrieval applied filters specific to the use case. The case study gives the full sequence and does not publish the rules:
Architect guidance
Query routing in a chatbot of this kind works best as deterministic code. Deterministic routing keeps each audience on its own data path and limits what the model has to decide. A rule selects the data path, and with it the filters, before any model call, so the model's reading of a question never decides which content may enter its context. Routing rules and access filters then form one control surface, and a change to either needs the same review.
5. Generate: Dynamic Prompts and Grounded Answers
In the build. Prompts were constructed dynamically from retrieved data, with constraints and instructions specific to each output. Azure OpenAI Service interpreted varied user intents and generated context-specific responses for customer support and internal queries. Answers reached users through the respective chat platforms, which the case study does not name. In this prompt construction for RAG, retrieval supplies the grounding content and the dynamic prompt sets the rules for using it.
Current options · not part of the original build
The case study does not mention the following controls. Architects building or hardening a similar system today can consider them.
Detect user prompt attacks and document attacks, meaning hidden instructions embedded in documents, emails or web pages that try to hijack the model session. For model API calls, Prompt Shields scan document content at the user input intervention point. For agents, scanning at the tool response intervention point is in preview. In a RAG chatbot, retrieved documents are one channel for such instructions.
Microsoft Foundry evaluators include RAG metrics for groundedness and relevance, which assess answers against the retrieved content. After launch, continuous evaluation scores a sample of production traffic, and scheduled evaluation runs test datasets to detect drift.
Evaluation design before production is covered in how to test AI agents.
When a Chatbot Build Needs Engineers
The case shows how much of a chatbot build sits around the model. The work spans content conversion pipelines for mixed formats, retrieval tuning across vector and keyword search, audience separation with filters enforced on every query, routing rules, prompt design, and evaluation before and after launch. Each part needs engineers who understand both Azure AI Search and the application code that enforces access.
Teams planning a similar build can hire .NET developers from Softwarium, as individual engineers or a dedicated development team. The business case for such a project is covered in measuring enterprise AI ROI.
Test the five decisions against your own content and audiences
Anna Moskalets, Head of Digital Enhancement
FAQ
Can one RAG pipeline serve both internal and external chatbots?
Yes. Softwarium built a customer support chatbot and an internal chatbot on one Azure AI Search and Azure OpenAI pipeline, using metadata tagging and filtering to keep internal and external datasets apart.
Are Azure AI Search filters a security control?
Security filters in Azure AI Search compare strings that the application supplies, so the application must derive them from a verified identity and apply them to every query. Microsoft also offers identity-based document-level access, which validates the caller's Entra token at query time; some of those options, including Purview sensitivity label enforcement, are in preview.
Why combine vector and keyword search in a chatbot?
Vector search finds passages with similar meaning, while keyword search matches exact terms such as product names and error codes. Softwarium's chatbot build combined both in Azure AI Search to improve the relevance of retrieved content.

