karthikeyan-r commited on
Commit
7ac2436
0 Parent(s):

Duplicate from hudsonhayes/Vodafone_CRM_Chatbot

Browse files
Files changed (6) hide show
  1. .gitattributes +35 -0
  2. README.md +13 -0
  3. app.py +296 -0
  4. requirements.txt +7 -0
  5. style.css +9 -0
  6. vodafone_customer_details.json +256 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Vodafone CRM Chatbot
3
+ emoji: 👁
4
+ colorFrom: indigo
5
+ colorTo: gray
6
+ sdk: gradio
7
+ sdk_version: 3.35.2
8
+ app_file: app.py
9
+ pinned: false
10
+ duplicated_from: hudsonhayes/Vodafone_CRM_Chatbot
11
+ ---
12
+
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic import NoneStr
2
+ import os
3
+ import mimetypes
4
+ import requests
5
+ import tempfile
6
+ import gradio as gr
7
+ import openai
8
+ import re
9
+ import json
10
+ from transformers import pipeline
11
+ import matplotlib.pyplot as plt
12
+ import plotly.express as px
13
+
14
+ class SentimentAnalyzer:
15
+ def __init__(self):
16
+ self.model="facebook/bart-large-mnli"
17
+ def analyze_sentiment(self, text):
18
+ pipe = pipeline("zero-shot-classification", model=self.model)
19
+ label=["positive","negative","neutral"]
20
+ result = pipe(text, label)
21
+ sentiment_scores= {result['labels'][0]:result['scores'][0],result['labels'][1]:result['scores'][1],result['labels'][2]:result['scores'][2]}
22
+ sentiment_scores_str = f"Positive: {sentiment_scores['positive']:.2f}, Neutral: {sentiment_scores['neutral']:.2f}, Negative: {sentiment_scores['negative']:.2f}"
23
+ return sentiment_scores_str
24
+ def emotion_analysis(self,text):
25
+ prompt = f""" Your task is to analyze {text} and predict the emotion using scores. Emotions are categorized into the following list: Sadness, Happiness, Joy, Fear, Disgust, and Anger. You need to provide the emotion with the highest score. The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.
26
+ Please analyze the text and provide the output in the following format: emotion: score [with one result having the highest score]."""
27
+ response = openai.Completion.create(
28
+ model="text-davinci-003",
29
+ prompt=prompt,
30
+ temperature=1,
31
+ max_tokens=60,
32
+ top_p=1,
33
+ frequency_penalty=0,
34
+ presence_penalty=0
35
+ )
36
+
37
+ message = response.choices[0].text.strip().replace("\n","")
38
+ print(message)
39
+ return message
40
+
41
+ def analyze_sentiment_for_graph(self, text):
42
+ pipe = pipeline("zero-shot-classification", model=self.model)
43
+ label=["positive", "negative", "neutral"]
44
+ result = pipe(text, label)
45
+ sentiment_scores = {
46
+ result['labels'][0]: result['scores'][0],
47
+ result['labels'][1]: result['scores'][1],
48
+ result['labels'][2]: result['scores'][2]
49
+ }
50
+ return sentiment_scores
51
+
52
+ def emotion_analysis_for_graph(self,text):
53
+
54
+ list_of_emotion=text.split(":")
55
+ label=list_of_emotion[0]
56
+ score=list_of_emotion[1]
57
+ score_dict={
58
+ label:float(score)
59
+ }
60
+ print(score_dict)
61
+ return score_dict
62
+
63
+
64
+ class Summarizer:
65
+ def __init__(self):
66
+ pass
67
+
68
+ def generate_summary(self, text):
69
+ model_engine = "text-davinci-003"
70
+ prompt = f"""summarize the following conversation delimited by triple backticks.
71
+ write within 30 words.
72
+ ```{text}``` """
73
+ completions = openai.Completion.create(
74
+ engine=model_engine,
75
+ prompt=prompt,
76
+ max_tokens=60,
77
+ n=1,
78
+ stop=None,
79
+ temperature=0.5,
80
+ )
81
+ message = completions.choices[0].text.strip()
82
+ return message
83
+
84
+ history_state = gr.State()
85
+ summarizer = Summarizer()
86
+ sentiment = SentimentAnalyzer()
87
+
88
+ class LangChain_Document_QA:
89
+
90
+ def __init__(self):
91
+ pass
92
+
93
+ def _add_text(self,history, text):
94
+ history = history + [(text, None)]
95
+ history_state.value = history
96
+ return history,gr.update(value="", interactive=False)
97
+
98
+ def _agent_text(self,history, text):
99
+ response = text
100
+ history[-1][1] = response
101
+ history_state.value = history
102
+ return history
103
+
104
+ def _chat_history(self):
105
+ history = history_state.value
106
+ formatted_history = " "
107
+ for entry in history:
108
+ customer_text, agent_text = entry
109
+ formatted_history += f"Customer: {customer_text}\n"
110
+ if agent_text:
111
+ formatted_history += f"Agent: {agent_text}\n"
112
+ return formatted_history
113
+
114
+ def _display_history(self):
115
+ formatted_history=self._chat_history()
116
+ summary=summarizer.generate_summary(formatted_history)
117
+ return summary
118
+
119
+ def _display_graph(self,sentiment_scores):
120
+ labels = sentiment_scores.keys()
121
+ scores = sentiment_scores.values()
122
+ fig = px.bar(x=scores, y=labels, orientation='h', color=labels, color_discrete_map={"Negative": "red", "Positive": "green", "Neutral": "gray"})
123
+ fig.update_traces(texttemplate='%{x:.2f}%', textposition='outside')
124
+ fig.update_layout(height=500, width=200)
125
+ return fig
126
+
127
+ def _history_of_chat(self):
128
+ history = history_state.value
129
+ formatted_history = ""
130
+ client=""
131
+ agent=""
132
+ for entry in history:
133
+ customer_text, agent_text = entry
134
+ client+=customer_text
135
+ formatted_history += f"Customer: {customer_text}\n"
136
+ if agent_text:
137
+ agent+=agent_text
138
+ formatted_history += f"Agent: {agent_text}\n"
139
+ return client,agent
140
+
141
+
142
+ def _suggested_answer(self,text):
143
+ try:
144
+ history = self._chat_history()
145
+ start_sequence = "\nCustomer:"
146
+ restart_sequence = "\nVodafone Customer Relationship Manager:"
147
+ prompt = 'your task is make a conversation between a customer and vodafone telecom customer relationship manager.'
148
+ file_path = "vodafone_customer_details.json"
149
+ with open(file_path) as file:
150
+ customer_details = json.load(file)
151
+ prompt = f"""{history}{start_sequence}{text}{restart_sequence} if customer ask any information take it from {customer_details}.
152
+ if customer say thanks or thankyou tone related messages You should not ask anything to end the conversation with greetings tone.
153
+ """
154
+ response = openai.Completion.create(
155
+ model="text-davinci-003",
156
+ prompt=prompt,
157
+ temperature=0,
158
+ max_tokens=500,
159
+ top_p=1,
160
+ frequency_penalty=0,
161
+ presence_penalty=0.6,
162
+ )
163
+
164
+ message = response.choices[0].text.strip()
165
+ if ":" in message:
166
+ message = re.sub(r'^.*:', '', message)
167
+ return message.strip()
168
+ except:
169
+ return "I can't get the response"
170
+
171
+
172
+
173
+ def _text_box(self,customer_emotion,agent_emotion,agent_sentiment_score,customer_sentiment_score):
174
+ agent_score = ", ".join([f"{key}: {value:.2f}" for key, value in agent_sentiment_score.items()])
175
+ customer_score = ", ".join([f"{key}: {value:.2f}" for key, value in customer_sentiment_score.items()])
176
+ return f"customer_emotion:{customer_emotion}\nagent_emotion:{agent_emotion}\nAgent_Sentiment_score:{agent_score}\nCustomer_sentiment_score:{customer_score}"
177
+
178
+ def _on_sentiment_btn_click(self):
179
+ client,agent=self._history_of_chat()
180
+
181
+ customer_emotion=sentiment.emotion_analysis(client)
182
+ customer_sentiment_score = sentiment.analyze_sentiment_for_graph(client)
183
+
184
+ agent_emotion=sentiment.emotion_analysis(agent)
185
+ agent_sentiment_score = sentiment.analyze_sentiment_for_graph(agent)
186
+
187
+ scores=self._text_box(customer_emotion,agent_emotion,agent_sentiment_score,customer_sentiment_score)
188
+
189
+ customer_fig=self._display_graph(customer_sentiment_score)
190
+ customer_fig.update_layout(title="Sentiment Analysis",width=800)
191
+
192
+ agent_fig=self._display_graph(agent_sentiment_score)
193
+ agent_fig.update_layout(title="Sentiment Analysis",width=800)
194
+
195
+ agent_emotion_score = sentiment.emotion_analysis_for_graph(agent_emotion)
196
+
197
+ agent_emotion_fig=self._display_graph(agent_emotion_score)
198
+ agent_emotion_fig.update_layout(title="Emotion Analysis",width=800)
199
+
200
+ customer_emotion_score = sentiment.emotion_analysis_for_graph(customer_emotion)
201
+
202
+ customer_emotion_fig=self._display_graph(customer_emotion_score)
203
+ customer_emotion_fig.update_layout(title="Emotion Analysis",width=800)
204
+
205
+ return scores,customer_fig,agent_fig,customer_emotion_fig,agent_emotion_fig
206
+
207
+ def clear_func(self):
208
+ history_state.clear()
209
+ def gradio_interface(self):
210
+ with gr.Blocks(css="style.css",theme=gr.themes.Soft()) as demo:
211
+ with gr.Row():
212
+ gr.HTML("""<img class="leftimage" align="left" src="https://templates.images.credential.net/1612472097627370951721412474196.png" alt="Image" width="210" height="210">
213
+ <img align="right" class="rightimage" src="https://download.logo.wine/logo/Vodafone/Vodafone-Logo.wine.png" alt="Image" width="230" height="230" >""")
214
+
215
+ with gr.Row():
216
+ gr.HTML("""<center><h1>Vodafone Generative AI CRM ChatBot</h1></center>""")
217
+ chatbot = gr.Chatbot([], elem_id="chatbot").style(height=300)
218
+ with gr.Row():
219
+ with gr.Column(scale=0.50):
220
+ txt = gr.Textbox(
221
+ show_label=False,
222
+ placeholder="Customer",
223
+ ).style(container=False)
224
+ with gr.Column(scale=0.50):
225
+ txt2 = gr.Textbox(
226
+ show_label=False,
227
+ placeholder="Agent",
228
+ ).style(container=False)
229
+
230
+ with gr.Column(scale=0.40):
231
+ txt3 =gr.Textbox(
232
+ show_label=False,
233
+ placeholder="GPT_Suggestion",
234
+ ).style(container=False)
235
+ with gr.Column(scale=0.10, min_width=0):
236
+ button=gr.Button(
237
+ value="🚀"
238
+ )
239
+ with gr.Column(scale=0.10, min_width=0):
240
+ clear_btn=gr.Button(
241
+ value="Clear"
242
+ )
243
+ with gr.Row():
244
+ with gr.Column(scale=0.40):
245
+ txt4 =gr.Textbox(
246
+ show_label=False,
247
+ lines=4,
248
+ placeholder="Summary",
249
+ ).style(container=False)
250
+ with gr.Column(scale=0.10, min_width=0):
251
+ end_btn=gr.Button(
252
+ value="End"
253
+ )
254
+ with gr.Column(scale=0.40):
255
+ txt5 =gr.Textbox(
256
+ show_label=False,
257
+ lines=4,
258
+ placeholder="Sentiment",
259
+ ).style(container=False)
260
+
261
+ with gr.Column(scale=0.10, min_width=0):
262
+ Sentiment_btn=gr.Button(
263
+ value="📊",callback=self._on_sentiment_btn_click
264
+ )
265
+ with gr.Row():
266
+ gr.HTML("""<center><h1>Sentiment and Emotion Score Graph</h1></center>""")
267
+ with gr.Row():
268
+ with gr.Column(scale=0.70, min_width=0):
269
+ plot =gr.Plot(label="Customer", size=(500, 600))
270
+ with gr.Row():
271
+ with gr.Column(scale=0.70, min_width=0):
272
+ plot_2 =gr.Plot(label="Agent", size=(500, 600))
273
+ with gr.Row():
274
+ with gr.Column(scale=0.70, min_width=0):
275
+ plot_3 =gr.Plot(label="Customer_Emotion", size=(500, 600))
276
+ with gr.Row():
277
+ with gr.Column(scale=0.70, min_width=0):
278
+ plot_4 =gr.Plot(label="Agent_Emotion", size=(500, 600))
279
+
280
+
281
+ txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt])
282
+ txt_msg.then(lambda: gr.update(interactive=True), None, [txt])
283
+ txt.submit(self._suggested_answer,txt,txt3)
284
+ button.click(self._agent_text, [chatbot,txt3], chatbot)
285
+ txt2.submit(self._agent_text, [chatbot, txt2], chatbot).then(
286
+ self._agent_text, [chatbot, txt2], chatbot
287
+ )
288
+ end_btn.click(self._display_history, [], txt4)
289
+ clear_btn.click(self.clear_func,[],[])
290
+ clear_btn.click(lambda: None, None, chatbot, queue=False)
291
+ Sentiment_btn.click(self._on_sentiment_btn_click,[],[txt5,plot,plot_2,plot_3,plot_4])
292
+
293
+ demo.title = "Vodafone Generative AI CRM ChatBot"
294
+ demo.launch()
295
+ document_qa =LangChain_Document_QA()
296
+ document_qa.gradio_interface()
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ gradio
2
+ openai
3
+ transformers
4
+ plotly
5
+ torch
6
+ torchvision
7
+ tensorflow
style.css ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+
2
+ .leftimage{
3
+ padding-top:75px;
4
+ margin-left:250px;
5
+ }
6
+ .rightimage{
7
+ margin-right:260px;
8
+ margin-top:15px;
9
+ }
vodafone_customer_details.json ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "customers": [
3
+ {
4
+ "name": "John Smith",
5
+ "phone_number": "+1234567890",
6
+ "recharge_plan": {
7
+ "plan_name": "Gold Plan",
8
+ "data_limit": "10GB",
9
+ "validity": "30 days",
10
+ "price": "$29.99"
11
+ },
12
+ "starting_recharge_date": "2023-06-15",
13
+ "last_recharge_date": "2023-07-14"
14
+ },
15
+ {
16
+ "name": "Alice Johnson",
17
+ "phone_number": "+9876543210",
18
+ "recharge_plan": {
19
+ "plan_name": "Silver Plan",
20
+ "data_limit": "5GB",
21
+ "validity": "15 days",
22
+ "price": "$19.99"
23
+ },
24
+ "starting_recharge_date": "2023-06-12",
25
+ "last_recharge_date": "2023-06-26"
26
+ },
27
+ {
28
+ "name": "Robert Williams",
29
+ "phone_number": "+2345678901",
30
+ "recharge_plan": {
31
+ "plan_name": "Basic Plan",
32
+ "data_limit": "2GB",
33
+ "validity": "7 days",
34
+ "price": "$9.99"
35
+ },
36
+ "starting_recharge_date": "2023-06-10",
37
+ "last_recharge_date": "2023-06-16"
38
+ },
39
+ {
40
+ "name": "Emily Davis",
41
+ "phone_number": "+3456789012",
42
+ "recharge_plan": {
43
+ "plan_name": "Premium Plan",
44
+ "data_limit": "15GB",
45
+ "validity": "60 days",
46
+ "price": "$49.99"
47
+ },
48
+ "starting_recharge_date": "2023-06-13",
49
+ "last_recharge_date": "2023-08-12"
50
+ },
51
+ {
52
+ "name": "Michael Wilson",
53
+ "phone_number": "+4567890123",
54
+ "recharge_plan": {
55
+ "plan_name": "Unlimited Plan",
56
+ "data_limit": "Unlimited",
57
+ "validity": "30 days",
58
+ "price": "$59.99"
59
+ },
60
+ "starting_recharge_date": "2023-06-14",
61
+ "last_recharge_date": "2023-07-13"
62
+ },
63
+ {
64
+ "name": "Sarah Brown",
65
+ "phone_number": "+5678901234",
66
+ "recharge_plan": {
67
+ "plan_name": "Family Plan",
68
+ "data_limit": "20GB",
69
+ "validity": "30 days",
70
+ "price": "$39.99"
71
+ },
72
+ "starting_recharge_date": "2023-06-15",
73
+ "last_recharge_date": "2023-07-14"
74
+ },
75
+ {
76
+ "name": "David Taylor",
77
+ "phone_number": "+6789012345",
78
+ "recharge_plan": {
79
+ "plan_name": "Student Plan",
80
+ "data_limit": "8GB",
81
+ "validity": "30 days",
82
+ "price": "$24.99"
83
+ },
84
+ "starting_recharge_date": "2023-06-10",
85
+ "last_recharge_date": "2023-07-09"
86
+ },
87
+ {
88
+ "name": "Olivia Davis",
89
+ "phone_number": "+7890123456",
90
+ "recharge_plan": {
91
+ "plan_name": "Premium Plus",
92
+ "data_limit": "12GB",
93
+ "validity": "15 days",
94
+ "price": "$39.99"
95
+ },
96
+ "starting_recharge_date": "2023-06-17",
97
+ "last_recharge_date": "2023-07-01"
98
+ },
99
+ {
100
+ "name": "Daniel Johnson",
101
+ "phone_number": "+8901234567",
102
+ "recharge_plan": {
103
+ "plan_name": "Unlimited Plus",
104
+ "data_limit": "Unlimited",
105
+ "validity": "30 days",
106
+ "price": "$69.99"
107
+ },
108
+ "starting_recharge_date": "2023-06-16",
109
+ "last_recharge_date": "2023-07-16"
110
+ },
111
+ {
112
+ "name": "Sophia Thompson",
113
+ "phone_number": "+9012345678",
114
+ "recharge_plan": {
115
+ "plan_name": "Business Plan",
116
+ "data_limit": "15GB",
117
+ "validity": "30 days",
118
+ "price": "$49.99"
119
+ },
120
+ "starting_recharge_date": "2023-06-14",
121
+ "last_recharge_date": "2023-07-13"
122
+ },
123
+ {
124
+ "name": "James Wilson",
125
+ "phone_number": "+0123456789",
126
+ "recharge_plan": {
127
+ "plan_name": "Premium Plan",
128
+ "data_limit": "10GB",
129
+ "validity": "30 days",
130
+ "price": "$39.99"
131
+ },
132
+ "starting_recharge_date": "2023-06-12",
133
+ "last_recharge_date": "2023-07-11"
134
+ },
135
+ {
136
+ "name": "Lily Martinez",
137
+ "phone_number": "+9876543210",
138
+ "recharge_plan": {
139
+ "plan_name": "Silver Plan",
140
+ "data_limit": "5GB",
141
+ "validity": "15 days",
142
+ "price": "$19.99"
143
+ },
144
+ "starting_recharge_date": "2023-06-13",
145
+ "last_recharge_date": "2023-06-27"
146
+ },
147
+ {
148
+ "name": "Andrew Davis",
149
+ "phone_number": "+8765432109",
150
+ "recharge_plan": {
151
+ "plan_name": "Basic Plan",
152
+ "data_limit": "2GB",
153
+ "validity": "7 days",
154
+ "price": "$9.99"
155
+ },
156
+ "starting_recharge_date": "2023-06-11",
157
+ "last_recharge_date": "2023-06-17"
158
+ },
159
+ {
160
+ "name": "Ava Thomas",
161
+ "phone_number": "+7654321098",
162
+ "recharge_plan": {
163
+ "plan_name": "Gold Plan",
164
+ "data_limit": "10GB",
165
+ "validity": "30 days",
166
+ "price": "$29.99"
167
+ },
168
+ "starting_recharge_date": "2023-06-15",
169
+ "last_recharge_date": "2023-07-14"
170
+ },
171
+ {
172
+ "name": "Ryan White",
173
+ "phone_number": "+6543210987",
174
+ "recharge_plan": {
175
+ "plan_name": "Premium Plus",
176
+ "data_limit": "12GB",
177
+ "validity": "15 days",
178
+ "price": "$39.99"
179
+ },
180
+ "starting_recharge_date": "2023-06-18",
181
+ "last_recharge_date": "2023-07-02"
182
+ },
183
+ {
184
+ "name": "Grace Thompson",
185
+ "phone_number": "+5432109876",
186
+ "recharge_plan": {
187
+ "plan_name": "Unlimited Plan",
188
+ "data_limit": "Unlimited",
189
+ "validity": "30 days",
190
+ "price": "$59.99"
191
+ },
192
+ "starting_recharge_date": "2023-06-14",
193
+ "last_recharge_date": "2023-07-13"
194
+ },
195
+ {
196
+ "name": "Ethan Moore",
197
+ "phone_number": "+4321098765",
198
+ "recharge_plan": {
199
+ "plan_name": "Family Plan",
200
+ "data_limit": "20GB",
201
+ "validity": "30 days",
202
+ "price": "$39.99"
203
+ },
204
+ "starting_recharge_date": "2023-06-13",
205
+ "last_recharge_date": "2023-07-12"
206
+ },
207
+ {
208
+ "name": "Chloe Hill",
209
+ "phone_number": "+3210987654",
210
+ "recharge_plan": {
211
+ "plan_name": "Student Plan",
212
+ "data_limit": "8GB",
213
+ "validity": "30 days",
214
+ "price": "$24.99"
215
+ },
216
+ "starting_recharge_date": "2023-06-19",
217
+ "last_recharge_date": "2023-07-18"
218
+ },
219
+ {
220
+ "name": "Benjamin Clark",
221
+ "phone_number": "+2109876543",
222
+ "recharge_plan": {
223
+ "plan_name": "Premium Plan",
224
+ "data_limit": "15GB",
225
+ "validity": "60 days",
226
+ "price": "$49.99"
227
+ },
228
+ "starting_recharge_date": "2023-06-16",
229
+ "last_recharge_date": "2023-08-15"
230
+ },
231
+ {
232
+ "name": "Victoria Walker",
233
+ "phone_number": "+1098765432",
234
+ "recharge_plan": {
235
+ "plan_name": "Gold Plan",
236
+ "data_limit": "10GB",
237
+ "validity": "30 days",
238
+ "price": "$29.99"
239
+ },
240
+ "starting_recharge_date": "2023-06-12",
241
+ "last_recharge_date": "2023-07-11"
242
+ },
243
+ {
244
+ "name": "Henry Davis",
245
+ "phone_number": "+0987654321",
246
+ "recharge_plan": {
247
+ "plan_name": "Silver Plan",
248
+ "data_limit": "5GB",
249
+ "validity": "15 days",
250
+ "price": "$19.99"
251
+ },
252
+ "starting_recharge_date": "2023-06-14",
253
+ "last_recharge_date": "2023-06-28"
254
+ }
255
+ ]
256
+ }