Key concepts in the Bot Builder SDK for .NET

Connector

Bot Framework Connector cung cấp một single REST API cho phép bot có thể giao tiếp thông qua nhiều kênh (channel) như Skype, Email, Slack v.v... Nó giúp việc giao tiếp giữa bot và user được thuận tiện hơn bằng việc chuyển tiếp messages từ channel đến bot và từ bot đến channel.
Trong Bot Builder SDL for .NET, Connector library giúp cho phép truy cập đến Connector.

Activity

Connector sử dụng một Activity object để truyền thông tin qua lại giữa bot và channel (user). Loại activity phổ biến nhất là message, nhưng có các loại activity khác mà có thể được sử dụng để giao tiếp bằng các lại thông tin khác nhau từ bot hoặc channel.
Xem chi tiết về Activities trong Bot Builder SDL for .NET ở Activities overview.

Dialog

Khi bạn tạo một bot sử dụng Bot Builder SDL for .NET, bạn có thể sử dụng dialogs để mô hình một cuộc hội thoại (conversation) và quản lý conversation flow. Một dialog có thể bao gồm các dialog khác để tối đa hoá việc sử dụng lại, và một dialog context duy trì việc stack của các dialog mà đang active trong conversation tại mọi thời điểm. Một conversation gồm các dialog là portable accross computers, điều này làm việc implementation bot vào scale có thể thực hiện được.
Trong Bot Builder SDK for .NET, Builder library uilder library cho phép quản lý các dialogs.

FormFlow

You can use FormFlow within the Bot Builder SDK for .NET to streamline of building a bot that collects information from the user. For example, a bot that takes sandwich orders must collect several pieces of information from the user such as type of bread, choice of toppings, size, and so on. Given basic guidelines, FormFlow can automatically generate the dialogs necessary to manage a guided conversation like this.

State

The Bot Builder Framework enables your bot to store and retrieve state data that is associated with a user, a conversation, or a specific user within the context of a specific conversation. State data can be used for many purposes, such as determining where the prior conversation left off or simply greeting a returning user by name. If you store a user's preferences, you can use that information to customize the conversation the next time you chat. For example, you might alert the user to a news article about a topic that interests her, or alert a user when an appointment becomes available.

For testing and prototyping purposes, you can use the Bot Builder Framework's in-memory data storage. For production bots, you can implement your own storage adapter or use one of Azure Extensions. The Azure Extensions allow you to store your bot's state data in either Table Storage, CosmosDB, or SQL. This article will show you how to use the in-memory storage adapter to store your bot's state data.
Important
The Bot Framework State Service API is not recommended for production environments, and may be deprecated in a future release. It is recommended that you update your bot code to use the in-memory storage adapter for testing purposes or use one of the Azure Extensions for production bots.
For details about managing state using the Bot Builder SDK for .NET, see Manage state data.

Naming conventions

The Bot Builder SDK for .NET library uses strongly-typed, Pascal-cased naming conventions. However, the JSON messages that are transported back and forth over the wire use camel-case naming conventions. For example, the C# property ReplyToId is serialized as replyToId in the JSON message that's transported over the wire.

Security

You should ensure that your bot's endpoint can only be called by the Bot Framework Connector service. For more information on this topic, see Secure your bot.

https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-concepts

Bên dưới là tư liệu làm đồ án. 



Nhận xét