Create a button to minimize chat window

To create a button to minimize the chat window, you have to do the setting below.

■Set rules to run script in Chatbot+.
■Add a choice [Minimize the chat window] to the existing chatbot.

Set rules to run script in Chatbot+

(1) Click on the setting button on the upper right of the management page.


(2) Click on [Chat]>[Function]>[Chatbot+] on the left side of the screen.


(3) Click on [Add parts].


(4) Enter [Part's name] and [Details].
※Leave the box at the top right [ID] empty, it will automatically be filled when Chatbot+ is created.


(5) In the section [Rule], click on [Add rules].


(6) In the section [Display rule], click on [User's Remark] from the first pull down, enter [Minimize chat window] in the box below, and click on [Match] from the third pull down.


(7) In the section [Action], click on [Run script] from the pull down.


(8) Enter the script below in the box.

ChatplusScript.closeChat();

To end the chat when [Minimize chat window] was clicked, do the additional setting below.
(1) Click on [Add actions].


(2) Click on [Status] from the first pull down, and click on [End] from the second pull down.


(9) Click on [Update].

Add a choice [Minimize chat window] to the existing chatbot

(1) Click on the setting button on the upper right of the management page.


(2) Click on [Chat]>[Function]>[Chatbot] on the left side of the page.


(3) Click on [Edit] of the chatbot you want to add choice.


(4) Click on [Add choices].


(5) Enter [Minimize chat window] in the box appeared.


(6) Click on [Update].

シェアする

フォローする

  • RSSを