![]() ![]() They can be used to shift simple, repetitive tasks, such as taking a dinner reservation or gathering profile information, on to automated systems that may no longer require direct human intervention. While you don't need to understand the REST service to use the SDK, understanding some of its features can be helpful.īots are apps that have a conversational interface. The SDK builds upon this REST API and provides an abstraction of the service so that you can focus on the conversational logic. The service defines a REST API and an activity protocol for how your bot and channels or users can interact. The Bot Framework SDK allows you to build bots that can be hosted on the Azure AI Bot Service. For more information, see how to welcome a user. However, a bot can respond in other ways to a received message activity, and it's common for a bot to respond to a conversation update activity by sending a message activity with a welcome message. In this example, the bot created and sent a message activity in response to the inbound message activity it had received. A channel might include both the bot and user in one conversation update activity, while another might send two conversation update activities. For example, some channels send conversation update activities first, and some send conversation update activities after they send the first message activity. It's up to each channel to implement the Bot Framework protocol, and how each channel does so might be a little different. Alternatively, the message activity might carry text to be spoken, suggested actions or cards to be displayed. In an echo bot example, the message activities are carrying simple text and the channel will render this text. The message activity carries conversation information between the parties. To distinguish these conversation update activities, check who is included in the members added property of the activity. For example, on starting a conversation with the Bot Framework Emulator, you might see two conversation update activities (one for the user joining the conversation and one for the bot joining). The Bot Framework Service sends a conversation update when a party joins the conversation. This diagram illustrates two activity types, conversation update and message, that might be exchanged when a user communicates with an echo bot. Before creating bots, it's important to understand how a bot uses activity objects to communicate with its users. Each channel can include additional information in the activities they send. The Bot Framework Service, which is a component of the Azure AI Bot Service, sends information between the user's bot-connected app and the bot. It hosts bots and makes them available to channels, such as Microsoft Teams, Facebook, or Slack. Azure AI Bot Service is a cloud platform. A bot is an app that users interact with in a conversational way, using text, graphics (such as cards or images), or speech.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |