Issue with option buttons
-
I’m facing an issue with the option buttons in my page, just doesn’t go the way that it should go. The weird thing is that works perfectly when I click a button in the “Try it” option in Watson Assistant, but in the page just doesn’t do anything… … it seems like it doesn’t work.
This is my first group of options, but it happens in the entire workspace.
"options": [ { "label": "Idear lo que me gusta", "value": { "input": { "text": "Idear lo que me gusta" } } }, { "label": "Medir mi energía", "value": { "input": { "text": "Medir mi energía" } } }, { "label": "Equilibrar mi vida", "value": { "input": { "text": "Equilibrar mi vida" } } } ]
Any solution for this?
- This topic was modified 6 years ago by jhonceballos.
The page I need help with: [log in to see the link]
-
Hello.
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.Yeah, sure
(excuse the bad words, is an “inappropriate” intent)
{"name":"nipu-web","intents":[{"intent":"inapropiado","examples":[{"text":"estupida"},{"text":"maricón"},{"text":"gay"},{"text":"guevon"},{"text":"chimba"},{"text":"care chimba"},{"text":"trasero"},{"text":"nalga"},{"text":"mal parido"},{"text":"bolas"},{"text":"tonto"},{"text":"huevos"},{"text":"putero"},{"text":"senos"},{"text":"chimbo"},{"text":"idiot"},{"text":"inutil"},{"text":"usseles"},{"text":"verga"},{"text":"marica"},{"text":"faggot"},{"text":"cacorro"},{"text":"mierda"},{"text":"caca"},{"text":"stupid"},{"text":"popo"},{"text":"bitch"},{"text":"pipí"},{"text":"shit"},{"text":"HP"},{"text":"perra"},{"text":"perro"},{"text":"imbecil"},{"text":"motherfucker"},{"text":"pendejo"},{"text":"asshole"},{"text":"bobo"},{"text":"fuck"},{"text":"puto"},{"text":"puta"},{"text":"pene"},{"text":"tetas"},{"text":"marik"},{"text":"dumb"},{"text":"catre"},{"text":"gonorrea"},{"text":"ass"},{"text":"pussy"},{"text":"hijo de puta"},{"text":"malparido"},{"text":"Hijueputa"},{"text":"idiota"},{"text":"estupido"}]},{"intent":"MainActivities","examples":[{"text":"Idear lo que me gusta"},{"text":"Medir mi energía"},{"text":"Equilibrar mi vida"}],"description":""}],"entities":[{"entity":"MainOptions","values":[{"type":"synonyms","value":"Medir","synonyms":["Medir mi energía"]},{"type":"synonyms","value":"Idear","synonyms":["Idear lo que me gusta"]},{"type":"synonyms","value":"Equilibrar","synonyms":["Equilibrar mi vida"]}],"fuzzy_match":true}],"language":"en","metadata":{"api_version":{"major_version":"v1","minor_version":"2018-07-10"}},"description":"","dialog_nodes":[{"type":"standard","title":"Red bull","output":{"generic":[{"values":[{"text":"$nombre_usuario."}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Será que $ActividadDisfruta es como “el Red Bull” de tus días?"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Para averiguarlo tengo otras cosas que debemos hacer."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_18_1541620291255","metadata":{},"next_step":{"behavior":"jump_to","selector":"body","dialog_node":"node_2_1541622162764"},"conditions":"true","dialog_node":"node_19_1541620347848"},{"type":"standard","title":"Entiendo","output":{"generic":[{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"?Entiendo!"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Y… no habíamos tocado este tema antes N-EMO 0x1F92D"}],"response_type":"text","selection_policy":"sequential"},{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"No sé si tienes novi@, pero sé que amas a tu familia o a tu mascota."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_4_1541638664637","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_5_1541638737794"},{"type":"standard","title":"Actividad","output":{"generic":[{"values":[{"text":"Ok, hagamos un test rápido."}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Podrías quedarte hasta las 3:00 am sin aburrirte de $ActividadDisfruta?"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"?Claro!","value":{"input":{"text":"?Claro!"}}},{"label":"Nah","value":{"input":{"text":"Nah"}}}],"response_type":"option"}]},"parent":"node_16_1541619741655","context":{"ActividadDisfruta":"<? input.text ?>"},"metadata":{},"conditions":"true","dialog_node":"node_17_1541620023789"},{"type":"standard","title":"Botones","output":{"generic":[{"title":"","options":[{"label":"?Ja! Tienes toda la razón","value":{"input":{"text":"?Ja! Tienes toda la razón"}}}],"response_type":"option"}]},"parent":"node_15_1541619195672","metadata":{},"conditions":"true","dialog_node":"node_1_1541622157358"},{"type":"standard","title":"Okay","output":{"generic":[{"values":[{"text":"Okay $nombre_usuario."}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Sabiendo que te gusta $LeGusta, para planear este estilo de vida, ?vamos a dar el primer paso!"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_2_1541621193149","metadata":{},"next_step":{"behavior":"jump_to","selector":"body","dialog_node":"node_2_1541622162764"},"conditions":"true","dialog_node":"node_3_1541621375423"},{"type":"standard","title":"Main","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"$nombre_usuario qué bueno conocerte."},{"text":"$nombre_usuario, ?qué bueno ser tu coach!"},{"text":"$nombre_usuario, ?me parece genial que hayas empezado a conversar conmigo!"},{"text":"$nombre_usuario, te va a gustar mucho conversar conmigo N-EMO 0x1F609"}],"response_type":"text","selection_policy":"random"},{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Yo te voy a acompa?ar a planear el estilo de vida que te haga más feliz."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_8_1541618294109","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_12_1541618655635"},{"type":"standard","title":"Interesante","output":{"generic":[{"values":[{"text":"?Qué interesante!"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Cómo te lo imaginas?"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Cómo serían tus días teniendo este estilo de vida?"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_1_1541621085235","metadata":{},"conditions":"true","dialog_node":"node_2_1541621193149"},{"type":"standard","title":"Final","output":{"generic":[{"title":"","options":[{"label":"Listo, ?qué hago?","value":{"input":{"text":"Listo, ?qué hago?"}}},{"label":"?Tengo que hacer muchas cosas?","value":{"input":{"text":"?Tengo que hacer muchas cosas?"}}}],"response_type":"option"}]},"parent":"node_2_1541635299937","metadata":{},"conditions":"true","dialog_node":"node_2_1541622162764","previous_sibling":"node_15_1541619195672"},{"type":"standard","title":"Medir mi energía","output":{"generic":[{"values":[{"text":"Listo $nombre_usuario, dime 3 actividades que te guste hacer en el día."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_2_1541635299937","metadata":{},"conditions":"@MainOptions:Medir","dialog_node":"node_14_1541619191765","previous_sibling":"node_13_1541619188089"},{"type":"standard","title":"Equilibrar mi vida","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":" $nombre_usuario, debo stalkear tu vida un momentico."}],"response_type":"text","selection_policy":"sequential"},{"source":"https://nipu.co/media/gifs/stalker.gif","response_type":"image"},{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Ir al colegio, hacer las tareas, ir a clases extra o las responsabilidades que tengas en casa te pueden hacer sentir como si trabajaras."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_2_1541635299937","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"@MainOptions:Equilibrar","dialog_node":"node_15_1541619195672","previous_sibling":"node_14_1541619191765"},{"type":"standard","title":"Idear lo que me gusta","output":{"generic":[{"values":[{"text":"?Listo $nombre_usuario!"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Esto se trata de imaginar para crear… si te gusta lo que visualices aquí, vas a amar el plan que vamos a dise?ar para lograrlo."}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Primero elige de estos temas el que te haga decir: “?Boom me encanta!” o el que crees que te interesa."}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"Animales","value":{"input":{"text":"Animales"}}},{"label":"Deportes","value":{"input":{"text":"Deportes"}}},{"label":"Lo artístico","value":{"input":{"text":"Lo artístico"}}},{"label":"Medio ambiente","value":{"input":{"text":"Medio ambiente"}}},{"label":"Tecnología","value":{"input":{"text":"Tecnología"}}},{"label":"Espiritualidad","value":{"input":{"text":"Espiritualidad"}}},{"label":"Desarrollo personal","value":{"input":{"text":"Desarrollo personal"}}},{"label":"Educación","value":{"input":{"text":"Educación"}}},{"label":"Salud","value":{"input":{"text":"Salud"}}},{"label":"Política","value":{"input":{"text":"Política"}}},{"label":"Viajes y culturas","value":{"input":{"text":"Viajes y culturas"}}},{"label":"Entretenimiento o moda","value":{"input":{"text":"Entretenimiento o moda"}}},{"label":"Negocios y economía","value":{"input":{"text":"Negocios y economía"}}}],"response_type":"option"}]},"parent":"node_2_1541635299937","metadata":{},"conditions":"@MainOptions:Idear","dialog_node":"node_13_1541619188089"},{"type":"standard","title":"Validación nombre","output":{"generic":[{"values":[],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_4_1541617904299","metadata":{},"conditions":"true","dialog_node":"node_7_1541618249944"},{"type":"slot","parent":"Welcome","dialog_node":"slot_1_1541617879555","previous_sibling":"node_4_1541617904299"},{"type":"standard","title":"Nombre","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"?Cómo te gustaría que te llame?"},{"text":"?Cómo quieres que te diga?"},{"text":"?Cómo te gustaría que te dijera?"},{"text":"?Cómo te gustaría que te llamara?"}],"response_type":"text","selection_policy":"random"}]},"parent":"Welcome","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_4_1541617904299"},{"type":"standard","title":"Sabiendo esto","output":{"generic":[{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"Sabiendo esto, ?qué tanto de tu día a día sientes como tu trabajo? "}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"(Siendo 1 nada y 5 demasiado):"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"1","value":{"input":{"text":"1"}}},{"label":"2","value":{"input":{"text":"2"}}},{"label":"3","value":{"input":{"text":"3"}}},{"label":"4","value":{"input":{"text":"4"}}},{"label":"5","value":{"input":{"text":"5"}}}],"response_type":"option"}]},"parent":"node_1_1541622157358","metadata":{},"conditions":"true","dialog_node":"node_2_1541638452622"},{"type":"standard","title":"Bueno","output":{"generic":[{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"Bueno, pero no todo es trabajo, ?Cierto?"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"Dime, ?qué tanto te diviertes? "}],"response_type":"text","selection_policy":"sequential"},{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"?Cada cuanto haces cosas que te suben el ánimo como ver tu serie favorita o hacer deporte?"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_2_1541638452622","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_3_1541638562844"},{"type":"standard","title":"Descárgala","output":{"generic":[{"values":[{"text":"?Descárgala ya y empecemos a chatear!"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"Descargar para iOS","value":{"input":{"text":"Descargar para iOS"}}},{"label":"Descargar para Android","value":{"input":{"text":"Descargar para Android"}}}],"response_type":"option"}]},"parent":"node_10_1541641050513","metadata":{},"conditions":"true","dialog_node":"node_11_1541641111894"},{"type":"standard","title":"Opciones","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Y para eso podemos empezar por alguna de estas opciones:"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"Idear lo que me gusta","value":{"input":{"text":"Idear lo que me gusta"}}},{"label":"Medir mi energía","value":{"input":{"text":"Medir mi energía"}}},{"label":"Equilibrar mi vida","value":{"input":{"text":"Equilibrar mi vida"}}}],"response_type":"option"}]},"parent":"node_12_1541618655635","metadata":{},"conditions":"true","dialog_node":"node_3_1541636187793"},{"type":"standard","title":"Okay","output":{"generic":[{"time":1000,"typing":true,"response_type":"pause"},{"values":[{"text":"Okay $nombre_usuario."}],"response_type":"text","selection_policy":"sequential"},{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"Estoy midiendo tus niveles de trabajo, diversión.. y hasta de amor! N-EMO 0x1F60D"}],"response_type":"text","selection_policy":"sequential"},{"time":1500,"typing":true,"response_type":"pause"}]},"parent":"node_6_1541638852330","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_7_1541638951215"},{"type":"standard","title":"Cuando haces","output":{"generic":[{"values":[{"text":"?Cuando haces esa actividad sientes que tu energía sube?"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"?Mucho!","value":{"input":{"text":"?Mucho!"}}},{"label":"?Hmm, no!","value":{"input":{"text":"?Hmm, no!"}}}],"response_type":"option"}]},"parent":"node_17_1541620023789","metadata":{},"conditions":"true","dialog_node":"node_18_1541620291255"},{"type":"standard","title":"Estilo de vida","output":{"generic":[{"values":[{"text":"?Muy bien! ahora dime tu estilo de vida so?ado."}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Ninguno es mejor, cada uno tiene su magia! N-EMO 0x1F642"}],"response_type":"text","selection_policy":"sequential"},{"title":"","options":[{"label":"De un nómada o viajero","value":{"input":{"text":"De un nómada o viajero"}}},{"label":"De una persona de negocios","value":{"input":{"text":"De una persona de negocios"}}},{"label":"De un independiente que trabaja por proyectos","value":{"input":{"text":"De un independiente que trabaja por proyectos"}}},{"label":"De los que tienen su familia como prioridad","value":{"input":{"text":"De los que tienen su familia como prioridad"}}},{"label":"De una persona reconocida y millonaria","value":{"input":{"text":"De una persona reconocida y millonaria"}}},{"label":"De una persona enfocada en su crecimiento y desarrollo espiritua","value":{"input":{"text":"De una persona enfocada en su crecimiento y desarrollo espiritua"}}}],"response_type":"option"}]},"parent":"node_13_1541619188089","context":{"LeGusta":"<? input.text ?>"},"metadata":{},"conditions":"true","dialog_node":"node_1_1541621085235"},{"type":"event_handler","output":{},"parent":"slot_1_1541617879555","event_name":"focus","dialog_node":"handler_3_1541617879555","previous_sibling":"handler_2_1541617879555"},{"type":"event_handler","parent":"slot_1_1541617879555","event_name":"input","dialog_node":"handler_2_1541617879555"},{"type":"standard","title":"Entonces","output":{"generic":[{"values":[{"text":"Entonces para poder darte un resultado con el plan que te puede ayudar a equilibrarte, necesito preguntarte otras cosas."}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_7_1541638951215","metadata":{},"next_step":{"behavior":"jump_to","selector":"body","dialog_node":"node_2_1541622162764"},"conditions":"true","dialog_node":"node_8_1541639077414"},{"type":"standard","title":"Choose","output":{"generic":[]},"parent":"node_3_1541636187793","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_2_1541635299937"},{"type":"standard","title":"Te lo cuento","output":{"generic":[{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"Te lo cuento mientras conversamos en mi app."}],"response_type":"text","selection_policy":"sequential"},{"time":1500,"typing":true,"response_type":"pause"},{"values":[{"text":"Allí tengo todo lo que vamos a hacer juntos para avanzar en tu plan."}],"response_type":"text","selection_policy":"sequential"},{"time":1500,"typing":true,"response_type":"pause"}]},"parent":"node_2_1541622162764","metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_10_1541641050513"},{"type":"standard","title":"Botones","output":{"generic":[{"title":"","options":[{"label":"?Urgente! más diversión","value":{"input":{"text":"?Urgente! más diversión"}}},{"label":"Podría divertirme más","value":{"input":{"text":"Podría divertirme más"}}},{"label":"","value":{"input":{"text":""}}}],"response_type":"option"}]},"parent":"node_3_1541638562844","metadata":{},"conditions":"true","dialog_node":"node_4_1541638664637"},{"type":"standard","title":"Muy largo","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Algo me dice que así no es como te gusta que te digan.\nEscribe solamente el nombre con el que quieres que te llame."},{"text":"N-EMO 0x1F914 Creo que es un nombre muy largo...\nPrueba con algo más corto"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_7_1541618249944","metadata":{},"next_step":{"behavior":"jump_to","selector":"body","dialog_node":"node_7_1541618249944"},"conditions":"input.text.length() > 7","dialog_node":"node_10_1541618420258","previous_sibling":"node_6_1541618077447"},{"type":"standard","title":"Apropiado","output":{"generic":[]},"parent":"node_7_1541618249944","context":{"nombre_usuario":"<? input.text ?>"},"metadata":{},"next_step":{"behavior":"skip_user_input"},"conditions":"true","dialog_node":"node_8_1541618294109","previous_sibling":"node_10_1541618420258"},{"type":"standard","title":"Inapropiado","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Jeje muy gracioso\n?Por qué no me dices un nombre más apropiado?"},{"text":"N-EMO 0x1F914 ?Estás seguro de que quieres que te diga así?\nDime un nombre mejor"},{"text":"?Plop! No me parece un nombre adecuado.\nPrueba con otro"},{"text":"Algo me dice que así no es como te gusta que te digan.\n?Qué tal algo como el nombre con el que te llaman tus amigos?"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_7_1541618249944","metadata":{},"next_step":{"behavior":"jump_to","selector":"body","dialog_node":"node_7_1541618249944"},"conditions":"#inapropiado","dialog_node":"node_6_1541618077447"},{"type":"standard","title":"Amor","output":{"generic":[{"time":1000,"typing":true,"response_type":"pause"},{"values":[{"text":"El amorrrr!!!"}],"response_type":"text","selection_policy":"sequential"},{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"Pasar tiempo con esas personas que amas te recarga de buena energía. "}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Qué tanto tiempo compartes con ellas?"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_5_1541638737794","metadata":{},"conditions":"true","dialog_node":"node_6_1541638852330"},{"type":"standard","title":"Lista actividades","output":{"generic":[{"values":[{"text":"Ahora de esta lista $ListaActividades"}],"response_type":"text","selection_policy":"sequential"},{"values":[{"text":"?Cuál es la que más disfrutas?"}],"response_type":"text","selection_policy":"sequential"}]},"parent":"node_14_1541619191765","context":{"ListaActividades":"<? input.text ?>"},"metadata":{},"conditions":"true","dialog_node":"node_16_1541619741655"},{"type":"standard","title":"Welcome","output":{"generic":[{"time":2000,"typing":true,"response_type":"pause"},{"values":[{"text":"?Hola soy nipu!"}],"response_type":"text","selection_policy":"sequential"},{"title":"","source":"https://nipu.co/media/gifs/nipu-despertando.gif","description":"","response_type":"image"}]},"metadata":{"fallback":"leave","_customization":{"mcr":false}},"next_step":{"behavior":"skip_user_input"},"conditions":"welcome","digress_in":"does_not_return","dialog_node":"Welcome","digress_out":"allow_all"}],"workspace_id":"037e351f-6d04-4204-ae1e-19086c00a27a","counterexamples":[],"system_settings":{"tooling":{"store_generic_responses":true},"disambiguation":{"prompt":"Did you mean:","none_of_the_above_prompt":"None of the above"},"human_agent_assist":{"prompt":"Did you mean:"}},"learning_opt_out":false}
- This reply was modified 6 years ago by jhonceballos.
Please update the Watson Assistant plugin to the 0.7.8. This version addresses the issue with dialog options button functionality.
- The topic ‘Issue with option buttons’ is closed to new replies.