Cloud service · Azure · Updated

Azure AI Bot Service - Azure AI Bot Service is a managed service for registering conversational bots and connecting them to messaging channels and custom applications.

In short

Azure AI Bot Service provides channel connectivity and message exchange between users and bot applications through the Bot Framework activity protocol. Engineers implement and host the bot application separately, integrating language understanding, search, business APIs, identity, and persistent storage as required.

Cloud Services Hub →

8 key features of Azure AI Bot Service

01
Bot registration and endpoint configuration

Use an Azure Bot resource to configure the bot identity, messaging endpoint, and channel connections. Deploy and scale the application that handles messages independently of this registration.

02
Managed channel connectivity

Connect a bot application to supported channels without implementing a separate messaging transport for each one. Validate channel-specific behavior for cards, attachments, authentication, and conversation events.

03
Direct Line and Web Chat

Expose a bot through a custom client using Direct Line or embed Web Chat in a website. Use a backend token endpoint so long-lived Direct Line secrets are not exposed to users.

04
Activity-based messaging protocol

Exchange messages and conversation events through a common activity schema over HTTPS. Use the Connector APIs to send replies and handle channel-specific information where necessary.

05
Authenticated bot communication

The Bot Connector uses JWT bearer tokens to authenticate message exchange. Configure the bot application's identity and request validation correctly, and implement end-user authorization separately for protected business operations.

06
Encryption and customer-managed keys

Service data is encrypted at rest by default, with customer-managed key options for applicable persisted data. Key Vault access must remain available; revoking the encryption key can prevent messaging and access to bot configuration.

07
Regional bot configuration

Regional bot resources support geographic processing requirements for data handled within Azure AI Bot Service. Align application hosting and dependencies with the same requirements because regional bot configuration does not constrain external channels or other services.

08
Azure Policy controls

Built-in policies can audit or deny bot configurations that lack a valid HTTPS endpoint or required customer-managed encryption. Apply these controls at subscription or management-group scope to enforce deployment standards.

Where Azure AI Bot Service is used

  1. 01
    Customer self-service support

    Provide a website bot that answers common questions, collects troubleshooting details, and queries support systems. Implement escalation to an agent through the application or contact-center integration, including rules for transferring conversation context.

  2. 02
    Internal employee assistance

    Connect an employee-facing bot to Microsoft Teams for IT support, policy lookup, and service requests. Authenticate employees and enforce downstream permissions before returning internal information or submitting changes.

  3. 03
    Guided transactional workflows

    Collect information for reservations, appointment requests, or account updates through a multi-turn conversation. Validate inputs and require confirmation before executing consequential operations through business APIs.

  4. 04
    Enterprise knowledge retrieval

    Use Azure AI Search to locate relevant documentation and return excerpts or grounded generated answers. Apply document-level authorization during retrieval and provide references so users can inspect the underlying material.

  5. 05
    Custom application messaging

    Add a conversational interface to a mobile app or customer portal using Direct Line. Keep client authentication, token issuance, session handling, and backend authorization under application control.

How Azure AI Bot Service is priced

Free tier

The F0 tier provides a limited monthly allowance for premium-channel messages, including Direct Line and Web Chat. Standard-channel messaging has no Azure Bot Service message charge, but hosting and dependent services remain separately billable.

Standard consumption pricing

The S1 tier meters premium-channel messages under the published pricing schedule. Estimate both inbound and outbound message traffic rather than treating an entire conversation as a single billable message, and check current allowances and pricing before deployment.

Separately billed application dependencies

Compute hosting, database storage, search, language processing, model inference, telemetry, and other integrations are charged by their respective services. Channel providers can also impose their own charges or usage requirements.

Services Azure AI Bot Service works with

A common architecture separates channel connectivity from application execution. Azure AI Bot Service forwards activities to an HTTPS endpoint hosted on Azure App Service. The application validates the request, resolves the conversation and user context, loads required state from Azure Cosmos DB, and calls business APIs. Azure Key Vault holds credentials that cannot be replaced with managed identity authentication.

For knowledge-oriented bots, the application can query Azure AI Language for intent recognition or Azure AI Search for relevant documents. A generative implementation adds Azure OpenAI to compose an answer from retrieved content. Retrieval must respect the user's permissions, and application code must authorize every consequential action independently of model output. Search results and generated answers must not become an alternative path around existing data-access controls.

Send application and dependency telemetry to Azure Monitor through Application Insights, using correlation identifiers without logging unnecessary conversation content. Align hosting, storage, AI endpoints, and telemetry locations with data-residency requirements. Evaluate each external channel separately, because the bot resource's regional and encryption settings do not automatically apply to every component in the message path.

App Service

