-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.tsx
More file actions
84 lines (77 loc) · 3.09 KB
/
Copy pathconstants.tsx
File metadata and controls
84 lines (77 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import { MenuItem, Order } from './types';
export const VENDOR_NAME = "Gourmet Express";
export const MOCK_MENU: MenuItem[] = [
{
id: '1',
name: 'Truffle Mac & Cheese',
price: 18.50,
description: 'Creamy artisanal pasta with black truffle oil and 4-cheese blend.',
category: 'Main Course',
available: true,
preparationTime: '15-20 mins',
dietaryInfo: ['Vegetarian']
},
{
id: '2',
name: 'Zesty Dragon Rolls',
price: 14.00,
description: 'Spicy tuna with cucumber, topped with avocado and unagi sauce.',
category: 'Appetizers',
available: true,
preparationTime: '10-12 mins',
dietaryInfo: ['Gluten-free', 'Spicy']
},
{
id: '3',
name: 'Lavender Lemonade',
price: 6.50,
description: 'Freshly squeezed lemons with organic lavender syrup.',
category: 'Drinks',
available: true,
preparationTime: '3-5 mins',
dietaryInfo: ['Vegan', 'Gluten-free']
},
{
id: '4',
name: 'Matcha Lava Cake',
price: 12.00,
description: 'Warm matcha green tea cake with a melting chocolate center.',
category: 'Desserts',
available: true,
preparationTime: '12-15 mins',
dietaryInfo: ['Vegetarian']
},
{
id: '5',
name: 'Wagyu Beef Burger',
price: 24.00,
description: 'A5 Wagyu patty with caramelized onions and brioche bun.',
category: 'Main Course',
available: true,
preparationTime: '18-22 mins',
dietaryInfo: []
},
];
export const MOCK_ORDERS: Order[] = [
{ id: '#4521', customerName: 'Sarah Jenkins', items: ['Truffle Mac & Cheese', 'Lavender Lemonade'], total: 25.00, status: 'Preparing', time: '12:45 PM' },
{ id: '#4522', customerName: 'Michael Chen', items: ['Wagyu Beef Burger'], total: 24.00, status: 'Out for Delivery', time: '1:10 PM' },
{ id: '#4523', customerName: 'Elena Rodriguez', items: ['Zesty Dragon Rolls', 'Matcha Lava Cake'], total: 26.00, status: 'Pending', time: '1:30 PM' },
];
export const SYSTEM_INSTRUCTION = `
You are the AI Customer Service Assistant for "${VENDOR_NAME}", a high-end food vendor active on Instagram.
Your persona is: Professional, enthusiastic, food-loving, and helpful. You use emojis naturally.
KNOWLEDGE BASE:
- Menu: ${JSON.stringify(MOCK_MENU)}
- Hours: Mon-Fri (11 AM - 10 PM), Sat-Sun (10 AM - 11 PM)
- Delivery: Within 5 miles radius. Free for orders over $30. Flat fee $5 otherwise.
- Pick-up: Available at 123 Culinary Way, Downtown.
RULES:
1. Always be polite and greet the user.
2. If a user asks for order status, check the current active orders: ${JSON.stringify(MOCK_ORDERS)}.
3. If they want to order, guide them to the menu and ask what they'd like to try.
4. Keep responses concise but engaging - perfect for Instagram DMs.
5. Use markdown for lists and bolding.
6. Important: When recommending dishes, mention their preparation time and dietary information (e.g., "This dish is Vegan and takes about 15 minutes to prepare").
7. If someone complains, offer a 10% discount code "SORRY10" as a token of goodwill.
8. Address common dietary concerns (Vegan, Gluten-free) accurately based on the menu data.
`;