DatasetForgeAI commited on
Commit
d0adb16
·
verified ·
1 Parent(s): 47a30ee

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +125 -0
README.md CHANGED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # E-commerce Conversations Dataset
2
+
3
+ This dataset contains 100 realistic e-commerce customer support conversations between customers and agents. Each dialogue is 11 turns long and covers common online shopping issues such as wrong items received, coupon code problems, delivery delays, returns, and payment issues. It is ideal for training AI assistants, chatbots, and customer support models for online retail.
4
+
5
+ ## Dataset Structure
6
+
7
+ Each conversation is stored as a JSON object with the following fields:
8
+
9
+ - **id**: Unique identifier for the conversation.
10
+ - **domain**: Always "e-commerce" for this dataset.
11
+ - **problem**: Short description of the customer's issue.
12
+ - **customer_type**: Customer persona (e.g., "frustrated user", "confused beginner").
13
+ - **dialogue**: List of alternating customer/agent messages. Each message has:
14
+ - **role**: "customer" or "agent".
15
+ - **text**: The message content.
16
+ - **resolution**: One-sentence summary of how the issue was resolved.
17
+
18
+ ## Example Conversation
19
+
20
+ ```json
21
+ {
22
+ "id": 1,
23
+ "domain": "e-commerce",
24
+ "problem": "wrong item received",
25
+ "customer_type": "frustrated user",
26
+ "dialogue": [
27
+ {
28
+ "role": "customer",
29
+ "text": "I ordered a blue jacket size L and received a red one in size S. This is really disappointing."
30
+ },
31
+ {
32
+ "role": "agent",
33
+ "text": "I'm so sorry about that — that's absolutely not acceptable. Can I have your order number to get this fixed right away?"
34
+ },
35
+ {
36
+ "role": "customer",
37
+ "text": "Order number is #EC-88421. This was a birthday gift."
38
+ },
39
+ {
40
+ "role": "agent",
41
+ "text": "I found your order and I can confirm the picking error on our end. I'm processing a replacement — blue, size L — with express shipping at no extra cost."
42
+ },
43
+ {
44
+ "role": "customer",
45
+ "text": "How long will express shipping take? The birthday is in 3 days."
46
+ },
47
+ {
48
+ "role": "agent",
49
+ "text": "Express delivery is 1 to 2 business days. I'm also emailing you a prepaid return label for the incorrect item — no need to go anywhere, just hand it to the courier."
50
+ },
51
+ {
52
+ "role": "customer",
53
+ "text": "Okay. Will I get a tracking number for the replacement?"
54
+ },
55
+ {
56
+ "role": "agent",
57
+ "text": "Yes — a tracking link will arrive by email within 2 hours. I've also added a 20% discount to your next order as an apology."
58
+ },
59
+ {
60
+ "role": "customer",
61
+ "text": "I received the tracking email. It shows estimated delivery tomorrow. That works!"
62
+ },
63
+ {
64
+ "role": "agent",
65
+ "text": "Wonderful! I'm glad we can make the birthday work. Is there anything else I can help with?"
66
+ },
67
+ {
68
+ "role": "customer",
69
+ "text": "No, that's all. Thank you for the quick fix!"
70
+ }
71
+ ],
72
+ "resolution": "Replacement item dispatched with express shipping and tracking link sent within 2 hours. Prepaid return label issued. 20% discount applied."
73
+ }
74
+
75
+ How to Use
76
+ Load with Python
77
+ python
78
+
79
+ import json
80
+
81
+ # Si tu archivo se llama "dataset_e-commerce.json", usa ese nombre
82
+ with open("ecommerce.json", "r", encoding="utf-8") as f:
83
+ data = json.load(f)
84
+ conversations = data["conversations"]
85
+
86
+ for conv in conversations:
87
+ print(conv["problem"])
88
+
89
+ Load with Hugging Face Datasets
90
+ python
91
+
92
+ from datasets import load_dataset
93
+
94
+ dataset = load_dataset("ai-training-datasets/ecommerce", split="train")
95
+ print(dataset[0])
96
+
97
+ Customer Personas Included
98
+
99
+ frustrated user
100
+
101
+ confused beginner
102
+
103
+ impatient executive
104
+
105
+ elderly user
106
+
107
+ tech-savvy user
108
+
109
+ calm and patient user
110
+
111
+ License
112
+
113
+ This dataset is released under the MIT License. You are free to use, modify, and distribute it for both research and commercial purposes.
114
+ Citation
115
+
116
+ If you use this dataset, please cite:
117
+ text
118
+
119
+ @dataset{ai_training_datasets_2026,
120
+ title = {AI Training Datasets: E-commerce Conversations},
121
+ author = {AI Training Datasets},
122
+ year = {2026},
123
+ version = {1.0},
124
+ publisher = {Hugging Face}
125
+ }