Advertisement
Guest User

Accessing entity literals in watson conversation.

a guest
Dec 21st, 2017
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.84 KB | None | 0 0
  1. {
  2.   "name": "Multi-Literals using slots",
  3.   "created": "2017-12-21T04:28:53.496Z",
  4.   "intents": [],
  5.   "updated": "2017-12-21T06:05:27.345Z",
  6.   "entities": [
  7.     {
  8.       "entity": "Computer",
  9.       "values": [
  10.         {
  11.           "type": "synonyms",
  12.           "value": "PC",
  13.           "created": "2017-12-21T04:36:10.191Z",
  14.           "updated": "2017-12-21T04:36:10.191Z",
  15.           "metadata": null,
  16.           "synonyms": []
  17.         },
  18.         {
  19.           "type": "synonyms",
  20.           "value": "Mac",
  21.           "created": "2017-12-21T04:36:14.615Z",
  22.           "updated": "2017-12-21T04:36:14.615Z",
  23.           "metadata": null,
  24.           "synonyms": []
  25.         }
  26.       ],
  27.       "created": "2017-12-21T04:36:07.218Z",
  28.       "updated": "2017-12-21T04:39:58.087Z",
  29.       "metadata": null,
  30.       "description": null,
  31.       "fuzzy_match": true
  32.     },
  33.     {
  34.       "entity": "YesNo",
  35.       "values": [
  36.         {
  37.           "type": "synonyms",
  38.           "value": "yes",
  39.           "created": "2017-12-21T04:35:50.358Z",
  40.           "updated": "2017-12-21T04:35:50.358Z",
  41.           "metadata": null,
  42.           "synonyms": []
  43.         },
  44.         {
  45.           "type": "synonyms",
  46.           "value": "no",
  47.           "created": "2017-12-21T04:35:58.669Z",
  48.           "updated": "2017-12-21T04:35:58.669Z",
  49.           "metadata": null,
  50.           "synonyms": []
  51.         }
  52.       ],
  53.       "created": "2017-12-21T04:35:40.448Z",
  54.       "updated": "2017-12-21T04:39:52.629Z",
  55.       "metadata": null,
  56.       "description": null,
  57.       "fuzzy_match": true
  58.     }
  59.   ],
  60.   "language": "en",
  61.   "metadata": {
  62.     "api_version": {
  63.       "major_version": "v1",
  64.       "minor_version": "2017-05-26"
  65.     }
  66.   },
  67.   "description": "",
  68.   "dialog_nodes": [
  69.     {
  70.       "type": "slot",
  71.       "title": null,
  72.       "output": {},
  73.       "parent": "node_12_1513831016338",
  74.       "context": null,
  75.       "created": "2017-12-21T04:37:26.667Z",
  76.       "updated": "2017-12-21T04:38:39.296Z",
  77.       "metadata": {},
  78.       "variable": "$entity_values",
  79.       "next_step": null,
  80.       "conditions": null,
  81.       "description": null,
  82.       "dialog_node": "slot_13_1513831046236",
  83.       "previous_sibling": "node_1_1513836061443"
  84.     },
  85.     {
  86.       "type": "standard",
  87.       "title": null,
  88.       "output": {
  89.         "text": {
  90.           "values": [
  91.             "Literal Values: $literals"
  92.           ],
  93.           "selection_policy": "sequential"
  94.         }
  95.       },
  96.       "parent": "node_12_1513831016338",
  97.       "context": null,
  98.       "created": "2017-12-21T06:01:01.985Z",
  99.       "updated": "2017-12-21T06:01:17.405Z",
  100.       "metadata": {},
  101.       "next_step": null,
  102.       "conditions": "true",
  103.       "description": null,
  104.       "dialog_node": "node_1_1513836061443",
  105.       "previous_sibling": "node_19_1513835698933"
  106.     },
  107.     {
  108.       "type": "standard",
  109.       "title": null,
  110.       "output": {
  111.         "text": {
  112.           "values": [],
  113.           "selection_policy": "sequential"
  114.         }
  115.       },
  116.       "parent": "node_12_1513831016338",
  117.       "context": {
  118.         "counter": "<? $counter - 1 ?>",
  119.         "literals": "<? $literals + ',' + entities[$counter].literal ?>"
  120.       },
  121.       "created": "2017-12-21T05:54:59.209Z",
  122.       "updated": "2017-12-21T06:05:27.345Z",
  123.       "metadata": {},
  124.       "next_step": {
  125.         "behavior": "jump_to",
  126.         "selector": "condition",
  127.         "dialog_node": "node_20_1513835954092"
  128.       },
  129.       "conditions": "$counter > 0",
  130.       "description": null,
  131.       "dialog_node": "node_19_1513835698933",
  132.       "previous_sibling": "node_20_1513835954092"
  133.     },
  134.     {
  135.       "type": "slot",
  136.       "title": null,
  137.       "output": {},
  138.       "parent": "node_12_1513831016338",
  139.       "context": null,
  140.       "created": "2017-12-21T04:38:25.386Z",
  141.       "updated": "2017-12-21T04:38:41.913Z",
  142.       "metadata": {},
  143.       "variable": "$entity_values",
  144.       "next_step": null,
  145.       "conditions": null,
  146.       "description": null,
  147.       "dialog_node": "slot_16_1513831105127",
  148.       "previous_sibling": "slot_13_1513831046236"
  149.     },
  150.     {
  151.       "type": "standard",
  152.       "title": "Dummy jump",
  153.       "output": {},
  154.       "parent": "node_12_1513831016338",
  155.       "context": null,
  156.       "created": "2017-12-21T05:59:14.361Z",
  157.       "updated": "2017-12-21T06:00:35.997Z",
  158.       "metadata": {},
  159.       "next_step": {
  160.         "behavior": "jump_to",
  161.         "selector": "condition",
  162.         "dialog_node": "node_19_1513835698933"
  163.       },
  164.       "conditions": "true",
  165.       "description": null,
  166.       "dialog_node": "node_20_1513835954092",
  167.       "previous_sibling": null
  168.     },
  169.     {
  170.       "type": "event_handler",
  171.       "title": null,
  172.       "output": {},
  173.       "parent": "slot_16_1513831105127",
  174.       "context": null,
  175.       "created": "2017-12-21T04:38:26.224Z",
  176.       "updated": "2017-12-21T04:38:26.224Z",
  177.       "metadata": null,
  178.       "next_step": null,
  179.       "conditions": null,
  180.       "event_name": "focus",
  181.       "description": null,
  182.       "dialog_node": "handler_18_1513831105127",
  183.       "previous_sibling": "handler_17_1513831105127"
  184.     },
  185.     {
  186.       "type": "event_handler",
  187.       "title": null,
  188.       "output": null,
  189.       "parent": "slot_16_1513831105127",
  190.       "context": {
  191.         "entity_values": "@Computer"
  192.       },
  193.       "created": "2017-12-21T04:38:25.816Z",
  194.       "updated": "2017-12-21T04:38:42.405Z",
  195.       "metadata": null,
  196.       "next_step": null,
  197.       "conditions": "@Computer",
  198.       "event_name": "input",
  199.       "description": null,
  200.       "dialog_node": "handler_17_1513831105127",
  201.       "previous_sibling": null
  202.     },
  203.     {
  204.       "type": "event_handler",
  205.       "title": null,
  206.       "output": {},
  207.       "parent": "slot_13_1513831046236",
  208.       "context": null,
  209.       "created": "2017-12-21T04:37:27.510Z",
  210.       "updated": "2017-12-21T04:58:23.239Z",
  211.       "metadata": null,
  212.       "next_step": null,
  213.       "conditions": null,
  214.       "event_name": "focus",
  215.       "description": null,
  216.       "dialog_node": "handler_15_1513831046236",
  217.       "previous_sibling": "handler_14_1513831046236"
  218.     },
  219.     {
  220.       "type": "event_handler",
  221.       "title": null,
  222.       "output": {},
  223.       "parent": "slot_13_1513831046236",
  224.       "context": {
  225.         "entity_values": "@YesNo"
  226.       },
  227.       "created": "2017-12-21T04:37:27.097Z",
  228.       "updated": "2017-12-21T04:38:39.710Z",
  229.       "metadata": {},
  230.       "next_step": null,
  231.       "conditions": "@YesNo",
  232.       "event_name": "input",
  233.       "description": null,
  234.       "dialog_node": "handler_14_1513831046236",
  235.       "previous_sibling": null
  236.     },
  237.     {
  238.       "type": "standard",
  239.       "title": "Anything else",
  240.       "output": {
  241.         "text": {
  242.           "values": [
  243.             "I didn't understand. You can try rephrasing.",
  244.             "Can you reword your statement? I'm not understanding.",
  245.             "I didn't get your meaning."
  246.           ],
  247.           "selection_policy": "sequential"
  248.         }
  249.       },
  250.       "parent": null,
  251.       "context": null,
  252.       "created": "2017-12-21T04:29:54.933Z",
  253.       "updated": "2017-12-21T04:29:54.933Z",
  254.       "metadata": {},
  255.       "next_step": null,
  256.       "conditions": "anything_else",
  257.       "description": null,
  258.       "dialog_node": "Anything else",
  259.       "previous_sibling": "node_12_1513831016338"
  260.     },
  261.     {
  262.       "type": "frame",
  263.       "title": null,
  264.       "output": {
  265.         "text": {
  266.           "values": [
  267.             "Working out Literals."
  268.           ],
  269.           "selection_policy": "sequential"
  270.         }
  271.       },
  272.       "parent": null,
  273.       "context": {
  274.         "counter": "<? entities.size() ?>",
  275.         "literals": ""
  276.       },
  277.       "created": "2017-12-21T04:36:56.599Z",
  278.       "updated": "2017-12-21T06:03:49.703Z",
  279.       "metadata": {
  280.         "fallback": "leave"
  281.       },
  282.       "next_step": {
  283.         "behavior": "jump_to",
  284.         "selector": "condition",
  285.         "dialog_node": "node_20_1513835954092"
  286.       },
  287.       "conditions": "@Computer || @YesNo",
  288.       "digress_in": "does_not_return",
  289.       "description": null,
  290.       "dialog_node": "node_12_1513831016338",
  291.       "digress_out": "allow_all",
  292.       "previous_sibling": "Welcome",
  293.       "digress_out_slots": "not_allowed"
  294.     },
  295.     {
  296.       "type": "standard",
  297.       "title": "Welcome",
  298.       "output": {
  299.         "text": {
  300.           "values": [
  301.             "Hello. How can I help you?"
  302.           ],
  303.           "selection_policy": "sequential"
  304.         }
  305.       },
  306.       "parent": null,
  307.       "context": null,
  308.       "created": "2017-12-21T04:29:54.933Z",
  309.       "updated": "2017-12-21T04:29:54.933Z",
  310.       "metadata": {},
  311.       "next_step": null,
  312.       "conditions": "welcome",
  313.       "description": null,
  314.       "dialog_node": "Welcome",
  315.       "previous_sibling": null
  316.     }
  317.   ],
  318.   "workspace_id": "3fada2f6-673a-4402-b4dd-6b44263aef12",
  319.   "counterexamples": [],
  320.   "learning_opt_out": false
  321. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement