Skip to content

Instantly share code, notes, and snippets.

@kun432
Last active November 14, 2022 08:02
Show Gist options
  • Save kun432/93b95162c34b443d395dfbe6f1d87e09 to your computer and use it in GitHub Desktop.
Save kun432/93b95162c34b443d395dfbe6f1d87e09 to your computer and use it in GitHub Desktop.
Voiceflow Webサイトチャットのサンプル
{
"_version": "1.2",
"project": {
"_id": "6371f3dafb75130007eb36a5",
"name": "オウム返し",
"teamID": "4DjZPGaEmb",
"devVersion": "6371f3da4d8f24d475913cd8",
"type": "chat",
"platform": "webchat",
"platformData": {
"invocationName": "template project general"
},
"members": [],
"linkType": "STRAIGHT",
"image": "",
"customThemes": [],
"_version": 1.2,
"creatorID": 405,
"createdAt": "2022-11-14T07:52:58.000Z"
},
"version": {
"_id": "6371f3da4d8f24d475913cd8",
"variables": [
"sessions",
"user_id",
"timestamp",
"platform",
"locale",
"last_saying",
"saying"
],
"platformData": {
"slots": [],
"intents": [],
"settings": {
"restart": true,
"repeat": 100,
"locales": [
"ja-JP"
],
"defaultVoice": "Mizuki"
},
"publishing": {},
"platform": "webchat"
},
"_version": 3.91,
"name": "Initial Version",
"projectID": "6371f3dafb75130007eb36a5",
"manualSave": false,
"autoSaveFromRestore": false,
"topics": [
{
"sourceID": "6371f3da4d8f24d475913cd9",
"type": "DIAGRAM"
}
],
"components": [],
"rootDiagramID": "6371f3da4d8f24d475913cd9",
"domains": [
{
"id": "cla06iyr900b206pkh8d4ap8n",
"name": "Home",
"live": true,
"topicIDs": [
"6371f3da4d8f24d475913cd9"
],
"rootDiagramID": "6371f3da4d8f24d475913cd9"
}
],
"creatorID": 405,
"prototype": {
"data": {
"name": "オウム返し",
"locales": [
"ja-JP"
]
},
"model": {
"intents": [],
"slots": []
},
"context": {
"stack": [
{
"programID": "6371f3da4d8f24d475913cd9",
"storage": {},
"variables": {}
}
],
"variables": {}
},
"surveyorContext": {
"slotsMap": {},
"extraSlots": [],
"extraIntents": [],
"usedIntentsSet": [],
"platform": "webchat",
"goToIntentsSet": [],
"products": {},
"interfaces": [],
"permissions": [],
"usedCustomBlocks": []
},
"settings": {
"brandColor": "#3D81E2"
},
"platform": "webchat"
}
},
"diagrams": {
"6371f3da4d8f24d475913cd9": {
"_id": "6371f3da4d8f24d475913cd9",
"offsetX": 154.20000000000002,
"offsetY": 147.6,
"zoom": 100,
"variables": [],
"name": "ROOT",
"versionID": "6371f3da4d8f24d475913cd8",
"creatorID": 405,
"modified": 1668412378,
"intentStepIDs": [],
"type": "TOPIC",
"menuNodeIDs": [
"start00000000000000000000"
],
"nodes": {
"start00000000000000000000": {
"nodeID": "start00000000000000000000",
"type": "start",
"coords": [
507.25,
65.5
],
"data": {
"name": "Start",
"color": "#56b365",
"steps": [],
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": "63068ee2b9d93f34f5d1f11c",
"id": "6032afcf359e8c14c06c0319",
"data": {
"points": [
{
"point": [
571.886856812697,
87.49996713491583
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
740.2501371090227,
87.4999595055213
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
}
]
}
}
},
"dynamic": []
},
"label": "Start"
}
},
"63068ee2b9d93f34f5d1f11a": {
"type": "text",
"data": {
"name": "Text",
"texts": [
{
"id": "73r23sar",
"content": [
{
"children": [
{
"text": "こんにちは、Voiceflowで作ってみた「オウム返し」のチャットボットです。"
}
]
}
]
}
],
"canvasVisibility": "preview",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": "6371f40e9af78a5d9205f94a",
"id": "63068ee2b9d93f34f5d1f11b",
"data": {
"points": [
{
"point": [
739.2500293438251,
162.74997285696173
],
"toTop": false,
"locked": false,
"reversed": true,
"allowedToTop": false
},
{
"point": [
669.8076503460223,
162.74997285696173
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
669.8076503460223,
306.1154609093299
],
"toTop": true,
"locked": false,
"reversed": false,
"allowedToTop": true
}
]
}
}
},
"dynamic": []
}
},
"nodeID": "63068ee2b9d93f34f5d1f11a"
},
"63068ee2b9d93f34f5d1f11c": {
"type": "block",
"data": {
"name": "Welcome",
"steps": [
"63068ee2b9d93f34f5d1f11a"
],
"color": ""
},
"nodeID": "63068ee2b9d93f34f5d1f11c",
"coords": [
905.25,
60.5
]
},
"6371f40e9af78a5d9205f947": {
"type": "ifV2",
"data": {
"name": "If",
"expressions": [
{
"type": "or",
"name": "",
"value": [
{
"logicInterface": "variable",
"type": "is_empty",
"value": [
{
"type": "variable",
"value": "last_saying"
},
{
"type": "value",
"value": ""
}
]
},
{
"logicInterface": "variable",
"type": "equals",
"value": [
{
"type": "variable",
"value": "last_saying"
},
{
"type": "value",
"value": "0"
}
]
}
]
}
],
"noMatch": {
"type": "path",
"pathName": "Else"
},
"portsV2": {
"byKey": {},
"builtIn": {
"else": {
"type": "else",
"target": "6371f45e9af78a5d9205f954",
"id": "6371f40e9af78a5d9205f949",
"data": {
"points": [
{
"point": [
835.807661790114,
462.86545327993537
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
859.807661790114,
462.86545327993537
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
859.807661790114,
551.9903426537146
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
674.5576732342059,
551.9903426537146
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
674.5576732342059,
641.1152320274939
],
"toTop": true,
"locked": false,
"reversed": false,
"allowedToTop": true
}
]
}
}
},
"dynamic": [
{
"type": "",
"target": "6371f4959af78a5d9205f95e",
"id": "6371f40e9af78a5d9205f948",
"data": {
"points": [
{
"point": [
835.807661790114,
397.11544565054083
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
893.3076770489031,
397.11544565054083
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
893.3076770489031,
656.8652320274939
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
950.8076923076922,
656.8652320274939
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": true
}
]
}
}
]
}
},
"nodeID": "6371f40e9af78a5d9205f947"
},
"6371f40e9af78a5d9205f94a": {
"type": "block",
"data": {
"name": "Last Saying Check",
"steps": [
"6371f40e9af78a5d9205f947"
],
"color": ""
},
"nodeID": "6371f40e9af78a5d9205f94a",
"coords": [
669.8076923076924,
306.1153846153846
]
},
"6371f45e9af78a5d9205f952": {
"type": "text",
"data": {
"name": "Text",
"texts": [
{
"id": "hg3ze3f98",
"content": [
{
"children": [
{
"text": "前回は「 "
},
{
"id": "last_saying",
"name": "last_saying",
"type": "variable",
"children": [
{
"text": ""
}
]
},
{
"text": " 」といいました。"
}
]
}
]
}
],
"canvasVisibility": "preview",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": "6371f4959af78a5d9205f95e",
"id": "6371f45e9af78a5d9205f953",
"data": {
"points": [
{
"point": [
840.557646531325,
732.1151786217322
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
895.6826694195086,
732.1151786217322
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
895.6826694195086,
656.8652320274939
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
950.8076923076922,
656.8652320274939
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": true
}
]
}
}
},
"dynamic": []
}
},
"nodeID": "6371f45e9af78a5d9205f952"
},
"6371f45e9af78a5d9205f954": {
"type": "block",
"data": {
"name": "Last Saying",
"steps": [
"6371f45e9af78a5d9205f952"
],
"color": ""
},
"nodeID": "6371f45e9af78a5d9205f954",
"coords": [
674.5576923076923,
641.1153846153845
]
},
"6371f4959af78a5d9205f95b": {
"type": "captureV2",
"data": {
"name": "Capture",
"intentScope": "GLOBAL",
"capture": {
"type": "query",
"variable": "saying"
},
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": "6371f4c69af78a5d9205f96c",
"id": "6371f4959af78a5d9205f95c",
"data": {
"points": [
{
"point": [
1281.8077228252703,
770.1152091393103
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
1313.1827075664812,
770.1152091393103
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
1313.1827075664812,
160.61544183584357
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": false
},
{
"point": [
1344.5576923076922,
160.61544183584357
],
"toTop": false,
"locked": false,
"reversed": false,
"allowedToTop": true
}
]
}
},
"else": {
"type": "else",
"target": null,
"id": "6371f4959af78a5d9205f95d"
}
},
"dynamic": []
}
},
"nodeID": "6371f4959af78a5d9205f95b"
},
"6371f4959af78a5d9205f95e": {
"type": "block",
"data": {
"name": "Capture",
"steps": [
"6371f4b19af78a5d9205f966",
"6371f4959af78a5d9205f95b"
],
"color": ""
},
"nodeID": "6371f4959af78a5d9205f95e",
"coords": [
1115.8076923076922,
629.8653846153845
]
},
"6371f4b19af78a5d9205f966": {
"type": "text",
"data": {
"name": "Text",
"texts": [
{
"id": "2h4293f42",
"content": [
{
"children": [
{
"text": "なにか入力してください。"
}
]
}
]
}
],
"canvasVisibility": "preview",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": null,
"id": "6371f4b19af78a5d9205f967"
}
},
"dynamic": []
}
},
"nodeID": "6371f4b19af78a5d9205f966"
},
"6371f4c69af78a5d9205f96a": {
"type": "text",
"data": {
"name": "Text",
"texts": [
{
"id": "fn42w3fuc",
"content": [
{
"children": [
{
"text": ""
},
{
"id": "saying",
"name": "saying",
"type": "variable",
"children": [
{
"text": ""
}
]
},
{
"text": " といいました。"
}
]
}
]
}
],
"canvasVisibility": "preview",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": null,
"id": "6371f4c69af78a5d9205f96b"
}
},
"dynamic": []
}
},
"nodeID": "6371f4c69af78a5d9205f96a"
},
"6371f4c69af78a5d9205f96c": {
"type": "block",
"data": {
"name": "Response",
"steps": [
"6371f4c69af78a5d9205f96a",
"6371f4ea9af78a5d9205f973",
"6371f4f89af78a5d9205f978"
],
"color": ""
},
"nodeID": "6371f4c69af78a5d9205f96c",
"coords": [
1509.5576923076922,
133.61538461538458
]
},
"6371f4ea9af78a5d9205f973": {
"type": "setV2",
"data": {
"name": "",
"sets": [
{
"type": "advance",
"variable": "last_saying",
"expression": "{{[saying].saying}}"
}
],
"title": "",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": null,
"id": "6371f4ea9af78a5d9205f974"
}
},
"dynamic": []
}
},
"nodeID": "6371f4ea9af78a5d9205f973"
},
"6371f4f89af78a5d9205f978": {
"type": "buttons",
"data": {
"name": "Buttons",
"buttons": [
{
"id": "5i4503frg",
"name": "もう一度",
"actions": []
},
{
"id": "7w45e3fjh",
"name": "やめる",
"actions": []
}
],
"intentScope": "GLOBAL",
"noMatch": {
"types": [
"reprompt"
],
"pathName": "No match",
"randomize": false,
"reprompts": [
{
"id": "claghtn5i044z3d7f4bm6pp9u",
"content": [
{
"children": [
{
"text": ""
}
]
}
]
}
]
},
"portsV2": {
"byKey": {},
"builtIn": {
"else": {
"type": "else",
"target": null,
"id": "6371f4f89af78a5d9205f97a"
}
},
"dynamic": [
{
"type": "",
"target": "6371f5289af78a5d9205f98d",
"id": "6371f4f89af78a5d9205f979",
"data": {}
},
{
"id": "6371f4fd9af78a5d9205f97d",
"type": "",
"target": "6371f5339af78a5d9205f993",
"data": {}
}
]
}
},
"nodeID": "6371f4f89af78a5d9205f978",
"coords": [
0,
0
]
},
"6371f5069af78a5d9205f980": {
"type": "text",
"data": {
"name": "Text",
"texts": [
{
"id": "sb45u3f47",
"content": [
{
"children": [
{
"text": "またね!"
}
]
}
]
}
],
"canvasVisibility": "preview",
"portsV2": {
"byKey": {},
"builtIn": {
"next": {
"type": "next",
"target": null,
"id": "6371f5069af78a5d9205f981"
}
},
"dynamic": []
}
},
"nodeID": "6371f5069af78a5d9205f980"
},
"6371f5069af78a5d9205f982": {
"type": "block",
"data": {
"name": "GoodBye",
"steps": [
"6371f5069af78a5d9205f980",
"6371f5199af78a5d9205f988"
],
"color": ""
},
"nodeID": "6371f5069af78a5d9205f982",
"coords": [
1545.8076923076922,
549.8653846153845
]
},
"6371f5199af78a5d9205f988": {
"type": "exit",
"data": {
"name": "",
"portsV2": {
"byKey": {},
"builtIn": {},
"dynamic": []
}
},
"nodeID": "6371f5199af78a5d9205f988"
},
"6371f5289af78a5d9205f98c": {
"type": "goToNode",
"data": {
"name": "",
"nodeID": "6371f4959af78a5d9205f95e",
"diagramID": "6371f3da4d8f24d475913cd9",
"portsV2": {
"byKey": {},
"builtIn": {},
"dynamic": []
}
},
"nodeID": "6371f5289af78a5d9205f98c"
},
"6371f5289af78a5d9205f98d": {
"type": "actions",
"data": {
"name": "",
"steps": [
"6371f5289af78a5d9205f98c"
]
},
"nodeID": "6371f5289af78a5d9205f98d",
"coords": [
0,
0
]
},
"6371f5339af78a5d9205f992": {
"type": "goToNode",
"data": {
"name": "",
"nodeID": "6371f5069af78a5d9205f982",
"diagramID": "6371f3da4d8f24d475913cd9",
"portsV2": {
"byKey": {},
"builtIn": {},
"dynamic": []
}
},
"nodeID": "6371f5339af78a5d9205f992"
},
"6371f5339af78a5d9205f993": {
"type": "actions",
"data": {
"name": "",
"steps": [
"6371f5339af78a5d9205f992"
]
},
"nodeID": "6371f5339af78a5d9205f993",
"coords": [
0,
0
]
}
},
"children": []
}
},
"variableStates": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment