-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknowledge-base.json.example
More file actions
173 lines (173 loc) · 5.32 KB
/
knowledge-base.json.example
File metadata and controls
173 lines (173 loc) · 5.32 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"version": "1.0",
"language": "en",
"description": "Example knowledge base for LiveChat Pro. Copy this file to data/knowledge-base.json or let setup.js create it when you select BOT_MODE=knowledge-base.",
"usage": {
"botMode": "Set BOT_MODE=knowledge-base in .env to answer visitors from this file before escalating to an admin.",
"matching": "Each entry should include clear keywords that visitors are likely to type. Short, specific keywords usually work better than long sentences.",
"fallback": "The fallback message is used when the bot cannot find a confident answer.",
"customization": "Replace the example answers with your real business, product, support, shipping, billing, and contact information."
},
"entryFields": {
"id": "Stable unique identifier. Use lowercase words separated by hyphens.",
"keywords": "Words or short phrases used to match a visitor message.",
"question": "Canonical question this entry answers.",
"answer": "Short answer sent to the visitor when this entry matches.",
"category": "Optional grouping such as support, billing, shipping, account, or sales.",
"source": "Optional note about where the answer came from.",
"confidence": "Optional confidence hint between 0 and 1."
},
"fallback": "Sorry, I do not have a confident answer for that yet. A human agent will contact you shortly.",
"entries": [
{
"id": "business-hours",
"keywords": [
"hours",
"open",
"opening",
"schedule",
"when"
],
"question": "What are your business hours?",
"answer": "We are available Monday to Friday from 9:00 to 18:00.",
"category": "support",
"source": "Example business policy",
"confidence": 0.9
},
{
"id": "pricing",
"keywords": [
"price",
"cost",
"pricing",
"plan",
"subscription"
],
"question": "How much does the service cost?",
"answer": "Plans start at $9/month. Check the pricing page for the full comparison.",
"category": "billing",
"source": "Example pricing page",
"confidence": 0.85
},
{
"id": "contact",
"keywords": [
"contact",
"email",
"phone",
"call",
"reach"
],
"question": "How can I contact you?",
"answer": "You can contact us through this chat or by email at support@example.com.",
"category": "support",
"source": "Example contact policy",
"confidence": 0.85
},
{
"id": "shipping",
"keywords": [
"shipping",
"delivery",
"ship",
"send",
"tracking"
],
"question": "Do you offer shipping?",
"answer": "Yes. Shipping options and delivery times depend on your location and are confirmed at checkout.",
"category": "shipping",
"source": "Example shipping policy",
"confidence": 0.8
},
{
"id": "support",
"keywords": [
"support",
"help",
"issue",
"problem",
"error"
],
"question": "How can I get support?",
"answer": "Tell us what happened and include screenshots if possible. A support agent will help you shortly.",
"category": "support",
"source": "Example support workflow",
"confidence": 0.85
},
{
"id": "returns",
"keywords": [
"return",
"refund",
"exchange",
"policy",
"cancel"
],
"question": "What is your return policy?",
"answer": "Returns are accepted within 14 days when the product is unused and in its original condition.",
"category": "sales",
"source": "Example return policy",
"confidence": 0.82
},
{
"id": "languages",
"keywords": [
"language",
"english",
"spanish",
"portuguese",
"idioma"
],
"question": "Which languages do you support?",
"answer": "We can help in English, Spanish and Portuguese.",
"category": "support",
"source": "Example language coverage",
"confidence": 0.8
},
{
"id": "account",
"keywords": [
"account",
"login",
"password",
"register",
"profile"
],
"question": "How do I manage my account?",
"answer": "Use the account area to update your profile, reset your password, or manage your subscription.",
"category": "account",
"source": "Example account help",
"confidence": 0.78
},
{
"id": "payment-methods",
"keywords": [
"payment",
"card",
"paypal",
"bank",
"methods"
],
"question": "Which payment methods are accepted?",
"answer": "We accept major credit/debit cards and PayPal. Bank transfer may be available for annual plans.",
"category": "billing",
"source": "Example billing policy",
"confidence": 0.82
},
{
"id": "response-time",
"keywords": [
"response",
"reply",
"wait",
"time",
"soon"
],
"question": "How long does it take to get a reply?",
"answer": "The bot replies instantly when it knows the answer. Human agents usually respond during business hours.",
"category": "support",
"source": "Example SLA",
"confidence": 0.84
}
]
}