# microsoft/botbuilder-samples

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/microsoft-botbuilder-samples).**

4,511 stars · 4,846 forks · HTML · MIT · archived

## Links

- GitHub: https://github.com/microsoft/BotBuilder-Samples
- Homepage: https://github.com/Microsoft/botframework
- awesome-repositories: https://awesome-repositories.com/repository/microsoft-botbuilder-samples.md

## Topics

`bot-framework` `bots` `dotnet` `javascript` `microsoft-congnitive-services` `python` `sdk` `typescript` `vsix` `yeoman`

## Description

This repository is a sample library and development kit for building conversational bots using the Bot Framework SDK. It provides a collection of task-focused code examples, templates, and implementation guides to help developers create interactive chat interfaces and dialogue flows.

The project focuses on integration patterns for the Bot Framework, offering specific examples for implementing custom middleware, identity authentication, and the connection of external bot skills. It includes reference implementations for multi-channel chatbot templates that allow a single agent to operate across multiple messaging platforms through a unified schema.

The library covers a broad range of conversational AI capabilities, including the orchestration of AI agents, the management of conversation state and context persistence, and the integration of rich user interface elements. It also provides guidance on natural language understanding, the use of knowledge bases, and the deployment of bots to cloud environments.

Resources and samples are provided for development across C#, JavaScript, and Python.

## Tags

### Artificial Intelligence & ML

- [Conversational Bot Development](https://awesome-repositories.com/f/artificial-intelligence-ml/conversational-bot-development.md) — Provides a comprehensive framework for developing conversational bots with interactive chat interfaces and dialogue flows. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [Conversational Agent Development](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-development-environments/conversational-agent-development.md) — Enables the development of custom conversational agents designed for multi-turn interactions and automated actions. ([source](https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/bf-migration-guidance))
- [Conversational AI Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/conversational-voice-interaction/conversational-ai-agents.md) — Implements conversational AI agents designed to engage in human-like dialogue and perform tasks.
- [Multi-turn Interaction Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/conversational-voice-interaction/conversational-ai-agents/conversational-turn-detection/multi-turn-interaction-managers.md) — Implements stateful management of multi-turn dialogues using sequential prompts to collect user information. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [AI Agent Orchestration](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-orchestration.md) — Orchestrates intelligent agents that combine NLU, custom skills, and knowledge bases to automate tasks.
- [AI Agent Orchestrators](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-orchestrators.md) — Enables merging different AI technologies and orchestrators into a single conversational agent. ([source](https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/bf-migration-guidance))
- [Bot Platforms](https://awesome-repositories.com/f/artificial-intelligence-ml/bot-platforms.md) — Provides the platform capabilities to link bots to various communication apps for multi-platform user interaction. ([source](https://learn.microsoft.com/en-us/azure/bot-service/))
- [Conversation State Management](https://awesome-repositories.com/f/artificial-intelligence-ml/context-aware-retrieval/context-aware-conversation-managers/conversation-state-management.md) — Provides systems for maintaining conversation state and dialogue history to preserve context. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [Multi-Turn Flow Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-state-management/conversation-flow-design/dialog-flow-engines/multi-turn-flow-managers.md) — Manages complex conversation flows through sequential prompts and state tracking across multiple user turns.
- [Conversation State Persistence](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-state-management/conversation-state-persistence.md) — Implements mechanisms for saving and restoring conversation context and state across multiple sessions. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))
- [Intent Extraction Systems](https://awesome-repositories.com/f/artificial-intelligence-ml/intent-extraction-systems.md) — Provides patterns for interpreting user text to extract intents and understand request goals. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))
- [Knowledge-Grounded Question Answering](https://awesome-repositories.com/f/artificial-intelligence-ml/knowledge-grounded-question-answering.md) — Enables the integration of knowledge bases to answer natural language queries via factual grounding. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [Multi-Platform Chatbot Development](https://awesome-repositories.com/f/artificial-intelligence-ml/multi-platform-chatbot-development.md) — Provides reference implementations for bot backends that operate across multiple messaging services via a unified schema.
- [Channel Message Normalizers](https://awesome-repositories.com/f/artificial-intelligence-ml/natural-language-interfaces/conversational-dialogue-systems/conversational-message-schemas/message-format-converters/channel-message-normalizers.md) — Normalizes messages from different communication channels into a unified internal format for consistent bot processing.
- [Consumer-Provider Skill Models](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-agent-skills/skill-primers/consumer-provider-skill-models.md) — Implements a consumer-provider model that allows primary bots to delegate specialized tasks to external skill bots.
- [Skill Export Providers](https://awesome-repositories.com/f/artificial-intelligence-ml/bot-platforms/skill-export-providers.md) — Allows developers to expose specialized bot functionality as skills that can be consumed by other bots. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-overview))
- [Bot Chat Interfaces](https://awesome-repositories.com/f/artificial-intelligence-ml/interactive-agent-chat-interfaces/bot-chat-interfaces.md) — Implements web chat interfaces to validate the functionality and connectivity of deployed bots. ([source](https://learn.microsoft.com/en-us/azure/bot-service/tutorial-provision-a-bot))

### Content Management & Publishing

- [Adaptive Card Renderers](https://awesome-repositories.com/f/content-management-publishing/static-site-document-generators/dynamic-documentation-generation/rich-content-rendering/adaptive-card-renderers.md) — Renders thumbnails, media, and adaptive cards with buttons to gather user input visually. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))

### Data & Databases

- [Conversation Context Persistence](https://awesome-repositories.com/f/data-databases/conversation-context-persistence.md) — Persists user and conversation state across independent request-response cycles using external storage providers.

### Networking & Communication

- [Multi-Channel Connectivity Adapters](https://awesome-repositories.com/f/networking-communication/bot-connectivity-endpoints/multi-channel-connectivity-adapters.md) — Connects bots to multiple communication channels by normalizing messages between a common schema and platform-specific requirements. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-manage-channels))
- [Bot Frameworks](https://awesome-repositories.com/f/networking-communication/bot-frameworks.md) — Ships a comprehensive library of task-focused code examples for building bots using the Bot Framework SDK.
- [Bot State Management](https://awesome-repositories.com/f/networking-communication/bot-session-protocols/bot-state-management.md) — Persists user data and conversation context across interactions to maintain a seamless dialogue experience.
- [Conversational Channel Integrations](https://awesome-repositories.com/f/networking-communication/conversational-channel-integrations.md) — Connects a single conversational agent to multiple messaging platforms through a normalized schema.
- [Multi-Channel AI Deployments](https://awesome-repositories.com/f/networking-communication/conversational-channel-integrations/multi-channel-ai-deployments.md) — Offers guided setup for deploying AI agents across multiple messaging channels. ([source](https://learn.microsoft.com/en-us/microsoft-365/agents-sdk/bf-migration-guidance))
- [Bot Skill Integrations](https://awesome-repositories.com/f/networking-communication/bot-skill-integrations.md) — Integrates external bot skills to extend the functional capabilities of a primary conversational agent. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [Rich Media Transmission](https://awesome-repositories.com/f/networking-communication/rich-media-transmission.md) — Implements the transmission of rich media including images, audio, and video across communication platforms. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))

### User Interface & Experience

- [Chat Channel Integrations](https://awesome-repositories.com/f/user-interface-experience/chat-channel-integrations.md) — Unifies multiple messaging platforms into a single bot instance through a normalized message stream. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))
- [Interactive Chat Components](https://awesome-repositories.com/f/user-interface-experience/rich-content-integrations/interactive-chat-components.md) — Implements structured cards and interactive visual components for displaying complex information in chats. ([source](https://learn.microsoft.com/en-us/azure/bot-service/))
- [JSON-Based Card Rendering](https://awesome-repositories.com/f/user-interface-experience/json-based-card-rendering.md) — Provides a system for rendering rich user interface elements as JSON-based adaptive cards across different platforms.

### Business & Productivity Software

- [Low-Code Platforms](https://awesome-repositories.com/f/business-productivity-software/low-code-platforms.md) — Offers guides and templates for building conversational experiences using low-code visual interfaces. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-overview))

### Development Tools & Productivity

- [Bot Interaction Emulators](https://awesome-repositories.com/f/development-tools-productivity/bot-interaction-emulators.md) — Provides a local emulator to interrogate messages and trace bot logic before publishing. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))

### DevOps & Infrastructure

- [Bot Cloud Deployments](https://awesome-repositories.com/f/devops-infrastructure/bot-cloud-deployments.md) — Provides guidance and tools for provisioning and publishing bots to cloud hosting environments. ([source](https://learn.microsoft.com/en-us/azure/bot-service/))
- [Bot Hosting & Deployment](https://awesome-repositories.com/f/devops-infrastructure/bot-hosting-deployment.md) — Provides guidance and tools for provisioning cloud resources to host bots for public accessibility.
- [Cloud or Self-Hosted Deployments](https://awesome-repositories.com/f/devops-infrastructure/feature-flags/cloud-or-self-hosted-deployments.md) — Supports hosting bots as web services on either public cloud or on-premise infrastructure. ([source](https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview-introduction))
- [Bot Web Server Deployments](https://awesome-repositories.com/f/devops-infrastructure/platform-as-a-service/bot-web-server-deployments.md) — Implements deployment patterns for hosting bots as web services in the cloud. ([source](https://learn.microsoft.com/en-us/azure/bot-service/tutorial-provision-a-bot))

### Education & Learning Resources

- [Conversational AI Guides](https://awesome-repositories.com/f/education-learning-resources/agent-implementation-guides/conversational-ai-guides.md) — Provides practical patterns for creating custom agents, multi-turn dialogs, and NLU flows.

### Graphics & Multimedia

- [Conversational UI Components](https://awesome-repositories.com/f/graphics-multimedia/rich-media-integration/conversational-ui-components.md) — Embeds structured cards and interactive visual components within chat interfaces to display complex information.

### Security & Cryptography

- [Identity and Access Management](https://awesome-repositories.com/f/security-cryptography/identity-access-management.md) — Implements managed identities to handle authentication and secure resource access for bot agents. ([source](https://learn.microsoft.com/en-us/azure/bot-service/tutorial-provision-a-bot))
- [User Authentications](https://awesome-repositories.com/f/security-cryptography/user-authentications.md) — Integrates identity providers and federated credentials to secure bot access and manage user identity. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))

### Software Engineering & Architecture

- [Bot Framework Patterns](https://awesome-repositories.com/f/software-engineering-architecture/bot-framework-patterns.md) — Provides implementation examples for custom middleware, identity authentication, and external skill integration.
- [Identity Federation](https://awesome-repositories.com/f/software-engineering-architecture/identity-federation.md) — Integrates federated identity providers to authenticate users and secure bot interactions using managed identity tokens.
- [Custom Middleware Implementations](https://awesome-repositories.com/f/software-engineering-architecture/middleware/custom-middleware-implementations.md) — Provides implementation examples for custom middleware to intercept and process bot traffic. ([source](https://cdn.jsdelivr.net/gh/microsoft/botbuilder-samples@main/README.md))
- [Request Interception Middleware](https://awesome-repositories.com/f/software-engineering-architecture/request-interception-middleware.md) — Provides middleware for intercepting and processing incoming and outgoing messages to handle logging and translation.

### Testing & Quality Assurance

- [Bot Emulators](https://awesome-repositories.com/f/testing-quality-assurance/bot-emulators.md) — Provides a local emulator to run and debug conversations before deploying to production. ([source](https://learn.microsoft.com/en-us/azure/bot-service/))