Host the bot's HTTPS messaging endpoint on Azure App Service and configure that URL in the Azure Bot resource. For example, deploy an application with an /api/messages route, then configure identity, application settings, health monitoring, and scaling independently of channel registration. Network restrictions must still allow the required Bot Service traffic to reach the endpoint.

Azure Language in Foundry Tools

Call conversational language understanding from the bot application to classify user intent and extract entities. For example, identify a request to change a delivery address and extract the order identifier before asking for missing information. Language predictions do not execute actions; application code must validate inputs, authorize the user, and call the appropriate API.

Azure Cosmos DB

Persist conversation state and application data in Azure Cosmos DB when the bot must survive restarts or scale across multiple instances. For example, store the current step of a reservation workflow using a partitioning strategy appropriate to the application's conversation or tenant boundaries. Implement concurrency handling and retention policies, and avoid persisting complete transcripts unless required.

Azure Key Vault

Use Azure Key Vault for application secrets and, when configured, customer-managed encryption keys for the bot resource. For example, let the hosting application retrieve an external API credential through its managed identity instead of embedding it in source code. Customer-managed encryption requires the documented key permissions and recovery settings, including soft delete and purge protection.

Azure Monitor

Instrument the bot application with Application Insights to investigate request latency, dependency failures, and exceptions. For example, correlate a failed order-status response with a timeout in the order-management API. Configure alerts and redact message bodies, tokens, and personal information before sending telemetry.

Azure OpenAI in Foundry Models

Call an Azure OpenAI model from the bot application when the conversation requires generated responses. For example, retrieve authorized policy passages from Azure AI Search and ask the model to summarize them with references. Keep tool execution behind explicit application authorization, treat retrieved content as untrusted input, and handle model rate limits and failures.

Azure Blob Storage

Bots registered with Azure AI Bot Service can use the Bot Framework Blob Storage provider to persist user and conversation state between turns. The framework also provides a Blob Storage transcript store for recording conversation activities.

Azure Communication Services

Azure AI Bot Service connects to an Azure Communication Services resource through its Chat channel. The connection gives the bot a Communication Services identity so a chat app can add it to a thread as a participant that receives and replies to messages.

Azure DNS

Azure AI Bot Service can use Azure Private DNS zones to resolve supported Bot Service endpoints to private IP addresses. For example, a client in a linked virtual network can resolve the Direct Line endpoint through its private endpoint.

Azure Firewall

Azure AI Bot Service publishes the AzureBotService service tag for use in network rules. An Azure Firewall policy can use the tag to allow outbound traffic to Bot Service without maintaining a list of its IP ranges.

What is Azure AI Bot Service

2 min read

Azure AI Bot Service provides the registration, configuration, and channel connectivity needed to expose a conversational application to users. An Azure Bot resource identifies the bot and associates it with a messaging endpoint and enabled channels. The bot application processes incoming messages, maintains conversation logic, calls downstream services, and generates replies. Creating the Azure Bot resource does not, by itself, deploy application code or provide an AI model.

A typical deployment hosts the bot application on Azure App Service and registers its HTTPS messaging endpoint with Azure AI Bot Service. The Bot Framework Service, a component of Azure AI Bot Service, exchanges activities between the application and configured channels. Activities represent messages, conversation updates, and other interaction events. The Connector APIs use JSON over HTTPS and JWT bearer authentication. The application must validate inbound requests rather than treating its messaging endpoint as an unauthenticated webhook.

Engineers can connect bots to supported messaging channels such as Microsoft Teams or embed a conversational interface in a website using Web Chat. Direct Line provides an API for custom web and mobile clients. Channel capabilities differ, so cards, attachments, conversation events, and authentication flows require testing on each target channel. Keep Direct Line secrets on a trusted backend and issue client tokens rather than exposing long-lived secrets in browser or mobile application code.

Conversation intelligence is an application-level integration. Azure AI Language can identify intents and entities, while Azure AI Search can retrieve relevant enterprise content. Generative responses require a separate model service and application logic for retrieval, prompt construction, authorization, and response validation. Guided forms and deterministic workflows remain useful when actions require predictable validation or explicit user confirmation.

Production applications should persist necessary conversation and user state in an external store rather than relying on process memory. Design state updates for concurrent requests, prevent duplicate business operations when messages are retried, and apply timeouts to downstream dependencies. Instrument the application to correlate channel activity with API calls and failures, while redacting credentials and sensitive conversation content.

Azure AI Bot Service encrypts persisted service data at rest and supports customer-managed keys for applicable stored data through Azure Key Vault. Transiently stored Direct Line and Web Chat messages use Microsoft-managed encryption keys. Regional bot configuration governs the service's own processing boundaries, not the complete application: hosting, storage, AI services, telemetry, and external channels must be assessed separately. Budget for application hosting and dependent services in addition to applicable channel usage charges.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.