Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 2.79 KB

ACTIVITYTYPES.md

File metadata and controls

27 lines (19 loc) · 2.79 KB

What Activity Types does Web Chat support?

First, see the Activities overview documentation to learn about what activities types are available in Bot Framework.

This document will discuss what Bot Framework activity types that Web Chat is prepared to handle as a client. To see documentation on which activity types are supported by different channels, please see the Activities by Channel discussion.

Although the Direct Line channel and Web Chat channel support the following activity types, Web Chat is only designed to support the following activities:

Direct Line Channel supported Activity Channel ↔️ Bot Activity Activity.type
message ✔️
conversationUpdate ✔️
event ✔️
event.TokenResponse ✔️
endOfConversation
typing ✔️
installationUpdate ✔️
  • installationUpdate, event.TokenResponse and conversationUpdate are activities sent between the bot and the channel. The channel does not send these events to Web Chat.
  • endOfConversation is not currently handled or rendered by Web Chat. See the Web Chat conversation on Activity Types to learn more.

When developing your bot's web page, you may discover that the bot sends an activity type that needs to be supported by Web Chat. Luckily, it is possible to create renderers for different activities through the activityMiddleware. To learn more, check out the following tutorials:

  1. Customize Web Chat with Reaction Buttons
  2. Customize Web Chat with GitHub Stargazer Components

Note: We do not recommend creating custom activity types. Instead, please use the event activity type.