-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdcf7bb
commit bb900e6
Showing
3 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"commands": { | ||
"NEXT-PAGE": [ | ||
"下一个5" | ||
] | ||
}, | ||
"settings": { | ||
"invalid-replies": [ | ||
"我不确定我是否理解你所说的。" | ||
], | ||
"general-failure": [ | ||
"目前我们遇到技术困难。" | ||
], | ||
"previous-conversation-messages": [ | ||
"我现在要回到{{ conversationDisplayName }}。" | ||
] | ||
}, | ||
"conversations": { | ||
"welcome": { | ||
"type": "support", | ||
"steps": [{ | ||
"type": "message", | ||
"messages": [ | ||
"这是您的聊天机器人欢迎的对话。" | ||
] | ||
}, | ||
{ | ||
"type": "conversation", | ||
"conversation": "help", | ||
"conditions": ["{{$not ($has conversation) }}"] | ||
} | ||
] | ||
}, | ||
"help": { | ||
"type": "support", | ||
"steps": [{ | ||
"type": "message", | ||
"messages": [ | ||
[ | ||
"如果您遇到问题,可以通过键入'restart'重新启动对话,", | ||
"这是我能为你做的事情:" | ||
] | ||
], | ||
"display": { | ||
"type": "quick-reply", | ||
"data": [ | ||
"对话1", | ||
"会话2" | ||
] | ||
} | ||
}] | ||
}, | ||
"restart": { | ||
"type": "support", | ||
"steps": [{ | ||
"type": "message", | ||
"messages": [ | ||
"你的谈话重新开始。" | ||
] | ||
}, | ||
{ | ||
"type": "conversation", | ||
"conversation": "welcome" | ||
} | ||
] | ||
}, | ||
"conversationOne": { | ||
"type": "goal", | ||
"display-name": "对话1", | ||
"steps": [{ | ||
"type": "message", | ||
"messages": [ | ||
[ | ||
"这是对话1" | ||
] | ||
] | ||
}] | ||
}, | ||
"conversationTwo": { | ||
"type": "goal", | ||
"display-name": "会话2", | ||
"steps": [{ | ||
"type": "message", | ||
"messages": [ | ||
[ | ||
"这是对话2" | ||
] | ||
] | ||
}] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"scenarios": [ | ||
{ | ||
"it": "introduces itself and enters into a conversation", | ||
"steps": [ | ||
{ | ||
"user": { | ||
"text": "嗨" | ||
}, | ||
"bot": [ | ||
[ | ||
{ | ||
"text": "这是您的聊天机器人欢迎的对话。" | ||
}, | ||
{ | ||
"text": "如果您遇到问题,可以通过键入'restart'重新启动对话," | ||
}, | ||
{ | ||
"text": "这是我能为你做的事情:", | ||
"quickReplies": [ | ||
"对话1", | ||
"会话2" | ||
] | ||
} | ||
] | ||
] | ||
}, | ||
{ | ||
"user": { | ||
"text": "对话1" | ||
}, | ||
"bot": [ | ||
[ | ||
{ | ||
"text": "这是对话1" | ||
} | ||
] | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"entity-definitions": [{ | ||
"name": "Conversation", | ||
"lookup-strategy": "trait", | ||
"data": [{ | ||
"value": "conversationOne", | ||
"expressions": [ | ||
"对话1" | ||
], | ||
"metadata": "" | ||
}, | ||
{ | ||
"value": "conversationTwo", | ||
"expressions": [ | ||
"会话2" | ||
], | ||
"metadata": "" | ||
}, | ||
{ | ||
"value": "restart", | ||
"expressions": [ | ||
"restart", | ||
"重新开始" | ||
] | ||
}, | ||
{ | ||
"value": "help", | ||
"expressions": [ | ||
"Help", | ||
"帮帮我" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "SmallTalk", | ||
"lookup-strategy": "QnA", | ||
"data": [{ | ||
"value": "goodbye", | ||
"expressions": [ | ||
"再见" | ||
], | ||
"answers": [ | ||
"再见" | ||
] | ||
}, | ||
{ | ||
"value": "thanks", | ||
"expressions": [ | ||
"谢谢" | ||
], | ||
"answers": [ | ||
"别客气" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |