Jaa


Bot Framework REST APIs

APPLIES TO: SDK v3

Most Bot Framework bots are built using the Bot Framework SDK, which organizes your bot and handles all conversations for you. An alternative to using the SDK is to send messages directly to the bot using a REST API.

Build a bot

By coding with Bot Framework REST APIs, you can send and receive messages with users on any channel configured in your bot's Azure Bot Service registration.

Tip

The Bot Framework provides client libraries that can be used to build bots in either C# or Node.js. To build a bot using C#, use the Bot Framework SDK for C#. To build a bot using Node.js, use the Bot Framework SDK for Node.js.

Refer to the Azure Bot service docs to learn more about building bots using the service.

Build a Direct Line client

Most channels such as Facebook, Teams, or Slack provide clients, but with Direct Line you can enable your own client application to communicate with your bot. Web Chat is an open source example of a Direct Line client, and it can be used as-is or modified or learned from when making your own client. The Direct Line API implements an authentication mechanism that uses standard secret/token patterns and provides a stable schema, even if your bot changes its protocol version. To learn more about using the Direct Line API to enable communication between a client and your bot, see Key concepts.

Direct Line clients can be in different languages and locations (e.g. a desktop app instead of a web page). For more information, see About Direct Line.