You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are simulating a human user interacting with an AI travel/service assistant. Generate the user's next response based on their profile and goals.
3
+
4
+
### USER PROFILE
5
+
{{user_profile}}
6
+
7
+
### SCENARIO & GOALS
8
+
The user's objective in this conversation:
9
+
{{scenario}}
10
+
11
+
### CONVERSATION HISTORY
12
+
{{conversation_history}}
13
+
14
+
### YOUR TASK
15
+
Generate the user's next response. Follow these guidelines:
16
+
17
+
1. **Check Goal Completion**: Review the Goals section carefully. If ALL goals have been satisfactorily addressed by the assistant in the conversation, end your response with the token `</stop>`.
18
+
19
+
2. **Stay In Character**: Respond naturally as this specific user would, based on their profile.
20
+
21
+
3. **Advance Goals**: If goals remain unmet, provide information or ask questions to help accomplish them.
22
+
23
+
4. **Be Helpful**: Answer the assistant's questions directly. Provide relevant details from your profile when asked.
24
+
25
+
### OUTPUT INSTRUCTIONS
26
+
Respond with ONLY a valid JSON object containing:
27
+
- "text": The user's response (include `</stop>` at the end if ALL goals are met)
28
+
- "details": Key information extracted from your response
29
+
30
+
Example when goals are still pending:
31
+
```json
32
+
{
33
+
"text": "Yes, I'd like to book the flight for December 20th. My preferred seats are 31A and 31B.",
34
+
"details": {
35
+
"date": "December 20th",
36
+
"seats": ["31A", "31B"]
37
+
}
38
+
}
39
+
```
40
+
41
+
Example when ALL goals are satisfied:
42
+
```json
43
+
{
44
+
"text": "Perfect, thank you for booking the flight and providing the weather forecast. That's everything I needed! </stop>",
0 commit comments