New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make several outputs in onIntent #1181
Comments
this sounds like a very custom requirements. In fact you could design the answers in a way that you can split them ... like use a newline character and adjust the answer logic that answer is splitted on newline |
Thank you, but it didn't help. It works in directline connector, but not in onIntent |
The code you added to the initial post is just changing the answer given back. I understood you want to have "two answers". The whole system right now is design to return "one string as answer" ... so the only way you have is to use the respone and then "split" it and return two answers when doing the output. |
Hello, yes, i tried it, but it didn't work unfortunately |
If you could share code this would maybe bringt some more light into the why not? |
Hello, i can't find way how to make 'output.answer' do this:
P: hello
Bot: Good
Bot: Morning!
Is there possibility to realise it and how?
nlp.onIntent = async (nlp, input) => {
try {
if (input.intent === 'greetings.hello') {
The text was updated successfully, but these errors were encountered: