我是Watson Assistant
的新手。我正在处理他们的nodejs car_workspace
我的要求是捕获员工编号并通过Chatbot发送有关该员工的信息。
So first I need to capture the employee num in the nodejs code.
And then get the required data from a predefined array.
And finally, pass this to the Chabot for the requestor to see.
请帮忙。
答案 0 :(得分:1)
您从chatbot捕获的员工编号可以存储在上下文变量中,然后传递给应用程序端以获取动态数据。下面的文档将帮助您开始通过维护状态来构建客户端应用程序 https://console.bluemix.net/docs/services/conversation/develop-app.html#building-a-client-application
您还可以对外部应用程序或服务进行编程调用,并在对话框中进行处理时获取结果。https://console.bluemix.net/docs/services/conversation/dialog-actions.html#dialog-actions
请参阅Watson Assistant文档中列出的示例应用,以便更好地了解它https://console.bluemix.net/docs/services/conversation/sample-applications.html#sample-apps https://developer.ibm.com/code/patterns/create-cognitive-retail-chatbot