• Resolved ranky1337

    (@ranky1337)


    I am having some issues with the option fields, as the bot doesn’t deliver the expected answer for the option fields. Basically I have an intent #test and I declared my dialog like this:

    "options": [{ 
     "label": "test", 
     "value": { 
       "input": { 
          "text": "test" 
       } 
      } 
    }]

    Now everything works as expected in the watson backend. On my website I have the watson assistant wordpress plugin installed and it’s not working correctly there. When i choose the option TEST and take a look at the response, the intend is been recognized but the output is weird. He always gets into the anything_else node. Anyone an idea why it’s behaving like that?

    • This topic was modified 6 years, 1 month ago by ranky1337.
    • This topic was modified 6 years, 1 month ago by ranky1337.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author intelahelp

    (@intelahelp)

    Hello, do you still have this issue?

    Thread Starter ranky1337

    (@ranky1337)

    Yes I do. Any suggestions?

    Plugin Author intelahelp

    (@intelahelp)

    Could you, please, provide the relevant workspace exported as a JSON? It can be exported with “Download as JSON” context menu at your Watson Assistant Workspaces dashboard.

    Thread Starter ranky1337

    (@ranky1337)

    sure. It’s just a test workspace.

    {“name”:”test”,”intents”:[{“intent”:”test”,”examples”:[{“text”:”test”}],”description”:””},{“intent”:”sendmail”,”examples”:[{“text”:”send mail”}],”description”:”send mail”}],”entities”:[],”language”:”de”,”metadata”:{“api_version”:{“major_version”:”v1″,”minor_version”:”2018-07-10″}},”description”:”test”,”dialog_nodes”:[{“type”:”event_handler”,”output”:{},”parent”:”slot_7_1538658136481″,”event_name”:”focus”,”dialog_node”:”handler_9_1538658136481″,”previous_sibling”:”handler_8_1538658136481″},{“type”:”event_handler”,”parent”:”slot_7_1538658136481″,”context”:{“answer”:”@answer”},”conditions”:”@answer”,”event_name”:”input”,”dialog_node”:”handler_8_1538658136481″},{“type”:”slot”,”parent”:”Willkommen”,”variable”:”$answer”,”dialog_node”:”slot_7_1538658136481″,”previous_sibling”:”node_3_1540455389320″},{“type”:”standard”,”output”:{“generic”:[{“values”:[{“text”:”bestanden”}],”response_type”:”text”,”selection_policy”:”sequential”}]},”parent”:”Willkommen”,”metadata”:{},”conditions”:”#test”,”dialog_node”:”node_3_1540455389320″},{“type”:”standard”,”title”:”Andernfalls”,”output”:{“generic”:[{“values”:[{“text”:”Ich verstehe Sie nicht.”}],”response_type”:”text”,”selection_policy”:”sequential”}]},”context”:{“private”:””},”metadata”:{},”conditions”:”anything_else”,”dialog_node”:”Andernfalls”,”previous_sibling”:”Willkommen”},{“type”:”standard”,”title”:”Willkommen”,”output”:{“generic”:[{“values”:[{“text”:”guten tag. ich bin der servicebot der vlv”}],”response_type”:”text”,”selection_policy”:”sequential”},{“time”:1000,”typing”:true,”response_type”:”pause”},{“title”:””,”options”:[{“label”:”test”,”value”:{“input”:{“text”:”test”}}},{“label”:”bla”,”value”:{“input”:{“text”:”bla”}}}],”response_type”:”option”}]},”metadata”:{“fallback”:”leave”},”conditions”:”welcome”,”digress_in”:”does_not_return”,”dialog_node”:”Willkommen”,”digress_out”:”allow_all”}],”workspace_id”:”071ed674-4bc0-4da1-b36e-c5b90ae5fa9a”,”counterexamples”:[],”system_settings”:{“tooling”:{“store_generic_responses”:true},”disambiguation”:{“prompt”:”Meinten Sie:”,”none_of_the_above_prompt”:”Nichts von dem oben genannten”},”human_agent_assist”:{“prompt”:”Meinten Sie:”}},”learning_opt_out”:false}

    Plugin Author intelahelp

    (@intelahelp)

    It looks like the issue is that “#test” dialog node is a child of “Willkommen” dialog node. If “bestanden” is an expected reply on “test” intent, then you can place the “#test” dialog node at the same level as “Willkommen” node is:

    1) Open “#test” dialog node’s context menu and click “Move”;
    2) Highlight the “Willkommen” node, and choice the “Below node” option.

    Following is the updated JSON:

    {"name":"test","intents":[{"intent":"sendmail","examples":[{"text":"send mail"}],"description":"send mail"},{"intent":"test","examples":[{"text":"test"}],"description":""}],"entities":[],"language":"de","metadata":{"api_version":{"major_version":"v1","minor_version":"2018-07-10"}},"description":"test","dialog_nodes":[{"type":"event_handler","output":{},"parent":"slot_7_1538658136481","event_name":"focus","dialog_node":"handler_9_1538658136481","previous_sibling":"handler_8_1538658136481"},{"type":"event_handler","parent":"slot_7_1538658136481","context":{"answer":"@answer"},"conditions":"@answer","event_name":"input","dialog_node":"handler_8_1538658136481"},{"type":"slot","parent":"Willkommen","variable":"$answer","dialog_node":"slot_7_1538658136481"},{"type":"standard","title":"Andernfalls","output":{"generic":[{"values":[{"text":"Ich verstehe Sie nicht."}],"response_type":"text","selection_policy":"sequential"}]},"context":{"private":""},"metadata":{},"conditions":"anything_else","dialog_node":"Andernfalls","previous_sibling":"node_3_1540455389320"},{"type":"standard","output":{"generic":[{"values":[{"text":"bestanden"}],"response_type":"text","selection_policy":"sequential"}]},"metadata":{},"conditions":"#test","digress_in":"does_not_return","dialog_node":"node_3_1540455389320","previous_sibling":"Willkommen"},{"type":"standard","title":"Willkommen","output":{"generic":[{"values":[{"text":"guten tag. ich bin der servicebot der vlv"}],"response_type":"text","selection_policy":"sequential"},{"time":1000,"typing":true,"response_type":"pause"},{"title":"","options":[{"label":"test","value":{"input":{"text":"test"}}},{"label":"bla","value":{"input":{"text":"bla"}}}],"response_type":"option"}]},"metadata":{"fallback":"leave"},"conditions":"welcome","digress_in":"does_not_return","dialog_node":"Willkommen","digress_out":"allow_all"}],"workspace_id":"d042b4f4-1086-4a11-82e3-6e529326dc98","counterexamples":[],"system_settings":{"tooling":{"store_generic_responses":true},"disambiguation":{"prompt":"Meinten Sie:","none_of_the_above_prompt":"Nichts von dem oben genannten"},"human_agent_assist":{"prompt":"Meinten Sie:"}},"learning_opt_out":false}

    screenshot

    Please let us know if it helps.

    Plugin Author intelahelp

    (@intelahelp)

    Please update the Watson Assistant plugin to the 0.7.8. This version addresses the issue with dialog options button functionality.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘option field output’ is closed to new replies.