Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "Multi-Literals using slots",
- "created": "2017-12-21T04:28:53.496Z",
- "intents": [],
- "updated": "2017-12-21T06:05:27.345Z",
- "entities": [
- {
- "entity": "Computer",
- "values": [
- {
- "type": "synonyms",
- "value": "PC",
- "created": "2017-12-21T04:36:10.191Z",
- "updated": "2017-12-21T04:36:10.191Z",
- "metadata": null,
- "synonyms": []
- },
- {
- "type": "synonyms",
- "value": "Mac",
- "created": "2017-12-21T04:36:14.615Z",
- "updated": "2017-12-21T04:36:14.615Z",
- "metadata": null,
- "synonyms": []
- }
- ],
- "created": "2017-12-21T04:36:07.218Z",
- "updated": "2017-12-21T04:39:58.087Z",
- "metadata": null,
- "description": null,
- "fuzzy_match": true
- },
- {
- "entity": "YesNo",
- "values": [
- {
- "type": "synonyms",
- "value": "yes",
- "created": "2017-12-21T04:35:50.358Z",
- "updated": "2017-12-21T04:35:50.358Z",
- "metadata": null,
- "synonyms": []
- },
- {
- "type": "synonyms",
- "value": "no",
- "created": "2017-12-21T04:35:58.669Z",
- "updated": "2017-12-21T04:35:58.669Z",
- "metadata": null,
- "synonyms": []
- }
- ],
- "created": "2017-12-21T04:35:40.448Z",
- "updated": "2017-12-21T04:39:52.629Z",
- "metadata": null,
- "description": null,
- "fuzzy_match": true
- }
- ],
- "language": "en",
- "metadata": {
- "api_version": {
- "major_version": "v1",
- "minor_version": "2017-05-26"
- }
- },
- "description": "",
- "dialog_nodes": [
- {
- "type": "slot",
- "title": null,
- "output": {},
- "parent": "node_12_1513831016338",
- "context": null,
- "created": "2017-12-21T04:37:26.667Z",
- "updated": "2017-12-21T04:38:39.296Z",
- "metadata": {},
- "variable": "$entity_values",
- "next_step": null,
- "conditions": null,
- "description": null,
- "dialog_node": "slot_13_1513831046236",
- "previous_sibling": "node_1_1513836061443"
- },
- {
- "type": "standard",
- "title": null,
- "output": {
- "text": {
- "values": [
- "Literal Values: $literals"
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": "node_12_1513831016338",
- "context": null,
- "created": "2017-12-21T06:01:01.985Z",
- "updated": "2017-12-21T06:01:17.405Z",
- "metadata": {},
- "next_step": null,
- "conditions": "true",
- "description": null,
- "dialog_node": "node_1_1513836061443",
- "previous_sibling": "node_19_1513835698933"
- },
- {
- "type": "standard",
- "title": null,
- "output": {
- "text": {
- "values": [],
- "selection_policy": "sequential"
- }
- },
- "parent": "node_12_1513831016338",
- "context": {
- "counter": "<? $counter - 1 ?>",
- "literals": "<? $literals + ',' + entities[$counter].literal ?>"
- },
- "created": "2017-12-21T05:54:59.209Z",
- "updated": "2017-12-21T06:05:27.345Z",
- "metadata": {},
- "next_step": {
- "behavior": "jump_to",
- "selector": "condition",
- "dialog_node": "node_20_1513835954092"
- },
- "conditions": "$counter > 0",
- "description": null,
- "dialog_node": "node_19_1513835698933",
- "previous_sibling": "node_20_1513835954092"
- },
- {
- "type": "slot",
- "title": null,
- "output": {},
- "parent": "node_12_1513831016338",
- "context": null,
- "created": "2017-12-21T04:38:25.386Z",
- "updated": "2017-12-21T04:38:41.913Z",
- "metadata": {},
- "variable": "$entity_values",
- "next_step": null,
- "conditions": null,
- "description": null,
- "dialog_node": "slot_16_1513831105127",
- "previous_sibling": "slot_13_1513831046236"
- },
- {
- "type": "standard",
- "title": "Dummy jump",
- "output": {},
- "parent": "node_12_1513831016338",
- "context": null,
- "created": "2017-12-21T05:59:14.361Z",
- "updated": "2017-12-21T06:00:35.997Z",
- "metadata": {},
- "next_step": {
- "behavior": "jump_to",
- "selector": "condition",
- "dialog_node": "node_19_1513835698933"
- },
- "conditions": "true",
- "description": null,
- "dialog_node": "node_20_1513835954092",
- "previous_sibling": null
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {},
- "parent": "slot_16_1513831105127",
- "context": null,
- "created": "2017-12-21T04:38:26.224Z",
- "updated": "2017-12-21T04:38:26.224Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "focus",
- "description": null,
- "dialog_node": "handler_18_1513831105127",
- "previous_sibling": "handler_17_1513831105127"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": null,
- "parent": "slot_16_1513831105127",
- "context": {
- "entity_values": "@Computer"
- },
- "created": "2017-12-21T04:38:25.816Z",
- "updated": "2017-12-21T04:38:42.405Z",
- "metadata": null,
- "next_step": null,
- "conditions": "@Computer",
- "event_name": "input",
- "description": null,
- "dialog_node": "handler_17_1513831105127",
- "previous_sibling": null
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {},
- "parent": "slot_13_1513831046236",
- "context": null,
- "created": "2017-12-21T04:37:27.510Z",
- "updated": "2017-12-21T04:58:23.239Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "focus",
- "description": null,
- "dialog_node": "handler_15_1513831046236",
- "previous_sibling": "handler_14_1513831046236"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {},
- "parent": "slot_13_1513831046236",
- "context": {
- "entity_values": "@YesNo"
- },
- "created": "2017-12-21T04:37:27.097Z",
- "updated": "2017-12-21T04:38:39.710Z",
- "metadata": {},
- "next_step": null,
- "conditions": "@YesNo",
- "event_name": "input",
- "description": null,
- "dialog_node": "handler_14_1513831046236",
- "previous_sibling": null
- },
- {
- "type": "standard",
- "title": "Anything else",
- "output": {
- "text": {
- "values": [
- "I didn't understand. You can try rephrasing.",
- "Can you reword your statement? I'm not understanding.",
- "I didn't get your meaning."
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": null,
- "context": null,
- "created": "2017-12-21T04:29:54.933Z",
- "updated": "2017-12-21T04:29:54.933Z",
- "metadata": {},
- "next_step": null,
- "conditions": "anything_else",
- "description": null,
- "dialog_node": "Anything else",
- "previous_sibling": "node_12_1513831016338"
- },
- {
- "type": "frame",
- "title": null,
- "output": {
- "text": {
- "values": [
- "Working out Literals."
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": null,
- "context": {
- "counter": "<? entities.size() ?>",
- "literals": ""
- },
- "created": "2017-12-21T04:36:56.599Z",
- "updated": "2017-12-21T06:03:49.703Z",
- "metadata": {
- "fallback": "leave"
- },
- "next_step": {
- "behavior": "jump_to",
- "selector": "condition",
- "dialog_node": "node_20_1513835954092"
- },
- "conditions": "@Computer || @YesNo",
- "digress_in": "does_not_return",
- "description": null,
- "dialog_node": "node_12_1513831016338",
- "digress_out": "allow_all",
- "previous_sibling": "Welcome",
- "digress_out_slots": "not_allowed"
- },
- {
- "type": "standard",
- "title": "Welcome",
- "output": {
- "text": {
- "values": [
- "Hello. How can I help you?"
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": null,
- "context": null,
- "created": "2017-12-21T04:29:54.933Z",
- "updated": "2017-12-21T04:29:54.933Z",
- "metadata": {},
- "next_step": null,
- "conditions": "welcome",
- "description": null,
- "dialog_node": "Welcome",
- "previous_sibling": null
- }
- ],
- "workspace_id": "3fada2f6-673a-4402-b4dd-6b44263aef12",
- "counterexamples": [],
- "learning_opt_out": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement