简体   繁体   English

为了找出我正在用句子写的情绪,我该如何使我的聊天机器人成为现实?

[英]To find out which emotion I'm writing in sentence, How can I make my chatbot?

I'm trying to make a chatbot to ask about user's feeling on exhibition. 我正在尝试使聊天机器人询问用户对展览的感觉。

(with IBM watson-conversation workspace on web.) (使用Web上的IBM watson-conversation工作空间。)

First, question is 首先,问题是

It has 7 steps asking how user's feel on exhibition. 它有7个步骤,询问用户在展览中的感觉。

I can make this flow with direct answer for the question. 我可以直接回答这个问题。

However It doesn't work if user's answer was not what I expect. 但是,如果用户的答案不是我所期望的,那是行不通的。

It just goes back to the beginning. 它只是回到开始。

How can I make a dialog flow to not going back steps? 如何使对话流程不退一步?

Secondly 其次

In these steps, I want to know how user feels at the sentence. 在这些步骤中,我想知道用户对句子的感觉。

If I want to know that feelings at the same time, how do I make those? 如果我想同时了解那种感觉,我该如何表达?

I declare those word into entities, I can see them on the testing chatbot section. 我将这些词声明为实体,可以在测试聊天机器人部分中看到它们。

Thank you. 谢谢。

For Question 1: 对于问题1:

Conversation service works like that. 对话服务就是这样。 If it doesn't find the matching intent in the continuing flow, then it looks for that intent in the root node. 如果在连续流中找不到匹配的意图,那么它将在根节点中寻找该意图。 After that also if it doesn't find the intent, then it goes to the anything_else intent. 此后,如果它也没有找到该意图,那么它将转到everything_else意图。

One simple solution to your query is to give your users some options to choose from if it's possible. 一种简单的查询解决方案是为您的用户提供一些可能的选择。 That way you'll have more control over what user can enter and simultaneously you can maintain your flow. 这样,您将可以更好地控制用户可以输入的内容,同时可以保持流量。

And if that's not possible, then try to include all possible intents in the flow, where all sorts of variation from user text can trigger the intent and the flow is maintained. 并且,如果这不可能,则尝试在流中包括所有可能的意图,其中来自用户文本的各种变化都可以触发该意图,并保持流。

For Question 2: 对于问题2:

I believe you are asking about using Tone Analyzer service to identify user emotions for the texts that the user entered and you probably want to direct the user to a specific flow in Conversation depending upon what emotion was detected. 我相信您是在询问使用Tone Analyzer服务来识别用户输入的文本的用户情绪,并且您可能想根据检测到的情绪将用户定向到“会话”中的特定流程。

Keep one thing in mind that all Watson services are independent of each other, that means one service can't identify any other services that's connected to the same application. 请记住,所有Watson服务都彼此独立,这意味着一项服务无法识别连接到同一应用程序的任何其他服务。

So when user enter the text, first give that text to Tone Analyzer from the application and once you get the response, parse the emotions and give it accordingly to Conversation service, so that proper dialog can be detected. 因此,当用户输入文本时,首先将文本从应用程序提供给Tone Analyzer,一旦获得响应,就解析情绪并将其相应地提供给“对话”服务,以便可以检测到正确的对话框。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我怎样才能让我的聊天机器人先说话? - How can I make my chatbot talk first? 如何让我的聊天机器人只在下午 6 点到早上 8 点回答 - IBM Watson - How do I make my Chatbot to ONLY answer from 6pm to 8am - IBM Watson 我可以使用Watson Assistant开发其他格式(例如XML)的聊天机器人吗? - Can I develop a chatbot with Watson Assistant in other formats (such as XML)? IBM Watson Assistant:如何将聊天机器人集成到 Unity 中? - IBM Watson Assistant: How do I integrate a Chatbot into Unity? 如何在IBM Watson Conversation聊天机器人中集成图以响应查询? - How do I integrate graphs in response to query in IBM Watson Conversation chatbot? 在unity3d上,我的IBM chatbot无法识别顺序 - On unity3d, my IBM chatbot can't recognize sequential IBM Watson Assistant:我如何让聊天机器人重复响应,直到它识别出用户在说什么? - IBM Watson Assistant: How do I have the chatbot repeat a response until it recognizes what the user is saying? 我如何找到ASSISTANT_USERNAME和ASSISTANT_PASSWORD - How can i find ASSISTANT_USERNAME and ASSISTANT_PASSWORD 对于watson chatbot的持续对话,我该怎么办? - What do I have to do for the continuous conversation of watson chatbot? 如何查看我在其中一个R&R群集中消耗了多少空间? - How can I check how much space I have consumed in one of my R&R clusters?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM