Skip to content

Commit e254f98

Browse files
authored
Vapi: Sync 4 E2E flows from Appmixer (#975)
* Sync E2E flow: E2E Vapi - assistant-crud * Sync E2E flow: E2E Vapi - assistant-list-find * Sync E2E flow: E2E Vapi - squad-crud * Sync E2E flow: E2E Vapi - squad-list-find
1 parent 5de1f2e commit e254f98

File tree

4 files changed

+125
-91
lines changed

4 files changed

+125
-91
lines changed

src/appmixer/vapi/artifacts/test-flows/test-flow-assistant-crud.json

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"name": "E2E Vapi - assistant-crud",
3-
"description": "End-to-end test for Vapi connector - tests CRUD operations for assistants",
42
"flow": {
53
"on-start": {
64
"type": "appmixer.utils.controls.OnStart",
@@ -88,11 +86,15 @@
8886
"variable": "$.set-variables.out.firstMessage",
8987
"functions": []
9088
}
91-
}
89+
},
90+
"model": {},
91+
"voice": {}
9292
},
9393
"lambda": {
9494
"name": "{{{var-name}}}",
95-
"firstMessage": "{{{var-first-msg}}}"
95+
"firstMessage": "{{{var-first-msg}}}",
96+
"model": "{\n \"provider\": \"openai\",\n \"model\": \"gpt-4o-mini\",\n \"temperature\": 0.7,\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful customer support assistant. Answer politely and clearly.\"\n }\n ]\n }",
97+
"voice": "{\n \"provider\": \"11labs\",\n \"voiceId\": \"t0jbNlBVZ17f02VDIeMI\"\n }"
9698
}
9799
}
98100
}
@@ -102,7 +104,7 @@
102104
},
103105
"assert-create": {
104106
"type": "appmixer.utils.test.Assert",
105-
"x": 1200,
107+
"x": 1216,
106108
"y": 16,
107109
"version": "1.0.0",
108110
"source": {
@@ -138,13 +140,15 @@
138140
"expression": {
139141
"AND": [
140142
{
141-
"field": "{{{check-id}}}",
142-
"assertion": "notEmpty"
143+
"type": "string",
144+
"assertion": "notEmpty",
145+
"field": "{{{check-id}}}"
143146
},
144147
{
145-
"field": "{{{check-name}}}",
148+
"expected": "{{{expected-name}}}",
146149
"assertion": "equal",
147-
"expected": "{{{expected-name}}}"
150+
"field": "{{{check-name}}}",
151+
"type": "string"
148152
}
149153
]
150154
}
@@ -192,7 +196,7 @@
192196
},
193197
"assert-get": {
194198
"type": "appmixer.utils.test.Assert",
195-
"x": 1200,
199+
"x": 1216,
196200
"y": 144,
197201
"version": "1.0.0",
198202
"source": {
@@ -228,13 +232,15 @@
228232
"expression": {
229233
"AND": [
230234
{
231-
"field": "{{{check-retrieved-id}}}",
232-
"assertion": "notEmpty"
235+
"type": "string",
236+
"assertion": "notEmpty",
237+
"field": "{{{check-retrieved-id}}}"
233238
},
234239
{
235-
"field": "{{{check-retrieved-name}}}",
240+
"expected": "{{{expected-retrieved-name}}}",
236241
"assertion": "equal",
237-
"expected": "{{{expected-retrieved-name}}}"
242+
"field": "{{{check-retrieved-name}}}",
243+
"type": "string"
238244
}
239245
]
240246
}
@@ -290,7 +296,7 @@
290296
"get-updated-assistant": {
291297
"type": "appmixer.vapi.core.GetAssistant",
292298
"x": 1040,
293-
"y": 400,
299+
"y": 272,
294300
"version": "1.0.0",
295301
"source": {
296302
"in": {
@@ -324,8 +330,8 @@
324330
},
325331
"assert-update": {
326332
"type": "appmixer.utils.test.Assert",
327-
"x": 1200,
328-
"y": 400,
333+
"x": 1216,
334+
"y": 272,
329335
"version": "1.0.0",
330336
"source": {
331337
"in": {
@@ -356,9 +362,10 @@
356362
"expression": {
357363
"AND": [
358364
{
359-
"field": "{{{check-updated-name}}}",
365+
"expected": "{{{expected-updated-name}}}",
360366
"assertion": "equal",
361-
"expected": "{{{expected-updated-name}}}"
367+
"field": "{{{check-updated-name}}}",
368+
"type": "string"
362369
}
363370
]
364371
}
@@ -371,7 +378,7 @@
371378
},
372379
"after-all": {
373380
"type": "appmixer.utils.test.AfterAll",
374-
"x": 1392,
381+
"x": 1424,
375382
"y": 144,
376383
"version": "1.0.0",
377384
"source": {
@@ -432,7 +439,7 @@
432439
"type": "appmixer.utils.test.ProcessE2EResults",
433440
"x": 1792,
434441
"y": 144,
435-
"version": "1.0.0",
442+
"version": "1.0.1",
436443
"source": {
437444
"in": {
438445
"delete-assistant": [
@@ -441,10 +448,7 @@
441448
}
442449
},
443450
"config": {
444-
"properties": {
445-
"successStoreId": "64f6f1f9193228000754082f",
446-
"failedStoreId": "64f6f1f0193228000754082e"
447-
},
451+
"properties": {},
448452
"transform": {
449453
"in": {
450454
"delete-assistant": {
@@ -461,7 +465,7 @@
461465
}
462466
},
463467
"lambda": {
464-
"recipients": "test@appmixer.com",
468+
"recipients": "test@appmixer.ai",
465469
"testCase": "E2E Vapi - assistant-crud",
466470
"result": "{{{result-var}}}"
467471
}
@@ -471,5 +475,8 @@
471475
}
472476
}
473477
}
474-
}
478+
},
479+
"name": "E2E Vapi - assistant-crud",
480+
"type": "automation",
481+
"notes": {}
475482
}

src/appmixer/vapi/artifacts/test-flows/test-flow-assistant-list-find.json

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"name": "E2E Vapi - assistant-list-find",
3-
"description": "End-to-end test for Vapi connector - tests ListAssistants and FindAssistants components",
42
"flow": {
53
"on-start": {
64
"type": "appmixer.utils.controls.OnStart",
@@ -135,10 +133,19 @@
135133
"out": {
136134
"type": "json2new",
137135
"modifiers": {
138-
"outputType": {}
136+
"outputType": {},
137+
"orgId": {
138+
"4d79bc4b-50a0-48df-b6a5-c02b93c2c1d7": {
139+
"variable": "$.set-variables.out.testOrgId",
140+
"functions": []
141+
}
142+
},
143+
"createdAtGt": {}
139144
},
140145
"lambda": {
141-
"outputType": "array"
146+
"outputType": "array",
147+
"orgId": "{{{4d79bc4b-50a0-48df-b6a5-c02b93c2c1d7}}}",
148+
"createdAtGt": "2026-01-26T18:30:00.000Z"
142149
}
143150
}
144151
}
@@ -213,7 +220,7 @@
213220
"type": "appmixer.utils.test.ProcessE2EResults",
214221
"x": 1568,
215222
"y": 80,
216-
"version": "1.0.0",
223+
"version": "1.0.1",
217224
"source": {
218225
"in": {
219226
"after-all": [
@@ -222,10 +229,7 @@
222229
}
223230
},
224231
"config": {
225-
"properties": {
226-
"successStoreId": "64f6f1f9193228000754082f",
227-
"failedStoreId": "64f6f1f0193228000754082e"
228-
},
232+
"properties": {},
229233
"transform": {
230234
"in": {
231235
"after-all": {
@@ -242,7 +246,7 @@
242246
}
243247
},
244248
"lambda": {
245-
"recipients": "test@appmixer.com",
249+
"recipients": "test@appmixer.ai",
246250
"testCase": "E2E Vapi - assistant-list-find",
247251
"result": "{{{result-var}}}"
248252
}
@@ -252,5 +256,8 @@
252256
}
253257
}
254258
}
255-
}
259+
},
260+
"name": "E2E Vapi - assistant-list-find",
261+
"type": "automation",
262+
"notes": {}
256263
}

0 commit comments

Comments
 (0)