desmarchris / docs-bot

Conversation bot using Discovery for long tail questions about Watson Conversation
9 stars 8 forks source link

Discovery is not working #1

Open pradeepkmj opened 7 years ago

pradeepkmj commented 7 years ago

Hi .. I have created the application using this code and conversation is working but discovery is not working.. when I cal discovery from discovery it's not showing any results.. I have added discovery intent and questions in conversation. Please let me know if I have missed any other steps.

desmarchris commented 7 years ago

Hi @pradeepkmj, do you have any error message you can share? Also, have you included all of the Discovery credentials?

pradeepkmj commented 7 years ago

hi, Yes i have included discovery details! There are no errors, when i enter a discovery related question ,it wont display any message.

desmarchris commented 7 years ago

@pradeepkmj I just tried it from scratch and it's working for me, so I think it may be the format of your Discovery docs. Can you share an example of what you are ingesting?

pradeepkmj commented 7 years ago

hi,

In conversation i have added the discovery intent and questions and in dialog i have discovery dialog node, please let me know if anything else i have to add in conversation workspace, i connected to discovery and tested using postman its working.

desmarchris commented 7 years ago

@pradeepkmj That's all you need for Conversation, so it's likely the format your data is in. Can you share an example of the doc you are ingesting, and / or the response you're seeing in Postman?

AlaGarali commented 6 years ago

Dear @pradeepkmj, In my chatbot application, Discovery is not working. In discovery.js, sendBoth.js and sendEntities.js files, I fixed the error console.log(data.results[0].text) by console.log(data.results.text) but no result is shown as mentioned in this picture (result.text ==> UNDEFINED):

image1

This figure shows that, in the discovery service, the results.text variable is not NULL or Undefined

image2

Can you help me please !!!