我怎样才能从沃森对话中调用网络服务?
how can I call a webservice from watson conversation?
我想在 watson-conversation 响应中调用网络服务,并向客户端显示来自网络服务的 returned 结果。
例如,如果我问 watson 这个问题:
2016-12-30纽约天气怎么样?
然后 watson 将调用与天气相关的网络服务并将参数城市(纽约)和日期(2016-12-30)传递给网络服务,网络服务将 return 消息 "It is sunny, temperature is 30"。
客户端会得到"It is sunny, temperature is 30"作为答案。
您可能想要查看使用 Watson Conversation and the Weather API 构建的天气机器人。
https://github.com/watson-developer-cloud/text-bot
我想在 watson-conversation 响应中调用网络服务,并向客户端显示来自网络服务的 returned 结果。
例如,如果我问 watson 这个问题: 2016-12-30纽约天气怎么样?
然后 watson 将调用与天气相关的网络服务并将参数城市(纽约)和日期(2016-12-30)传递给网络服务,网络服务将 return 消息 "It is sunny, temperature is 30"。
客户端会得到"It is sunny, temperature is 30"作为答案。
您可能想要查看使用 Watson Conversation and the Weather API 构建的天气机器人。 https://github.com/watson-developer-cloud/text-bot