Advertisement
Guest User

Watson assistant, redirect after 3 same intents.

a guest
Aug 15th, 2018
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 9.01 KB | None | 0 0
  1. {
  2.   "name": "Redirect after 3",
  3.   "intents": [
  4.     {
  5.       "intent": "General_Ending",
  6.       "examples": [
  7.         {
  8.           "text": "See you"
  9.         },
  10.         {
  11.           "text": "Time to go"
  12.         },
  13.         {
  14.           "text": "That's everything"
  15.         },
  16.         {
  17.           "text": "That is all"
  18.         },
  19.         {
  20.           "text": "Thanks very much, bye!"
  21.         },
  22.         {
  23.           "text": "Thanks, bye!"
  24.         },
  25.         {
  26.           "text": "Stop talking to me"
  27.         },
  28.         {
  29.           "text": "Stop doing this"
  30.         },
  31.         {
  32.           "text": "Shut up"
  33.         },
  34.         {
  35.           "text": "See you later"
  36.         },
  37.         {
  38.           "text": "Ok goodbye"
  39.         },
  40.         {
  41.           "text": "I want to quit"
  42.         },
  43.         {
  44.           "text": "It was nice chatting with you"
  45.         },
  46.         {
  47.           "text": "I'm leaving now"
  48.         },
  49.         {
  50.           "text": "Im good thank you"
  51.         },
  52.         {
  53.           "text": "Im done"
  54.         },
  55.         {
  56.           "text": "I'm done"
  57.         },
  58.         {
  59.           "text": "I have got to go"
  60.         },
  61.         {
  62.           "text": "I d like to stop doing this"
  63.         },
  64.         {
  65.           "text": "I am out of here"
  66.         },
  67.         {
  68.           "text": "I am leaving"
  69.         },
  70.         {
  71.           "text": "Hey bot go away"
  72.         },
  73.         {
  74.           "text": "Have a nice day?"
  75.         },
  76.         {
  77.           "text": "Go off"
  78.         },
  79.         {
  80.           "text": "Good. bye."
  81.         },
  82.         {
  83.           "text": "Goodbye"
  84.         },
  85.         {
  86.           "text": "Going now"
  87.         },
  88.         {
  89.           "text": "Go away"
  90.         },
  91.         {
  92.           "text": "Get lost"
  93.         },
  94.         {
  95.           "text": "Finished now, good bye"
  96.         },
  97.         {
  98.           "text": "End trial"
  99.         },
  100.         {
  101.           "text": "Ending this session"
  102.         },
  103.         {
  104.           "text": "Cya later"
  105.         },
  106.         {
  107.           "text": "Catch you later"
  108.         },
  109.         {
  110.           "text": "Bye now"
  111.         },
  112.         {
  113.           "text": "Bye bye"
  114.         },
  115.         {
  116.           "text": "Thank you for your time"
  117.         }
  118.       ],
  119.       "description": "End the conversation."
  120.     },
  121.     {
  122.       "intent": "General_Greetings",
  123.       "examples": [
  124.         {
  125.           "text": "Looking good eve"
  126.         },
  127.         {
  128.           "text": "Hello Agent"
  129.         },
  130.         {
  131.           "text": "Hello"
  132.         },
  133.         {
  134.           "text": "Hello I am looking for some help here"
  135.         },
  136.         {
  137.           "text": "Hey how are you doing"
  138.         },
  139.         {
  140.           "text": "Hey there all"
  141.         },
  142.         {
  143.           "text": "Hey there"
  144.         },
  145.         {
  146.           "text": "Hey twin"
  147.         },
  148.         {
  149.           "text": "Ok take me back"
  150.         },
  151.         {
  152.           "text": "What's new?"
  153.         },
  154.         {
  155.           "text": "What's up?"
  156.         },
  157.         {
  158.           "text": "Who is this?"
  159.         },
  160.         {
  161.           "text": "You there"
  162.         },
  163.         {
  164.           "text": "Hey you"
  165.         },
  166.         {
  167.           "text": "Hi advisor"
  168.         },
  169.         {
  170.           "text": "Hi there"
  171.         },
  172.         {
  173.           "text": "Good day"
  174.         },
  175.         {
  176.           "text": "Good evening"
  177.         },
  178.         {
  179.           "text": "How are things going?"
  180.         },
  181.         {
  182.           "text": "How are you today?"
  183.         },
  184.         {
  185.           "text": "How have you been?"
  186.         },
  187.         {
  188.           "text": "How is it going?"
  189.         },
  190.         {
  191.           "text": "How r u?"
  192.         },
  193.         {
  194.           "text": "Good morning"
  195.         },
  196.         {
  197.           "text": "Good to see you"
  198.         },
  199.         {
  200.           "text": "Greetings"
  201.         },
  202.         {
  203.           "text": "Have you been well?"
  204.         }
  205.       ],
  206.       "description": "Greet the bot."
  207.     }
  208.   ],
  209.   "entities": [],
  210.   "language": "en",
  211.   "metadata": {
  212.     "api_version": {
  213.       "major_version": "v1",
  214.       "minor_version": "2017-05-26"
  215.     }
  216.   },
  217.   "description": "Example showing how to redirect to a human if they get the same intent three times in a row.",
  218.   "dialog_nodes": [
  219.     {
  220.       "type": "response_condition",
  221.       "title": null,
  222.       "output": {
  223.         "generic": [
  224.           {
  225.             "values": [
  226.               {
  227.                 "text": "Different.  <? intents[0].intent ?>"
  228.               }
  229.             ],
  230.             "response_type": "text",
  231.             "selection_policy": "sequential"
  232.           }
  233.         ]
  234.       },
  235.       "parent": "node_1_1534315620494",
  236.       "context": {
  237.         "counter": 1,
  238.         "lastIntent": "<? intents[0].intent ?>"
  239.       },
  240.       "metadata": {},
  241.       "next_step": null,
  242.       "conditions": "anything_else",
  243.       "description": null,
  244.       "dialog_node": "node_6_1534316221505",
  245.       "previous_sibling": "node_2_1534315769932"
  246.     },
  247.     {
  248.       "type": "response_condition",
  249.       "title": null,
  250.       "output": {
  251.         "generic": [
  252.           {
  253.             "values": [
  254.               {
  255.                 "text": "Same. $counter."
  256.               }
  257.             ],
  258.             "response_type": "text",
  259.             "selection_policy": "sequential"
  260.           }
  261.         ]
  262.       },
  263.       "parent": "node_1_1534315620494",
  264.       "context": {
  265.         "counter": "<? $counter + 1 ?>"
  266.       },
  267.       "metadata": {},
  268.       "next_step": null,
  269.       "conditions": "$lastIntent ==  intents[0].intent",
  270.       "description": null,
  271.       "dialog_node": "node_2_1534315769932",
  272.       "previous_sibling": "node_8_1534316510997"
  273.     },
  274.     {
  275.       "type": "response_condition",
  276.       "title": null,
  277.       "output": {
  278.         "generic": [
  279.           {
  280.             "values": [
  281.               {
  282.                 "text": "Redirect to human."
  283.               }
  284.             ],
  285.             "response_type": "text"
  286.           }
  287.         ]
  288.       },
  289.       "parent": "node_1_1534315620494",
  290.       "context": null,
  291.       "metadata": {},
  292.       "next_step": null,
  293.       "conditions": "$counter >= 2",
  294.       "description": null,
  295.       "dialog_node": "node_8_1534316510997",
  296.       "previous_sibling": null
  297.     },
  298.     {
  299.       "type": "standard",
  300.       "title": "Welcome",
  301.       "output": {
  302.         "generic": [
  303.           {
  304.             "values": [
  305.               {
  306.                 "text": "Hello. How can I help you?"
  307.               }
  308.             ],
  309.             "response_type": "text",
  310.             "selection_policy": "sequential"
  311.           }
  312.         ]
  313.       },
  314.       "parent": null,
  315.       "context": null,
  316.       "metadata": {},
  317.       "next_step": null,
  318.       "conditions": "welcome",
  319.       "description": null,
  320.       "dialog_node": "Welcome",
  321.       "previous_sibling": "node_1_1534315620494"
  322.     },
  323.     {
  324.       "type": "standard",
  325.       "title": "Anything else",
  326.       "output": {
  327.         "generic": [
  328.           {
  329.             "values": [
  330.               {
  331.                 "text": "Intent: <? intent.intent ?> : <? intent.confidence ?>"
  332.               }
  333.             ],
  334.             "response_type": "text",
  335.             "selection_policy": "sequential"
  336.           }
  337.         ]
  338.       },
  339.       "parent": null,
  340.       "context": null,
  341.       "metadata": {},
  342.       "next_step": null,
  343.       "conditions": "anything_else",
  344.       "description": null,
  345.       "dialog_node": "Anything else",
  346.       "previous_sibling": "node_2_1534315350781"
  347.     },
  348.     {
  349.       "type": "standard",
  350.       "title": null,
  351.       "output": {
  352.         "generic": [
  353.           {
  354.             "values": [
  355.               {
  356.                 "text": "Hello!"
  357.               }
  358.             ],
  359.             "response_type": "text",
  360.             "selection_policy": "sequential"
  361.           }
  362.         ]
  363.       },
  364.       "parent": null,
  365.       "context": null,
  366.       "metadata": {},
  367.       "next_step": null,
  368.       "conditions": "#General_Greetings",
  369.       "description": null,
  370.       "dialog_node": "node_2_1534315350781",
  371.       "previous_sibling": "Welcome"
  372.     },
  373.     {
  374.       "type": "standard",
  375.       "title": "Redirect to human if repeating.",
  376.       "output": {},
  377.       "parent": null,
  378.       "context": null,
  379.       "metadata": {
  380.         "_customization": {
  381.           "mcr": true
  382.         }
  383.       },
  384.       "next_step": {
  385.         "behavior": "jump_to",
  386.         "selector": "condition",
  387.         "dialog_node": "Welcome"
  388.       },
  389.       "conditions": "input.text != \"\"",
  390.       "digress_in": "does_not_return",
  391.       "description": null,
  392.       "dialog_node": "node_1_1534315620494",
  393.       "digress_out": "allow_all",
  394.       "previous_sibling": null
  395.     }
  396.   ],
  397.   "workspace_id": "dd9dc2e7-a7c6-4f58-aad3-be00a68b2d58",
  398.   "counterexamples": [],
  399.   "system_settings": {
  400.     "tooling": {
  401.       "store_generic_responses": true
  402.     },
  403.     "disambiguation": {
  404.       "prompt": "Did you mean:",
  405.       "none_of_the_above_prompt": "None of the above"
  406.     },
  407.     "human_agent_assist": {
  408.       "prompt": "Did you mean:"
  409.     }
  410.   },
  411.   "learning_opt_out": false
  412. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement