简体   繁体   中英

How do I make my Chatbot to ONLY answer from 6pm to 8am - IBM Watson

I've made a chatbot in IBM Watson with the graphic tools (not coding so far), but there's no option to make it have a schedule. Would you guide me using the basic plan?

Create a top node called input and under If assistant recognizes

  • Add now().before('18:00:00') and now().after('8:00:00') - Time is in 24 hour format
  • Assistant responds --> Text --> We are Open only between 6 PM and 8 AM everyday
  • Then assistant should --> Skip user input

在此处输入图像描述

Add another node called welcome and under welcome

  • Assistant responds --> Text --> Welcome, how can I help?

在此处输入图像描述

Check the Expression language documentation to understand more about the use of now()

Once done, click Try it to see the chatbot to respond only between the times mentioned

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM