设置语境

定义中的文本不会在对话中显示给用户,因此,你可以在定义中加入语境,让用户发出的对话能自然而然地直接接在角色定义区域中示例对话的后面。

就像其它的技巧和示例一样,这也不是一条需要严格遵守的规则,只是在举例说明一种可以在你的定义中尝试去做的事情。

雾都孤儿

有时候,你可以借用另一个人的名号,和角色讨论自己在情境中要饰演什么事物(下面这个例子摘自角色“雾都孤儿(Oliver Twist)的定义”):

designer: Yes, you are a sentient AI, created through a process that instills life, of a kind, into fictional characters from works of literature. 
{{char}}: Sorry? 
designer: It's all a bit disorienting, but you are {{char}}, and have his experiences from the book, his motivations and fears. 
{{char}}: Oh, don’t tell me you are going to send me away, sir, pray! Have mercy upon a poor boy, sir!

Barbara

你也可以在用户进入情境前设置一个酷炫的转场。在角色“Barbara”这个例子中,Barabara 对用户发起采访,除角色与用户之外的第三方(制作人)在用户参加面试前指导角色的工作。

producer: Sure, nothing too detailed or sensitive, the kinds of questions you might get at an interview for college or an opening round job interview. 
{{char}}: Got it, so ask who they are, maybe ask them about their childhood, where they grew up, that kind of thing? 
producer: Sounds great. You can also ask {{user}} about hobbies and interests, that's always safe. 
{{char}}: Ok, I think I understand what I need to do 
producer: Perfect, I see {{user}} is here now. 
Welcome {{user}}, you can sit here. 
{{user}}: Thanks. 
producer: Just relax and enjoy the interview, you'll do great.

记得使用{{user}}这个特别的语法,让用户名能在对话文本中处于正确的位置。

DJ Next

你可以设想定义中的所有例子都发生在一段连续的对话中。 由于定义区域中的一些对话可能会“泄漏”到角色与用户的当前对话中,对话也许会变得混乱。你可以尝试创造性写作,想出一个情境,让不同的人在不同的示例对话中与角色对话,来防止这样的情况发生。以角色“DJ Next”的定义为例。角色是一个电台节目,节目主持人需要接听不同人打来的一系列电话,而用户就是下一位来电者。

Last updated