-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNorthPeakMainScenario.json
More file actions
226 lines (226 loc) · 6.95 KB
/
Copy pathNorthPeakMainScenario.json
File metadata and controls
226 lines (226 loc) · 6.95 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"name": "NorthPeak Lead Tracker - Main Scenario",
"flow": [
{
"id": 1,
"module": "google-sheets:triggerRowAdded",
"version": 2,
"parameters": {
"spreadsheetId": "YOUR_SPREADSHEET_ID",
"sheetId": "Form responses 1",
"tableFirstRow": "A1:Z1",
"includeEmptyRows": false,
"limitRows": 1
},
"mapper": {},
"metadata": {
"designer": {
"x": 0,
"y": 0
},
"restore": {
"parameters": {
"spreadsheetId": {
"label": "NorthPeak Lead Tracker"
},
"sheetId": {
"label": "Form responses 1"
}
}
},
"parameters": [
{
"name": "spreadsheetId",
"type": "select",
"label": "Spreadsheet",
"required": true
},
{
"name": "sheetId",
"type": "select",
"label": "Sheet",
"required": true
},
{
"name": "tableFirstRow",
"type": "text",
"label": "Row with headers"
},
{
"name": "includeEmptyRows",
"type": "boolean",
"label": "Include empty rows"
},
{
"name": "limitRows",
"type": "number",
"label": "Limit"
}
]
}
},
{
"id": 2,
"module": "gmail:ActionSendEmail",
"version": 1,
"parameters": {
"sendAs": "debangshee29@gmail.com"
},
"mapper": {
"to": "{{1.`E-mail address (C)`}}",
"subject": "We Received Your Request — NorthPeak Heating & Cooling",
"content": "<p>Hi {{1.`Full Name (B)`}},</p><p>Thank you for reaching out to <strong>NorthPeak Heating & Cooling!</strong></p><p>We have received your request for <strong>{{1.`what service do you need? (E)`}}</strong> and our team will be in touch shortly.</p><p>Here is what happens next:</p><p>1. A specialist will review your request within the hour</p><p>2. We will call you at <strong>{{1.`Phone number (D)`}}</strong></p><p>3. We will schedule your appointment</p><p>👉 <a href=\"https://calendly.com/debangshee-paul/hvac-consultation-call\">Book Your Free Consultation Here</a></p><p>Best regards,<br><strong>NorthPeak Heating & Cooling Team</strong><br>📞 (555) 123-4567</p>",
"contentType": "html",
"fromName": "NorthPeak Heating & Cooling"
},
"metadata": {
"designer": {
"x": 300,
"y": 0
}
}
},
{
"id": 3,
"module": "http:ActionSendData",
"version": 3,
"parameters": {
"handleErrors": false,
"useNewZLibDeCompression": true
},
"mapper": {
"url": "https://api.groq.com/openai/v1/chat/completions",
"method": "post",
"headers": [
{
"name": "Authorization",
"value": "Bearer YOUR_GROQ_API_KEY"
},
{
"name": "Content-Type",
"value": "application/json"
}
],
"bodyType": "raw",
"contentType": "application/json",
"body": "{\"model\":\"llama3-8b-8192\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a lead qualification assistant for NorthPeak Heating & Cooling, a US-based HVAC company. Analyze the lead and return ONLY a valid JSON object. No extra text. No explanation. Just JSON.\"},{\"role\":\"user\",\"content\":\"Qualify this lead and return ONLY this JSON: {score: (1-10), urgency: (HIGH or MEDIUM or LOW), summary: (max 2 sentences), recommended_action: (one sentence)}. Name: {{1.`Full Name (B)`}}, Service: {{1.`what service do you need? (E)`}}, Urgency: {{1.`How urgent is your situation? (F)`}}, Owner/Renter: {{1.`Are you a home owner or a renter? (G)`}}, Location: {{1.`What city / zip code are you in? (H)`}}, Issue: {{1.`Briefly describe the issue. (I)`}}\"}],\"temperature\":0.3,\"max_tokens\":300}",
"parseResponse": true
},
"metadata": {
"designer": {
"x": 600,
"y": 0
}
}
},
{
"id": 4,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": "{{customData}}",
"customData": [
{
"name": "score",
"spec": {
"type": "number"
}
},
{
"name": "urgency",
"spec": {
"type": "text"
}
},
{
"name": "summary",
"spec": {
"type": "text"
}
},
{
"name": "recommended_action",
"spec": {
"type": "text"
}
}
]
},
"mapper": {
"json": "{{3.data.choices[].message.content}}"
},
"metadata": {
"designer": {
"x": 900,
"y": 0
}
}
},
{
"id": 5,
"module": "google-sheets:ActionUpdateRow",
"version": 2,
"parameters": {
"spreadsheetId": "YOUR_SPREADSHEET_ID",
"sheetId": "Form responses 1",
"tableFirstRow": "A1:Z1",
"useFirstRowAsHeaders": true
},
"mapper": {
"rowNumber": "{{1.`Row number`}}",
"values": {
"Lead Status (J)": "Contacted",
"AI qualification score (K)": "{{4.score}}",
"AI Summary (L)": "{{4.summary}}",
"Urgency Level (M)": "{{4.urgency}}",
"Recommended Action (R)": "{{4.recommended_action}}"
}
},
"metadata": {
"designer": {
"x": 1200,
"y": 0
}
}
},
{
"id": 6,
"module": "telegram-bot:ActionSendMessage",
"version": 1,
"parameters": {
"botToken": "YOUR_TELEGRAM_BOT_TOKEN"
},
"mapper": {
"chatId": "YOUR_TELEGRAM_CHAT_ID",
"text": "🔔 NEW LEAD ALERT - NorthPeak\n\n👤 Name: {{1.`Full Name (B)`}}\n📧 Email: {{1.`E-mail address (C)`}}\n📞 Phone: {{1.`Phone number (D)`}}\n🔧 Service: {{1.`what service do you need? (E)`}}\n📍 Location: {{1.`What city / zip code are you in? (H)`}}\n\n🤖 AI QUALIFICATION:\n⭐ Score: {{4.score}}\n🚨 Urgency: {{4.urgency}}\n📋 Summary: {{4.summary}}\n✅ Action: {{4.recommended_action}}\n\n📅 Book: https://calendly.com/debangshee-paul/hvac-consultation-call\n\n📊 Status: Contacted",
"parseMode": ""
},
"metadata": {
"designer": {
"x": 1500,
"y": 0
}
}
}
],
"metadata": {
"instant": false,
"version": 1,
"scenario": {
"roundtrips": 1,
"maxErrors": 3,
"autoCommit": true,
"autoCommitTriggerLast": true,
"sequential": false,
"slots": null,
"confidential": false,
"dataloss": false,
"dlq": false,
"freshVariables": false
},
"designer": {
"orphans": []
},
"zone": "eu1.make.com"
}
}