Skip to content

Instantly share code, notes, and snippets.

@wrathagom
Created February 12, 2019 19:18
Show Gist options
  • Save wrathagom/e9fd860dc3f905c4e5b0b33448d5ac99 to your computer and use it in GitHub Desktop.
Save wrathagom/e9fd860dc3f905c4e5b0b33448d5ac99 to your computer and use it in GitHub Desktop.
Survey Bot Example for Articulate 0.20.3
{
"agentName": "Survey Bot",
"description": "A demo for Github Issue.",
"language": "en",
"timezone": "UTC",
"useWebhook": false,
"usePostFormat": false,
"multiCategory": false,
"categoryClassifierThreshold": 0.5,
"fallbackAction": "Default Fallback Action",
"status": "Ready",
"lastTraining": "2019-02-12T19:11:25Z",
"extraTrainingData": false,
"enableModelsPerCategory": false,
"model": "default_355d3e42-13a3-5137-be4e-c206d3234778",
"parameters": {},
"settings": {
"rasaURL": "http://rasa:5000",
"ducklingURL": "http://duckling:8000",
"ducklingDimension": [
"amount-of-money",
"distance",
"duration",
"email",
"number",
"ordinal",
"phone-number",
"quantity",
"temperature",
"time",
"url",
"volume"
],
"spacyPretrainedEntities": [
"PERSON",
"NORP",
"FAC",
"ORG",
"GPE",
"LOC",
"PRODUCT",
"EVENT",
"WORK_OF_ART",
"LAW",
"LANGUAGE",
"DATE",
"TIME",
"PERCENT",
"MONEY",
"QUANTITY",
"ORDINAL",
"CARDINAL"
],
"categoryClassifierPipeline": [
{
"name": "intent_featurizer_count_vectors"
},
{
"name": "intent_classifier_tensorflow_embedding",
"intent_tokenization_flag": true,
"intent_split_symbol": "+__+"
},
{
"name": "nlp_spacy"
},
{
"name": "tokenizer_spacy"
},
{
"name": "ner_crf"
},
{
"name": "ner_synonyms"
},
{
"name": "ner_spacy"
}
],
"sayingClassifierPipeline": [
{
"name": "intent_featurizer_count_vectors"
},
{
"name": "intent_classifier_tensorflow_embedding",
"intent_tokenization_flag": true,
"intent_split_symbol": "+__+"
},
{
"name": "nlp_spacy"
},
{
"name": "tokenizer_spacy"
},
{
"name": "ner_crf"
},
{
"name": "ner_synonyms"
},
{
"name": "ner_spacy"
}
],
"keywordClassifierPipeline": [
{
"name": "nlp_spacy"
},
{
"name": "tokenizer_spacy"
},
{
"name": "ner_crf"
},
{
"name": "ner_synonyms"
},
{
"name": "ner_spacy"
}
],
"sayingsPageSize": 5,
"keywordsPageSize": 5,
"modifierSayingsPageSize": 5,
"reviewPageSize": 5
},
"categoryRecognizer": true,
"modifiersRecognizer": true,
"modifiersRecognizerJustER": "",
"creationDate": "1549996179000",
"modificationDate": "1549998685000",
"actions": [
{
"actionName": "Default Fallback Action",
"slots": [],
"responses": [
{
"textResponse": "Sorry can you rephrase that?",
"actions": []
},
{
"textResponse": "I'm still learning to speak with humans. What you mean?",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549996180000",
"modificationDate": "1549996180000"
},
{
"actionName": "Greet",
"slots": [],
"responses": [
{
"textResponse": "Hello!",
"actions": [
"Offer Help"
]
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549996228000",
"modificationDate": "1549996586000"
},
{
"actionName": "Offer Help",
"slots": [
{
"slotName": "help",
"uiColor": "#2196f3",
"keyword": "Confirmation",
"keywordId": 0,
"isList": false,
"isRequired": true,
"textPrompts": [
"Is there anything I can help you with?"
]
}
],
"responses": [
{
"textResponse": "{{#eq slots.help.value 'no'}}Okay, but let me know if you need anything.{{/eq}}",
"actions": []
},
{
"textResponse": "{{#eq slots.help.value 'yes'}}Sure, let's see what I can do for you.{{/eq}}",
"actions": [
"Problem Description"
]
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549996274000",
"modificationDate": "1549996596000"
},
{
"actionName": "Problem Description",
"slots": [],
"responses": [
{
"textResponse": "First, can you describe what's wrong with your server?",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549996572000",
"modificationDate": "1549996572000"
},
{
"actionName": "Server Broken",
"slots": [],
"responses": [
{
"textResponse": "If your server is mis-behaving the first thing to try is restarting. Please restart your server now.",
"actions": [
"Solved"
]
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549997101000",
"modificationDate": "1549997192000"
},
{
"actionName": "Solved",
"slots": [
{
"slotName": "solved",
"uiColor": "#2196f3",
"keyword": "Confirmation",
"keywordId": 0,
"isList": false,
"isRequired": true,
"textPrompts": [
"Did that solve your problem?"
]
}
],
"responses": [
{
"textResponse": "{{#eq slots.solved.value 'yes'}}Great.{{/eq}}",
"actions": [
"Offer Survey"
]
},
{
"textResponse": "{{#eq slots.solved.value 'no'}}I'm sorry, let's get you connected to someone who can help you.{{/eq}}",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549997171000",
"modificationDate": "1549998170000"
},
{
"actionName": "Gratitude",
"slots": [],
"responses": [
{
"textResponse": "No Prob!",
"actions": []
},
{
"textResponse": "Happy I could help.",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549997589000",
"modificationDate": "1549997589000"
},
{
"actionName": "Offer Survey",
"slots": [
{
"slotName": "survey",
"uiColor": "#2196f3",
"keyword": "Confirmation",
"keywordId": 0,
"isList": false,
"isRequired": true,
"textPrompts": [
"Do you mind answering a 2-3 questions survey related to my performance?"
]
}
],
"responses": [
{
"textResponse": "{{#eq slots.survey.value 'yes'}}Perfect!{{/eq}}",
"actions": [
"Survey"
]
},
{
"textResponse": "{{#eq slots.survey.value 'no'}}Thanks for your time!{{/eq}}",
"actions": [
"Goodbye"
]
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549997690000",
"modificationDate": "1549998237000"
},
{
"actionName": "Goodbye",
"slots": [],
"responses": [
{
"textResponse": "Good Bye!",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549997717000",
"modificationDate": "1549997717000"
},
{
"actionName": "Survey",
"slots": [
{
"slotName": "Question 1",
"uiColor": "#e91e63",
"keyword": "Score",
"keywordId": 0,
"isList": false,
"isRequired": true,
"textPrompts": [
"On a scale of 1 to 10, how would you rate my performance today?"
]
},
{
"slotName": "Question 2",
"uiColor": "#2196f3",
"keyword": "Confirmation",
"keywordId": 0,
"isList": false,
"isRequired": true,
"textPrompts": [
"Do you have any comment about your experience with me?"
]
}
],
"responses": [
{
"textResponse": "{{#eq slots.[Question 2].value 'no'}}Perfect Thank you!{{/eq}}",
"actions": []
},
{
"textResponse": "{{#eq slots.[Question 2].value 'yes'}}Great, let me know what your thoughts were.{{/eq}}",
"actions": []
}
],
"useWebhook": false,
"usePostFormat": false,
"creationDate": "1549998052000",
"modificationDate": "1549998633000"
}
],
"categories": [
{
"categoryName": "Small Talk",
"enabled": true,
"actionThreshold": 0.5,
"status": "Out of Date",
"lastTraining": "2019-02-12T18:29:48Z",
"model": "",
"extraTrainingData": false,
"parameters": {},
"creationDate": "1549996188000",
"modificationDate": "1549997723000",
"sayings": [
{
"userSays": "hi",
"keywords": [],
"actions": [
"Greet"
],
"creationDate": "1549996234000",
"modificationDate": "1549996234000"
},
{
"userSays": "hello",
"keywords": [],
"actions": [
"Greet"
],
"creationDate": "1549996235000",
"modificationDate": "1549996235000"
},
{
"userSays": "Hi!",
"keywords": [],
"actions": [
"Greet"
],
"creationDate": "1549996236000",
"modificationDate": "1549996236000"
},
{
"userSays": "When I kick my server is becomes broken.",
"keywords": [],
"actions": [
"Server Broken"
],
"creationDate": "1549997209000",
"modificationDate": "1549997209000"
},
{
"userSays": "my server isn't responding",
"keywords": [],
"actions": [
"Server Broken"
],
"creationDate": "1549997214000",
"modificationDate": "1549997214000"
},
{
"userSays": "when I try to install blah my server crashes",
"keywords": [],
"actions": [
"Server Broken"
],
"creationDate": "1549997227000",
"modificationDate": "1549997227000"
},
{
"userSays": "Thanks!",
"keywords": [],
"actions": [
"Gratitude"
],
"creationDate": "1549997597000",
"modificationDate": "1549997597000"
},
{
"userSays": "Thank you for your help!",
"keywords": [],
"actions": [
"Gratitude"
],
"creationDate": "1549997606000",
"modificationDate": "1549997606000"
},
{
"userSays": "bye",
"keywords": [],
"actions": [
"Goodbye"
],
"creationDate": "1549997720000",
"modificationDate": "1549997720000"
},
{
"userSays": "goodbye",
"keywords": [],
"actions": [
"Goodbye"
],
"creationDate": "1549997721000",
"modificationDate": "1549997721000"
},
{
"userSays": "good bye",
"keywords": [],
"actions": [
"Goodbye"
],
"creationDate": "1549997723000",
"modificationDate": "1549997723000"
}
]
}
],
"keywords": [
{
"keywordName": "Confirmation",
"uiColor": "#2196f3",
"examples": [
{
"value": "yes",
"synonyms": [
"yes"
]
},
{
"value": "no",
"synonyms": [
"no"
]
}
],
"regex": "",
"type": "learned",
"modifiers": [
{
"modifierName": "Affirmation",
"action": "SET",
"valueSource": "static",
"staticValue": "yes",
"sayings": [
{
"userSays": "yes",
"keywords": []
},
{
"userSays": "yes please",
"keywords": []
},
{
"userSays": "yep",
"keywords": []
},
{
"userSays": "absolutely",
"keywords": []
},
{
"userSays": "affirmative",
"keywords": []
},
{
"userSays": "sure",
"keywords": []
}
]
},
{
"modifierName": "Negation",
"action": "SET",
"valueSource": "static",
"staticValue": "no",
"sayings": [
{
"userSays": "no",
"keywords": []
},
{
"userSays": "no thanks",
"keywords": []
},
{
"userSays": "nope",
"keywords": []
},
{
"userSays": "negative",
"keywords": []
}
]
}
],
"creationDate": "1549996293000",
"modificationDate": "1549998380000"
},
{
"keywordName": "Score",
"uiColor": "#e91e63",
"examples": [
{
"value": "1",
"synonyms": [
"1"
]
},
{
"value": "2",
"synonyms": [
"2"
]
},
{
"value": "3",
"synonyms": [
"3"
]
},
{
"value": "4",
"synonyms": [
"4"
]
}
],
"regex": "",
"type": "learned",
"modifiers": [
{
"modifierName": "Set Score",
"action": "SET",
"valueSource": "keyword",
"staticValue": "",
"sayings": [
{
"userSays": "1",
"keywords": [
{
"value": "1",
"keyword": "Score",
"start": 0,
"end": 1,
"keywordId": 33
}
]
},
{
"userSays": "2",
"keywords": [
{
"value": "2",
"keyword": "Score",
"start": 0,
"end": 1,
"keywordId": 33
}
]
},
{
"userSays": "3",
"keywords": [
{
"value": "3",
"keyword": "Score",
"start": 0,
"end": 1,
"keywordId": 33
}
]
},
{
"userSays": "4",
"keywords": [
{
"value": "4",
"keyword": "Score",
"start": 0,
"end": 1,
"keywordId": 33
}
]
},
{
"userSays": "about an 8",
"keywords": [
{
"value": "8",
"keyword": "Score",
"start": 9,
"end": 10,
"keywordId": 33
}
]
},
{
"userSays": "just a 3",
"keywords": [
{
"value": "3",
"keyword": "Score",
"start": 7,
"end": 8,
"keywordId": 33
}
]
}
]
}
],
"creationDate": "1549998560000",
"modificationDate": "1549998619000"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment