Skip to content

Instantly share code, notes, and snippets.

@bertwagner
Created November 15, 2019 14:36
Show Gist options
  • Save bertwagner/9ef58c8c46895afecdf0baa95a7e64cd to your computer and use it in GitHub Desktop.
Save bertwagner/9ef58c8c46895afecdf0baa95a7e64cd to your computer and use it in GitHub Desktop.
{
"name": "Get a Quote",
"intents": [
{
"intent": "AutoInsurance",
"examples": [
{
"text": "auto"
},
{
"text": "vehicle insurance"
},
{
"text": "car insurance"
},
{
"text": "auto insurance"
}
],
"description": ""
},
{
"intent": "HomeInsurance",
"examples": [
{
"text": "home"
},
{
"text": "home insurance"
},
{
"text": "house insurance"
}
],
"description": ""
},
{
"intent": "BoatInsurance",
"examples": [
{
"text": "sail boit"
},
{
"text": "boat insurance"
},
{
"text": "insure my boat"
},
{
"text": "rowboat"
}
],
"description": ""
},
{
"intent": "GetInsurance",
"examples": [
{
"text": "i need insurance"
},
{
"text": "i want insurance"
},
{
"text": "how much does insurance cost?"
},
{
"text": "i want to get a quote"
}
],
"description": ""
}
],
"entities": [
{
"entity": "StateName",
"values": [
{
"type": "synonyms",
"value": "Ohio",
"synonyms": [
"oh"
]
},
{
"type": "synonyms",
"value": "Michigan",
"synonyms": [
"MI"
]
},
{
"type": "synonyms",
"value": "New York",
"synonyms": [
"NY"
]
}
],
"fuzzy_match": true
},
{
"entity": "BoatType",
"values": [
{
"type": "synonyms",
"value": "row boat",
"synonyms": [
"rowboat"
]
},
{
"type": "synonyms",
"value": "sail boat",
"synonyms": [
"sail",
"sailboat"
]
},
{
"type": "synonyms",
"value": "speed boat",
"synonyms": [
"power boat, motor boat"
]
},
{
"type": "synonyms",
"value": "jet ski",
"synonyms": []
}
],
"fuzzy_match": true
}
],
"language": "en",
"metadata": {
"api_version": {
"major_version": "v1",
"minor_version": "2018-09-20"
}
},
"skill_id": "4d31c914-7159-45b8-bc7e-cecbc11ec0e2",
"dialog_nodes": [
{
"type": "standard",
"output": {
"generic": [
{
"values": [
{
"text": "You asked for insurance!"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"parent": "node_9_1573823402277",
"conditions": "$AskedForInsurance == 1",
"dialog_node": "node_5_1573826051548",
"previous_sibling": "node_8_1573824364287"
},
{
"type": "standard",
"output": {
"generic": [
{
"values": [
{
"text": "Please visit https://progressive.com/boat to get a quote for your <? @BoatType ?>"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"parent": "node_9_1573823402277",
"conditions": "#BoatInsurance",
"dialog_node": "node_7_1573823526649",
"previous_sibling": "node_4_1573823430948"
},
{
"type": "standard",
"output": {
"generic": [
{
"title": "Do you own or rent your home?",
"options": [
{
"label": "Rent",
"value": {
"input": {
"text": "rent"
}
}
},
{
"label": "Own with a mortgage",
"value": {
"input": {
"text": "mortgage"
}
}
},
{
"label": "Own, fully paid off",
"value": {
"input": {
"text": "own"
}
}
}
],
"response_type": "option"
}
]
},
"parent": "node_9_1573823402277",
"conditions": "#HomeInsurance",
"dialog_node": "node_8_1573824364287",
"previous_sibling": "node_7_1573823526649"
},
{
"type": "standard",
"output": {
"generic": [
{
"values": [
{
"text": "Please visit https://progressive.com to get your quote"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"parent": "node_9_1573823402277",
"conditions": "#AutoInsurance",
"dialog_node": "node_4_1573823430948"
},
{
"type": "standard",
"output": {
"generic": [
{
"values": [
{
"text": "Please visit https://progressive.com/homeowners/ to get a home quote"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"parent": "node_8_1573824364287",
"conditions": "input.text == \"rent\"",
"dialog_node": "node_1_1573823620038"
},
{
"type": "standard",
"title": "Anything else",
"output": {
"generic": [
{
"values": [
{
"text": "I didn't understand. You can try rephrasing."
},
{
"text": "Can you reword your statement? I'm not understanding."
},
{
"text": "I didn't get your meaning."
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"conditions": "anything_else",
"dialog_node": "Anything else",
"previous_sibling": "node_9_1573823402277"
},
{
"type": "standard",
"output": {
"generic": [
{
"values": [
{
"text": "I can help you get an insurance quote. What kind of insurance are you looking for?"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"context": {
"AskedForInsurance": 1
},
"conditions": "#GetInsurance",
"dialog_node": "node_9_1573823402277",
"previous_sibling": "Welcome"
},
{
"type": "standard",
"title": "Welcome",
"output": {
"generic": [
{
"values": [
{
"text": "Hello. How can I help you?"
}
],
"response_type": "text",
"selection_policy": "sequential"
}
]
},
"conditions": "welcome",
"dialog_node": "Welcome"
}
],
"workspace_id": "4d31c914-7159-45b8-bc7e-cecbc11ec0e2",
"counterexamples": [],
"system_settings": {
"tooling": {
"store_generic_responses": true
},
"off_topic": {
"enabled": true
},
"disambiguation": {
"prompt": "Did you mean:",
"none_of_the_above_prompt": "None of the above"
},
"human_agent_assist": {
"prompt": "Did you mean:"
},
"spelling_auto_correct": true
},
"learning_opt_out": false,
"status": "Available"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment