Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "Slot counter",
- "created": "2017-10-26T06:19:43.235Z",
- "intents": [
- {
- "intent": "INTENT3",
- "created": "2017-10-27T11:36:37.102Z",
- "updated": "2017-10-27T11:36:37.102Z",
- "examples": [
- {
- "text": "How are you?, Can you help me?",
- "created": "2017-10-27T11:36:37.111Z",
- "updated": "2017-10-27T11:36:37.111Z"
- }
- ],
- "description": null
- },
- {
- "intent": "INTENT2",
- "created": "2017-10-27T11:36:37.102Z",
- "updated": "2017-10-27T11:36:37.102Z",
- "examples": [
- {
- "text": "question 2?",
- "created": "2017-10-27T11:36:37.111Z",
- "updated": "2017-10-27T11:36:37.111Z"
- }
- ],
- "description": null
- },
- {
- "intent": "INTENT1",
- "created": "2017-10-27T11:36:37.102Z",
- "updated": "2017-10-27T11:36:37.102Z",
- "examples": [
- {
- "text": "question 1?",
- "created": "2017-10-27T11:36:37.111Z",
- "updated": "2017-10-27T11:36:37.111Z"
- }
- ],
- "description": null
- }
- ],
- "updated": "2017-11-01T02:23:21.544Z",
- "entities": [
- {
- "entity": "sys-date",
- "values": [],
- "created": "2017-11-01T01:50:04.094Z",
- "updated": "2017-11-01T01:50:04.094Z",
- "metadata": null,
- "description": null
- },
- {
- "entity": "sys-person",
- "values": [],
- "created": "2017-11-01T01:50:08.911Z",
- "updated": "2017-11-01T01:50:08.911Z",
- "metadata": null,
- "description": null
- }
- ],
- "language": "en",
- "metadata": {
- "api_version": {
- "major_version": "v1",
- "minor_version": "2017-05-26"
- }
- },
- "description": "Example code showing how to have a slot counter to exit. http://sodoherty.ai",
- "dialog_nodes": [
- {
- "type": "slot",
- "title": null,
- "output": null,
- "parent": "node_1_1509501013160",
- "context": null,
- "created": "2017-11-01T01:50:36.823Z",
- "updated": "2017-11-01T01:50:44.355Z",
- "metadata": null,
- "variable": "$date",
- "next_step": null,
- "conditions": null,
- "description": null,
- "dialog_node": "slot_3_1509501035783",
- "previous_sibling": "node_12_1509501240595"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {},
- "parent": "node_1_1509501013160",
- "context": {
- "counter": "<? $counter = $counter + 1 ?>"
- },
- "created": "2017-11-01T02:00:33.007Z",
- "updated": "2017-11-01T02:19:50.506Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "generic",
- "description": null,
- "dialog_node": "handler_14_1509501586776",
- "previous_sibling": "handler_10_1509501135265"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {
- "text": {
- "values": [
- "What name and date"
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": "node_1_1509501013160",
- "context": null,
- "created": "2017-11-01T01:50:36.047Z",
- "updated": "2017-11-01T02:01:44.696Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "focus",
- "description": null,
- "dialog_node": "handler_2_1509501035760",
- "previous_sibling": "slot_6_1509501050934"
- },
- {
- "type": "response_condition",
- "title": null,
- "output": {
- "text": {
- "values": [
- "You entered $date and $person"
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": "node_1_1509501013160",
- "context": null,
- "created": "2017-11-01T01:54:00.845Z",
- "updated": "2017-11-01T02:08:53.866Z",
- "metadata": null,
- "next_step": null,
- "conditions": "$date != \"cancel\" || $person != \"cancel\"",
- "description": null,
- "dialog_node": "node_12_1509501240595",
- "previous_sibling": "handler_14_1509501586776"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {
- "text": {
- "values": [
- "You have gotten the question wrong too many times."
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": "node_1_1509501013160",
- "context": {
- "date": "cancel",
- "person": "cancel",
- "counter": 99
- },
- "created": "2017-11-01T01:53:06.112Z",
- "updated": "2017-11-01T02:19:50.077Z",
- "metadata": null,
- "next_step": null,
- "conditions": "$counter > 3",
- "event_name": "generic",
- "description": null,
- "dialog_node": "handler_10_1509501135265",
- "previous_sibling": "node_6_1509502255826"
- },
- {
- "type": "slot",
- "title": null,
- "output": null,
- "parent": "node_1_1509501013160",
- "context": null,
- "created": "2017-11-01T01:50:51.268Z",
- "updated": "2017-11-01T01:50:58.334Z",
- "metadata": null,
- "variable": "$person",
- "next_step": null,
- "conditions": null,
- "description": null,
- "dialog_node": "slot_6_1509501050934",
- "previous_sibling": "slot_3_1509501035783"
- },
- {
- "title": null,
- "output": {},
- "parent": "node_1_1509501013160",
- "context": {
- "date": null,
- "person": null,
- "counter": 1
- },
- "created": "2017-11-01T02:10:56.128Z",
- "updated": "2017-11-01T02:22:43.394Z",
- "metadata": null,
- "next_step": null,
- "conditions": "$counter == 99",
- "description": null,
- "dialog_node": "node_6_1509502255826",
- "previous_sibling": null
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {
- "text": "What person"
- },
- "parent": "slot_6_1509501050934",
- "context": null,
- "created": "2017-11-01T01:50:52.131Z",
- "updated": "2017-11-01T01:51:16.203Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "focus",
- "description": null,
- "dialog_node": "handler_8_1509501050934",
- "previous_sibling": "handler_7_1509501050934"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": null,
- "parent": "slot_6_1509501050934",
- "context": {
- "person": "@sys-person"
- },
- "created": "2017-11-01T01:50:51.710Z",
- "updated": "2017-11-01T01:50:58.730Z",
- "metadata": null,
- "next_step": null,
- "conditions": "@sys-person",
- "event_name": "input",
- "description": null,
- "dialog_node": "handler_7_1509501050934",
- "previous_sibling": null
- },
- {
- "type": "event_handler",
- "title": null,
- "output": {
- "text": "What date"
- },
- "parent": "slot_3_1509501035783",
- "context": null,
- "created": "2017-11-01T01:50:37.792Z",
- "updated": "2017-11-01T01:50:51.035Z",
- "metadata": null,
- "next_step": null,
- "conditions": null,
- "event_name": "focus",
- "description": null,
- "dialog_node": "handler_5_1509501035783",
- "previous_sibling": "handler_4_1509501035783"
- },
- {
- "type": "event_handler",
- "title": null,
- "output": null,
- "parent": "slot_3_1509501035783",
- "context": {
- "date": "@sys-date"
- },
- "created": "2017-11-01T01:50:37.300Z",
- "updated": "2017-11-01T01:50:44.828Z",
- "metadata": null,
- "next_step": null,
- "conditions": "@sys-date",
- "event_name": "input",
- "description": null,
- "dialog_node": "handler_4_1509501035783",
- "previous_sibling": null
- },
- {
- "type": "frame",
- "title": null,
- "output": {},
- "parent": null,
- "context": null,
- "created": "2017-11-01T01:50:13.446Z",
- "updated": "2017-11-01T02:12:04.071Z",
- "metadata": {
- "fallback": "leave",
- "_customization": {
- "mcr": true
- }
- },
- "next_step": {
- "behavior": "jump_to",
- "selector": "condition",
- "dialog_node": "node_6_1509502255826"
- },
- "conditions": "input.text == \"go\"",
- "description": null,
- "dialog_node": "node_1_1509501013160",
- "previous_sibling": "Welcome"
- },
- {
- "title": null,
- "output": {
- "text": {
- "values": [
- "I didn't understand."
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": null,
- "context": null,
- "created": "2017-11-01T02:04:41.910Z",
- "updated": "2017-11-01T02:05:01.166Z",
- "metadata": null,
- "next_step": null,
- "conditions": "anything_else",
- "description": null,
- "dialog_node": "node_1_1509501881619",
- "previous_sibling": "node_1_1509501013160"
- },
- {
- "title": "Welcome",
- "output": {
- "text": {
- "values": [
- "Type in `go` to activate the slot."
- ],
- "selection_policy": "sequential"
- }
- },
- "parent": null,
- "context": {
- "counter": 1
- },
- "created": "2017-10-26T06:20:25.790Z",
- "updated": "2017-11-01T02:07:50.727Z",
- "metadata": null,
- "next_step": null,
- "conditions": "welcome",
- "description": null,
- "dialog_node": "Welcome",
- "previous_sibling": null
- }
- ],
- "workspace_id": "09185f30-2ebc-4e47-9069-49236ed5ba4e",
- "counterexamples": [],
- "learning_opt_out": false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement