Not all of our agents live in the browser. For our corporate clients, the natural place for an assistant to "live" is Microsoft Teams, where the team already works every day. In this article we walk through how we built a Teams agent whose brain is a LangGraph agentic flow designed to be deterministic, deployed entirely on Azure and within the West Europe region.
The Challenge: Agents That Are Reliable, Not Unpredictable
A useful agent for a business cannot behave differently every time it is asked the same thing. Reliability is a requirement, not a luxury. That is why our obsession when building agents is determinism: the decision flow should be explicit, auditable and reproducible, with the language model's creativity confined to the points where it genuinely adds value.
We bring to the world of agents the same discipline we apply in DevOps: controlled steps, explicit state and nothing left to chance.
The Core Piece: A State Graph with LangGraph
Instead of a "loose" agent that freely decides what to do on each turn, we model the logic as a state graph with LangGraph. Each node in the graph is a well-defined step (interpret the request, retrieve data, call the model, validate, respond), and the transitions between nodes follow explicit rules.
This gives us several guarantees:
- Predictable paths: the flow always traverses the graph the same way under the same conditions.
- Explicit state: at every moment we know where the conversation stands and with what data.
- Control points: we can validate the model's output before acting, instead of trusting it blindly.
- Traceability: every execution leaves a clear trail of why it made each decision.
The language model takes part where it adds value (understanding natural language, drafting text), but framed within the graph, not in charge of everything. That is the balance we look for: the power of the LLM, the control of engineering.
The Deployment: Everything on Azure, Everything in West Europe
The runtime architecture is designed to be controlled and contained within a single region, West Europe, for consistency, latency and compliance. These are the pieces:
Azure App Service: Where the LangGraph Flow Runs
The LangGraph agentic flow runs as an application on Azure App Service. This is where the graph logic lives: it receives requests, traverses the nodes, calls the model when needed and composes the response. App Service gives us a managed, scalable environment that is easy to operate and consistent with the way we work with CI/CD.
Azure Bot Service: The Bridge to Teams
Between Microsoft Teams and our App Service sits Azure Bot Service. Its role is to act as a communications bridge: it receives the messages users type in Teams and forwards them to our App Service's messaging endpoint; and in the other direction, it returns to Teams the responses the flow generates. Thanks to this, we do not have to implement Teams messaging ourselves: Azure Bot Service handles that channel in a standard, secure way.
Put another way: the user talks in Teams, Azure Bot Service translates and routes, and the LangGraph flow in App Service does the work.
Azure AI Foundry: The Managed Language Model
The LLM the flow uses is deployed in Azure AI Foundry, also in West Europe. This lets us consume the model as a managed service within the same Azure environment, with control over deployment, quotas and governance, while keeping data within the region.
A Message's Journey, from Start to Finish

To make it clear (and as the architecture diagram accompanying this article shows), this is the complete journey of an interaction:
- A user writes a message to the agent in Microsoft Teams.
- Azure Bot Service receives the message and routes it to the App Service messaging endpoint.
- In the App Service, the LangGraph flow starts: it interprets the request and traverses the state graph.
- When it needs language capabilities, the flow calls the LLM deployed in Azure AI Foundry.
- The graph validates and composes the response in a controlled way.
- The response travels back through Azure Bot Service to the Teams conversation.
The whole journey, from the App Service to the LLM in Foundry, takes place within West Europe.
Why This Architecture
This solution reflects how we understand AI at Fastex:
- Determinism first: the graph is in charge; the model contributes within clear limits.
- Managed Azure services: App Service, Bot Service and Foundry fit together as standard pieces that are easy to operate and govern.
- A single region: West Europe for everything, for latency, consistency and control of the data.
- Natural integration: the agent appears where the team already works, in Teams, without asking them to switch tools.
The result is a corporate agent you can trust: integrated into Teams, powerful thanks to the LLM, but governed by an engineered flow that knows exactly what it is doing at every step.
Want a reliable, governed AI agent in Teams, deployed in your own Azure? At Fastex we design this kind of architecture from start to finish. Get in touch through the contact form.