Guide people to their goals with interactivity

From text-based messages to card-based graphical user interfaces, Chat bots support interactivity in many ways.

Follow these guidelines to learn how best to use Chat bot features to implement Chat bot interactivity.

Card messages

Cards are UI elements that can contain both interactive and static widgets such as text, images, and buttons that bots can send to users and spaces. If your bot needs to gather information from users, present detailed information, or guide users to take a next step, they should send a card message.

Pollster bot uses a card message to run polls in Chat spaces:

Running a poll in a Chat space with a card message

To learn more about cards, refer to Create interactive cards and card messages.

Dialogs

Dialogs are windowed, card-based interfaces that your bot can open to interact with a user. In dialogs, multiple cards can be strung together sequentially, which helps users complete multi-step processes, like filling in form data.

Contact bot starts a dialog to gather contact details from a user who issues the /addContact command:

Gathering details about a new contact from a user with a dialog

To learn more about dialogs, refer to Use dialogs.

Slash commands

Slash commands let you register and advertise specific commands that users can give your bot by typing a command that begins with a forward slash (/), like /help.

Gathering details about a new contact from a user with a dialog

To learn more about slash commands, refer to Support slash commands.

Notifications

Your Chat bot can @mention specific users or all users in a space, but before you mention a single user, and especially before you mention all users in a space, you should consider whether or not it's really necessary, and err on the side of not @mentioning people.

Mentioning single users causes them to receive a notification and interrupts whatever else they're doing. Mentioning all users in a space sends a notification to everyone in the space. Mention people too often, and they will become annoyed with your Chat bot and start to view it as spam.

It is OK to mention users for very important or time-sensitive reasons. For example, Scrum bot @mentions a space full of software developers to notify them that code freeze is approaching and to give them the chance to say they need a bit more time before the deadline:

Justified notification

On the other hand, Pizza bot mentions a customer directly to thank them; which is polite, but not notification-worthy:

Unjustified notification

To learn more about notifications, refer to Messages that mention users.