Get the App
SLTechnology News&Howtos  ›  Servers  › 

How Slack creates interactive buttons in relaxation

Shulou Source: shulou.com Published: 2022-05-31 17:21:07 10月02日 Update

This article focuses on "how Slack creates interactive buttons in relaxation". Friends who are interested may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor learn how Slack creates interactive buttons in relaxation.

You can define buttons in the section of the templatedomain file, for example:

Slots: game: type: texttemplates: utter_ask_for_game:-text: "Would you like to play a game?" Buttons:-title: "Chess" payload:'/ choose {"game": "Chess"}'- title: "Falken's Maze" payload: "/ choose {" game ":" Falken\ 's Maze "}"-title: "Thermonuclear War" payload:'/ choose {"game": "Thermonuclear War"}'

This is an example of Slack, as shown in the Rasa Core documentation. It asks users, "do you want to play games?" And provide three buttons for three different games. Depending on the button selected by the user, choose uses different slot values to trigger the intent. Depending on whether the slot value is set, you can follow different story paths or trigger custom actions. Note that you can choose different slot types, such as categorical. With this categorical type, you can use different stories according to the value of the slot.

At this point, I believe you have a better understanding of "how Slack creates interactive buttons in relaxation". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Buttons different slots relaxation interactive creative content story user type learning selection practical deeper three value interest practicality actual intention Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Redmi Linux macOS vpn