@roarkanalytics/sdk 7.9.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +21 -3
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +200 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -294
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
|
@@ -194,6 +194,12 @@ export class CustomerFlow extends APIResource {
|
|
|
194
194
|
* `CUSTOMER_FIRST_MESSAGE` is the retired name for that opening case: still
|
|
195
195
|
* accepted, stored and returned as `CUSTOMER_VERBATIM_TURN`.
|
|
196
196
|
*
|
|
197
|
+
* A step's `content` may carry caller cues that steer the simulated caller from
|
|
198
|
+
* that point: `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
199
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
200
|
+
* in on your agent (on an `AGENT_TURN`, cut in while your agent says that line).
|
|
201
|
+
* Cues are voice only. See "Caller cues" in the scripted flows concept.
|
|
202
|
+
*
|
|
197
203
|
* The two DTMF types are mirror images and both require `dtmfDigits`.
|
|
198
204
|
* `CUSTOMER_DTMF` is keys the simulated caller presses while navigating your
|
|
199
205
|
* agent. `AGENT_DTMF` is keys your agent under test is expected to press while
|
|
@@ -751,6 +757,28 @@ export namespace CustomerFlowCreateResponse {
|
|
|
751
757
|
*/
|
|
752
758
|
description: string | null;
|
|
753
759
|
|
|
760
|
+
/**
|
|
761
|
+
* The industry the agent serves
|
|
762
|
+
*/
|
|
763
|
+
industry:
|
|
764
|
+
| 'HEALTHCARE'
|
|
765
|
+
| 'FINANCIAL_SERVICES'
|
|
766
|
+
| 'INSURANCE'
|
|
767
|
+
| 'DEBT_COLLECTION'
|
|
768
|
+
| 'RETAIL'
|
|
769
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
770
|
+
| 'TELECOMMUNICATIONS'
|
|
771
|
+
| 'TECHNOLOGY'
|
|
772
|
+
| 'PUBLIC_SECTOR'
|
|
773
|
+
| 'UTILITIES'
|
|
774
|
+
| 'LOGISTICS'
|
|
775
|
+
| 'AUTOMOTIVE'
|
|
776
|
+
| 'HOME_SERVICES'
|
|
777
|
+
| 'RESTAURANTS'
|
|
778
|
+
| 'EDUCATION'
|
|
779
|
+
| 'OTHER'
|
|
780
|
+
| null;
|
|
781
|
+
|
|
754
782
|
/**
|
|
755
783
|
* Name of the agent
|
|
756
784
|
*/
|
|
@@ -866,6 +894,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
866
894
|
*/
|
|
867
895
|
createdAt: string;
|
|
868
896
|
|
|
897
|
+
/**
|
|
898
|
+
* The per-direction loss of a CUSTOM line.
|
|
899
|
+
*/
|
|
900
|
+
lineCustom: Environment.LineCustom | null;
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
904
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
905
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
906
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
907
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
908
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
909
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
910
|
+
*/
|
|
911
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
912
|
+
|
|
869
913
|
name: string;
|
|
870
914
|
|
|
871
915
|
/**
|
|
@@ -876,6 +920,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
876
920
|
description?: string | null;
|
|
877
921
|
}
|
|
878
922
|
|
|
923
|
+
export namespace Environment {
|
|
924
|
+
/**
|
|
925
|
+
* The per-direction loss of a CUSTOM line.
|
|
926
|
+
*/
|
|
927
|
+
export interface LineCustom {
|
|
928
|
+
/**
|
|
929
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
930
|
+
* loss.
|
|
931
|
+
*/
|
|
932
|
+
fromAgent?: LineCustom.FromAgent;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
936
|
+
* loss.
|
|
937
|
+
*/
|
|
938
|
+
toAgent?: LineCustom.ToAgent;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
export namespace LineCustom {
|
|
942
|
+
/**
|
|
943
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
944
|
+
* loss.
|
|
945
|
+
*/
|
|
946
|
+
export interface FromAgent {
|
|
947
|
+
/**
|
|
948
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
949
|
+
*/
|
|
950
|
+
packetLossPercent: number;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
954
|
+
*/
|
|
955
|
+
meanBurstPackets?: number;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
960
|
+
* loss.
|
|
961
|
+
*/
|
|
962
|
+
export interface ToAgent {
|
|
963
|
+
/**
|
|
964
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
965
|
+
*/
|
|
966
|
+
packetLossPercent: number;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
970
|
+
*/
|
|
971
|
+
meanBurstPackets?: number;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
879
976
|
/**
|
|
880
977
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
881
978
|
*/
|
|
@@ -1002,9 +1099,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1002
1099
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1003
1100
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1004
1101
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1005
|
-
* OCCASIONAL
|
|
1006
|
-
*
|
|
1007
|
-
*
|
|
1102
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1103
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1104
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1105
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1106
|
+
* applies at any level.
|
|
1008
1107
|
*/
|
|
1009
1108
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1010
1109
|
|
|
@@ -1231,6 +1330,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1231
1330
|
*/
|
|
1232
1331
|
createdAt: string;
|
|
1233
1332
|
|
|
1333
|
+
/**
|
|
1334
|
+
* The per-direction loss of a CUSTOM line.
|
|
1335
|
+
*/
|
|
1336
|
+
lineCustom: Environment.LineCustom | null;
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1340
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1341
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1342
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1343
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1344
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1345
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1346
|
+
*/
|
|
1347
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1348
|
+
|
|
1234
1349
|
name: string;
|
|
1235
1350
|
|
|
1236
1351
|
/**
|
|
@@ -1241,6 +1356,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1241
1356
|
description?: string | null;
|
|
1242
1357
|
}
|
|
1243
1358
|
|
|
1359
|
+
export namespace Environment {
|
|
1360
|
+
/**
|
|
1361
|
+
* The per-direction loss of a CUSTOM line.
|
|
1362
|
+
*/
|
|
1363
|
+
export interface LineCustom {
|
|
1364
|
+
/**
|
|
1365
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1366
|
+
* loss.
|
|
1367
|
+
*/
|
|
1368
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1372
|
+
* loss.
|
|
1373
|
+
*/
|
|
1374
|
+
toAgent?: LineCustom.ToAgent;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
export namespace LineCustom {
|
|
1378
|
+
/**
|
|
1379
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1380
|
+
* loss.
|
|
1381
|
+
*/
|
|
1382
|
+
export interface FromAgent {
|
|
1383
|
+
/**
|
|
1384
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1385
|
+
*/
|
|
1386
|
+
packetLossPercent: number;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1390
|
+
*/
|
|
1391
|
+
meanBurstPackets?: number;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1396
|
+
* loss.
|
|
1397
|
+
*/
|
|
1398
|
+
export interface ToAgent {
|
|
1399
|
+
/**
|
|
1400
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1401
|
+
*/
|
|
1402
|
+
packetLossPercent: number;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1406
|
+
*/
|
|
1407
|
+
meanBurstPackets?: number;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1244
1412
|
/**
|
|
1245
1413
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
1246
1414
|
*/
|
|
@@ -1367,9 +1535,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1367
1535
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1368
1536
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1369
1537
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1370
|
-
* OCCASIONAL
|
|
1371
|
-
*
|
|
1372
|
-
*
|
|
1538
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
1539
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
1540
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
1541
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
1542
|
+
* applies at any level.
|
|
1373
1543
|
*/
|
|
1374
1544
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1375
1545
|
|
|
@@ -1594,6 +1764,28 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1594
1764
|
*/
|
|
1595
1765
|
description: string | null;
|
|
1596
1766
|
|
|
1767
|
+
/**
|
|
1768
|
+
* The industry the agent serves
|
|
1769
|
+
*/
|
|
1770
|
+
industry:
|
|
1771
|
+
| 'HEALTHCARE'
|
|
1772
|
+
| 'FINANCIAL_SERVICES'
|
|
1773
|
+
| 'INSURANCE'
|
|
1774
|
+
| 'DEBT_COLLECTION'
|
|
1775
|
+
| 'RETAIL'
|
|
1776
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
1777
|
+
| 'TELECOMMUNICATIONS'
|
|
1778
|
+
| 'TECHNOLOGY'
|
|
1779
|
+
| 'PUBLIC_SECTOR'
|
|
1780
|
+
| 'UTILITIES'
|
|
1781
|
+
| 'LOGISTICS'
|
|
1782
|
+
| 'AUTOMOTIVE'
|
|
1783
|
+
| 'HOME_SERVICES'
|
|
1784
|
+
| 'RESTAURANTS'
|
|
1785
|
+
| 'EDUCATION'
|
|
1786
|
+
| 'OTHER'
|
|
1787
|
+
| null;
|
|
1788
|
+
|
|
1597
1789
|
/**
|
|
1598
1790
|
* Name of the agent
|
|
1599
1791
|
*/
|
|
@@ -1672,7 +1864,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1672
1864
|
/**
|
|
1673
1865
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
1674
1866
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
1675
|
-
* when.
|
|
1867
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
1868
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
1869
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
1870
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
1871
|
+
* concept.
|
|
1676
1872
|
*/
|
|
1677
1873
|
prompt?: string | null;
|
|
1678
1874
|
|
|
@@ -1721,6 +1917,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1721
1917
|
*/
|
|
1722
1918
|
createdAt: string;
|
|
1723
1919
|
|
|
1920
|
+
/**
|
|
1921
|
+
* The per-direction loss of a CUSTOM line.
|
|
1922
|
+
*/
|
|
1923
|
+
lineCustom: Environment.LineCustom | null;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
1927
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
1928
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
1929
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
1930
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
1931
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
1932
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
1933
|
+
*/
|
|
1934
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
1935
|
+
|
|
1724
1936
|
name: string;
|
|
1725
1937
|
|
|
1726
1938
|
/**
|
|
@@ -1731,6 +1943,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1731
1943
|
description?: string | null;
|
|
1732
1944
|
}
|
|
1733
1945
|
|
|
1946
|
+
export namespace Environment {
|
|
1947
|
+
/**
|
|
1948
|
+
* The per-direction loss of a CUSTOM line.
|
|
1949
|
+
*/
|
|
1950
|
+
export interface LineCustom {
|
|
1951
|
+
/**
|
|
1952
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1953
|
+
* loss.
|
|
1954
|
+
*/
|
|
1955
|
+
fromAgent?: LineCustom.FromAgent;
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1959
|
+
* loss.
|
|
1960
|
+
*/
|
|
1961
|
+
toAgent?: LineCustom.ToAgent;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
export namespace LineCustom {
|
|
1965
|
+
/**
|
|
1966
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
1967
|
+
* loss.
|
|
1968
|
+
*/
|
|
1969
|
+
export interface FromAgent {
|
|
1970
|
+
/**
|
|
1971
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1972
|
+
*/
|
|
1973
|
+
packetLossPercent: number;
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1977
|
+
*/
|
|
1978
|
+
meanBurstPackets?: number;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
1983
|
+
* loss.
|
|
1984
|
+
*/
|
|
1985
|
+
export interface ToAgent {
|
|
1986
|
+
/**
|
|
1987
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
1988
|
+
*/
|
|
1989
|
+
packetLossPercent: number;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
1993
|
+
*/
|
|
1994
|
+
meanBurstPackets?: number;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1734
1999
|
export interface HandoffPersona {
|
|
1735
2000
|
/**
|
|
1736
2001
|
* Unique identifier of the persona
|
|
@@ -1854,9 +2119,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1854
2119
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
1855
2120
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
1856
2121
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
1857
|
-
* OCCASIONAL
|
|
1858
|
-
*
|
|
1859
|
-
*
|
|
2122
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2123
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2124
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2125
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2126
|
+
* applies at any level.
|
|
1860
2127
|
*/
|
|
1861
2128
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
1862
2129
|
|
|
@@ -2104,9 +2371,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2104
2371
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2105
2372
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2106
2373
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2107
|
-
* OCCASIONAL
|
|
2108
|
-
*
|
|
2109
|
-
*
|
|
2374
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2375
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2376
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2377
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2378
|
+
* applies at any level.
|
|
2110
2379
|
*/
|
|
2111
2380
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2112
2381
|
|
|
@@ -2296,7 +2565,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2296
2565
|
/**
|
|
2297
2566
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
2298
2567
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
2299
|
-
* when.
|
|
2568
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
2569
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
2570
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
2571
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
2572
|
+
* concept.
|
|
2300
2573
|
*/
|
|
2301
2574
|
prompt?: string | null;
|
|
2302
2575
|
|
|
@@ -2345,6 +2618,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2345
2618
|
*/
|
|
2346
2619
|
createdAt: string;
|
|
2347
2620
|
|
|
2621
|
+
/**
|
|
2622
|
+
* The per-direction loss of a CUSTOM line.
|
|
2623
|
+
*/
|
|
2624
|
+
lineCustom: Environment.LineCustom | null;
|
|
2625
|
+
|
|
2626
|
+
/**
|
|
2627
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
2628
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
2629
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
2630
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
2631
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
2632
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
2633
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
2634
|
+
*/
|
|
2635
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
2636
|
+
|
|
2348
2637
|
name: string;
|
|
2349
2638
|
|
|
2350
2639
|
/**
|
|
@@ -2355,6 +2644,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2355
2644
|
description?: string | null;
|
|
2356
2645
|
}
|
|
2357
2646
|
|
|
2647
|
+
export namespace Environment {
|
|
2648
|
+
/**
|
|
2649
|
+
* The per-direction loss of a CUSTOM line.
|
|
2650
|
+
*/
|
|
2651
|
+
export interface LineCustom {
|
|
2652
|
+
/**
|
|
2653
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2654
|
+
* loss.
|
|
2655
|
+
*/
|
|
2656
|
+
fromAgent?: LineCustom.FromAgent;
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2660
|
+
* loss.
|
|
2661
|
+
*/
|
|
2662
|
+
toAgent?: LineCustom.ToAgent;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
export namespace LineCustom {
|
|
2666
|
+
/**
|
|
2667
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
2668
|
+
* loss.
|
|
2669
|
+
*/
|
|
2670
|
+
export interface FromAgent {
|
|
2671
|
+
/**
|
|
2672
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2673
|
+
*/
|
|
2674
|
+
packetLossPercent: number;
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2678
|
+
*/
|
|
2679
|
+
meanBurstPackets?: number;
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
2684
|
+
* loss.
|
|
2685
|
+
*/
|
|
2686
|
+
export interface ToAgent {
|
|
2687
|
+
/**
|
|
2688
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
2689
|
+
*/
|
|
2690
|
+
packetLossPercent: number;
|
|
2691
|
+
|
|
2692
|
+
/**
|
|
2693
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
2694
|
+
*/
|
|
2695
|
+
meanBurstPackets?: number;
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2358
2700
|
export interface HandoffPersona {
|
|
2359
2701
|
/**
|
|
2360
2702
|
* Unique identifier of the persona
|
|
@@ -2478,9 +2820,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2478
2820
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2479
2821
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2480
2822
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2481
|
-
* OCCASIONAL
|
|
2482
|
-
*
|
|
2483
|
-
*
|
|
2823
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
2824
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
2825
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
2826
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
2827
|
+
* applies at any level.
|
|
2484
2828
|
*/
|
|
2485
2829
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2486
2830
|
|
|
@@ -2728,9 +3072,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2728
3072
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
2729
3073
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
2730
3074
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
2731
|
-
* OCCASIONAL
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
3075
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3076
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3077
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3078
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3079
|
+
* applies at any level.
|
|
2734
3080
|
*/
|
|
2735
3081
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
2736
3082
|
|
|
@@ -2930,6 +3276,28 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2930
3276
|
*/
|
|
2931
3277
|
description: string | null;
|
|
2932
3278
|
|
|
3279
|
+
/**
|
|
3280
|
+
* The industry the agent serves
|
|
3281
|
+
*/
|
|
3282
|
+
industry:
|
|
3283
|
+
| 'HEALTHCARE'
|
|
3284
|
+
| 'FINANCIAL_SERVICES'
|
|
3285
|
+
| 'INSURANCE'
|
|
3286
|
+
| 'DEBT_COLLECTION'
|
|
3287
|
+
| 'RETAIL'
|
|
3288
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
3289
|
+
| 'TELECOMMUNICATIONS'
|
|
3290
|
+
| 'TECHNOLOGY'
|
|
3291
|
+
| 'PUBLIC_SECTOR'
|
|
3292
|
+
| 'UTILITIES'
|
|
3293
|
+
| 'LOGISTICS'
|
|
3294
|
+
| 'AUTOMOTIVE'
|
|
3295
|
+
| 'HOME_SERVICES'
|
|
3296
|
+
| 'RESTAURANTS'
|
|
3297
|
+
| 'EDUCATION'
|
|
3298
|
+
| 'OTHER'
|
|
3299
|
+
| null;
|
|
3300
|
+
|
|
2933
3301
|
/**
|
|
2934
3302
|
* Name of the agent
|
|
2935
3303
|
*/
|
|
@@ -3038,6 +3406,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3038
3406
|
*/
|
|
3039
3407
|
createdAt: string;
|
|
3040
3408
|
|
|
3409
|
+
/**
|
|
3410
|
+
* The per-direction loss of a CUSTOM line.
|
|
3411
|
+
*/
|
|
3412
|
+
lineCustom: Environment.LineCustom | null;
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3416
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3417
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3418
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3419
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3420
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3421
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3422
|
+
*/
|
|
3423
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3424
|
+
|
|
3041
3425
|
name: string;
|
|
3042
3426
|
|
|
3043
3427
|
/**
|
|
@@ -3048,6 +3432,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3048
3432
|
description?: string | null;
|
|
3049
3433
|
}
|
|
3050
3434
|
|
|
3435
|
+
export namespace Environment {
|
|
3436
|
+
/**
|
|
3437
|
+
* The per-direction loss of a CUSTOM line.
|
|
3438
|
+
*/
|
|
3439
|
+
export interface LineCustom {
|
|
3440
|
+
/**
|
|
3441
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3442
|
+
* loss.
|
|
3443
|
+
*/
|
|
3444
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3448
|
+
* loss.
|
|
3449
|
+
*/
|
|
3450
|
+
toAgent?: LineCustom.ToAgent;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
export namespace LineCustom {
|
|
3454
|
+
/**
|
|
3455
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3456
|
+
* loss.
|
|
3457
|
+
*/
|
|
3458
|
+
export interface FromAgent {
|
|
3459
|
+
/**
|
|
3460
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3461
|
+
*/
|
|
3462
|
+
packetLossPercent: number;
|
|
3463
|
+
|
|
3464
|
+
/**
|
|
3465
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3466
|
+
*/
|
|
3467
|
+
meanBurstPackets?: number;
|
|
3468
|
+
}
|
|
3469
|
+
|
|
3470
|
+
/**
|
|
3471
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3472
|
+
* loss.
|
|
3473
|
+
*/
|
|
3474
|
+
export interface ToAgent {
|
|
3475
|
+
/**
|
|
3476
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3477
|
+
*/
|
|
3478
|
+
packetLossPercent: number;
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3482
|
+
*/
|
|
3483
|
+
meanBurstPackets?: number;
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3051
3488
|
/**
|
|
3052
3489
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
3053
3490
|
*/
|
|
@@ -3174,9 +3611,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3174
3611
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3175
3612
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3176
3613
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3177
|
-
* OCCASIONAL
|
|
3178
|
-
*
|
|
3179
|
-
*
|
|
3614
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
3615
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
3616
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
3617
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
3618
|
+
* applies at any level.
|
|
3180
3619
|
*/
|
|
3181
3620
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3182
3621
|
|
|
@@ -3396,6 +3835,22 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3396
3835
|
*/
|
|
3397
3836
|
createdAt: string;
|
|
3398
3837
|
|
|
3838
|
+
/**
|
|
3839
|
+
* The per-direction loss of a CUSTOM line.
|
|
3840
|
+
*/
|
|
3841
|
+
lineCustom: Environment.LineCustom | null;
|
|
3842
|
+
|
|
3843
|
+
/**
|
|
3844
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
3845
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
3846
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
3847
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
3848
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
3849
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
3850
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
3851
|
+
*/
|
|
3852
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
3853
|
+
|
|
3399
3854
|
name: string;
|
|
3400
3855
|
|
|
3401
3856
|
/**
|
|
@@ -3406,6 +3861,59 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3406
3861
|
description?: string | null;
|
|
3407
3862
|
}
|
|
3408
3863
|
|
|
3864
|
+
export namespace Environment {
|
|
3865
|
+
/**
|
|
3866
|
+
* The per-direction loss of a CUSTOM line.
|
|
3867
|
+
*/
|
|
3868
|
+
export interface LineCustom {
|
|
3869
|
+
/**
|
|
3870
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3871
|
+
* loss.
|
|
3872
|
+
*/
|
|
3873
|
+
fromAgent?: LineCustom.FromAgent;
|
|
3874
|
+
|
|
3875
|
+
/**
|
|
3876
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3877
|
+
* loss.
|
|
3878
|
+
*/
|
|
3879
|
+
toAgent?: LineCustom.ToAgent;
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
export namespace LineCustom {
|
|
3883
|
+
/**
|
|
3884
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
3885
|
+
* loss.
|
|
3886
|
+
*/
|
|
3887
|
+
export interface FromAgent {
|
|
3888
|
+
/**
|
|
3889
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3890
|
+
*/
|
|
3891
|
+
packetLossPercent: number;
|
|
3892
|
+
|
|
3893
|
+
/**
|
|
3894
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3895
|
+
*/
|
|
3896
|
+
meanBurstPackets?: number;
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
3901
|
+
* loss.
|
|
3902
|
+
*/
|
|
3903
|
+
export interface ToAgent {
|
|
3904
|
+
/**
|
|
3905
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
3906
|
+
*/
|
|
3907
|
+
packetLossPercent: number;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
3911
|
+
*/
|
|
3912
|
+
meanBurstPackets?: number;
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
|
|
3409
3917
|
/**
|
|
3410
3918
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
3411
3919
|
*/
|
|
@@ -3532,9 +4040,11 @@ export namespace CustomerFlowCreateResponse {
|
|
|
3532
4040
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
3533
4041
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
3534
4042
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
3535
|
-
* OCCASIONAL
|
|
3536
|
-
*
|
|
3537
|
-
*
|
|
4043
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4044
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4045
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4046
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4047
|
+
* applies at any level.
|
|
3538
4048
|
*/
|
|
3539
4049
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
3540
4050
|
|
|
@@ -3788,6 +4298,28 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
3788
4298
|
*/
|
|
3789
4299
|
description: string | null;
|
|
3790
4300
|
|
|
4301
|
+
/**
|
|
4302
|
+
* The industry the agent serves
|
|
4303
|
+
*/
|
|
4304
|
+
industry:
|
|
4305
|
+
| 'HEALTHCARE'
|
|
4306
|
+
| 'FINANCIAL_SERVICES'
|
|
4307
|
+
| 'INSURANCE'
|
|
4308
|
+
| 'DEBT_COLLECTION'
|
|
4309
|
+
| 'RETAIL'
|
|
4310
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
4311
|
+
| 'TELECOMMUNICATIONS'
|
|
4312
|
+
| 'TECHNOLOGY'
|
|
4313
|
+
| 'PUBLIC_SECTOR'
|
|
4314
|
+
| 'UTILITIES'
|
|
4315
|
+
| 'LOGISTICS'
|
|
4316
|
+
| 'AUTOMOTIVE'
|
|
4317
|
+
| 'HOME_SERVICES'
|
|
4318
|
+
| 'RESTAURANTS'
|
|
4319
|
+
| 'EDUCATION'
|
|
4320
|
+
| 'OTHER'
|
|
4321
|
+
| null;
|
|
4322
|
+
|
|
3791
4323
|
/**
|
|
3792
4324
|
* Name of the agent
|
|
3793
4325
|
*/
|
|
@@ -3903,6 +4435,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
3903
4435
|
*/
|
|
3904
4436
|
createdAt: string;
|
|
3905
4437
|
|
|
4438
|
+
/**
|
|
4439
|
+
* The per-direction loss of a CUSTOM line.
|
|
4440
|
+
*/
|
|
4441
|
+
lineCustom: Environment.LineCustom | null;
|
|
4442
|
+
|
|
4443
|
+
/**
|
|
4444
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4445
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4446
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4447
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4448
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4449
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4450
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4451
|
+
*/
|
|
4452
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4453
|
+
|
|
3906
4454
|
name: string;
|
|
3907
4455
|
|
|
3908
4456
|
/**
|
|
@@ -3913,6 +4461,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
3913
4461
|
description?: string | null;
|
|
3914
4462
|
}
|
|
3915
4463
|
|
|
4464
|
+
export namespace Environment {
|
|
4465
|
+
/**
|
|
4466
|
+
* The per-direction loss of a CUSTOM line.
|
|
4467
|
+
*/
|
|
4468
|
+
export interface LineCustom {
|
|
4469
|
+
/**
|
|
4470
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4471
|
+
* loss.
|
|
4472
|
+
*/
|
|
4473
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4474
|
+
|
|
4475
|
+
/**
|
|
4476
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4477
|
+
* loss.
|
|
4478
|
+
*/
|
|
4479
|
+
toAgent?: LineCustom.ToAgent;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
export namespace LineCustom {
|
|
4483
|
+
/**
|
|
4484
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4485
|
+
* loss.
|
|
4486
|
+
*/
|
|
4487
|
+
export interface FromAgent {
|
|
4488
|
+
/**
|
|
4489
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4490
|
+
*/
|
|
4491
|
+
packetLossPercent: number;
|
|
4492
|
+
|
|
4493
|
+
/**
|
|
4494
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4495
|
+
*/
|
|
4496
|
+
meanBurstPackets?: number;
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4501
|
+
* loss.
|
|
4502
|
+
*/
|
|
4503
|
+
export interface ToAgent {
|
|
4504
|
+
/**
|
|
4505
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4506
|
+
*/
|
|
4507
|
+
packetLossPercent: number;
|
|
4508
|
+
|
|
4509
|
+
/**
|
|
4510
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4511
|
+
*/
|
|
4512
|
+
meanBurstPackets?: number;
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
|
|
3916
4517
|
/**
|
|
3917
4518
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
3918
4519
|
*/
|
|
@@ -4039,9 +4640,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4039
4640
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4040
4641
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4041
4642
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4042
|
-
* OCCASIONAL
|
|
4043
|
-
*
|
|
4044
|
-
*
|
|
4643
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
4644
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
4645
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
4646
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
4647
|
+
* applies at any level.
|
|
4045
4648
|
*/
|
|
4046
4649
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4047
4650
|
|
|
@@ -4268,6 +4871,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4268
4871
|
*/
|
|
4269
4872
|
createdAt: string;
|
|
4270
4873
|
|
|
4874
|
+
/**
|
|
4875
|
+
* The per-direction loss of a CUSTOM line.
|
|
4876
|
+
*/
|
|
4877
|
+
lineCustom: Environment.LineCustom | null;
|
|
4878
|
+
|
|
4879
|
+
/**
|
|
4880
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
4881
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
4882
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
4883
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
4884
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
4885
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
4886
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
4887
|
+
*/
|
|
4888
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
4889
|
+
|
|
4271
4890
|
name: string;
|
|
4272
4891
|
|
|
4273
4892
|
/**
|
|
@@ -4278,6 +4897,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4278
4897
|
description?: string | null;
|
|
4279
4898
|
}
|
|
4280
4899
|
|
|
4900
|
+
export namespace Environment {
|
|
4901
|
+
/**
|
|
4902
|
+
* The per-direction loss of a CUSTOM line.
|
|
4903
|
+
*/
|
|
4904
|
+
export interface LineCustom {
|
|
4905
|
+
/**
|
|
4906
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4907
|
+
* loss.
|
|
4908
|
+
*/
|
|
4909
|
+
fromAgent?: LineCustom.FromAgent;
|
|
4910
|
+
|
|
4911
|
+
/**
|
|
4912
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4913
|
+
* loss.
|
|
4914
|
+
*/
|
|
4915
|
+
toAgent?: LineCustom.ToAgent;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
export namespace LineCustom {
|
|
4919
|
+
/**
|
|
4920
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
4921
|
+
* loss.
|
|
4922
|
+
*/
|
|
4923
|
+
export interface FromAgent {
|
|
4924
|
+
/**
|
|
4925
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4926
|
+
*/
|
|
4927
|
+
packetLossPercent: number;
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4931
|
+
*/
|
|
4932
|
+
meanBurstPackets?: number;
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
/**
|
|
4936
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
4937
|
+
* loss.
|
|
4938
|
+
*/
|
|
4939
|
+
export interface ToAgent {
|
|
4940
|
+
/**
|
|
4941
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
4942
|
+
*/
|
|
4943
|
+
packetLossPercent: number;
|
|
4944
|
+
|
|
4945
|
+
/**
|
|
4946
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
4947
|
+
*/
|
|
4948
|
+
meanBurstPackets?: number;
|
|
4949
|
+
}
|
|
4950
|
+
}
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4281
4953
|
/**
|
|
4282
4954
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
4283
4955
|
*/
|
|
@@ -4404,9 +5076,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4404
5076
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4405
5077
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4406
5078
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4407
|
-
* OCCASIONAL
|
|
4408
|
-
*
|
|
4409
|
-
*
|
|
5079
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5080
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5081
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5082
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5083
|
+
* applies at any level.
|
|
4410
5084
|
*/
|
|
4411
5085
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4412
5086
|
|
|
@@ -4631,6 +5305,28 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4631
5305
|
*/
|
|
4632
5306
|
description: string | null;
|
|
4633
5307
|
|
|
5308
|
+
/**
|
|
5309
|
+
* The industry the agent serves
|
|
5310
|
+
*/
|
|
5311
|
+
industry:
|
|
5312
|
+
| 'HEALTHCARE'
|
|
5313
|
+
| 'FINANCIAL_SERVICES'
|
|
5314
|
+
| 'INSURANCE'
|
|
5315
|
+
| 'DEBT_COLLECTION'
|
|
5316
|
+
| 'RETAIL'
|
|
5317
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
5318
|
+
| 'TELECOMMUNICATIONS'
|
|
5319
|
+
| 'TECHNOLOGY'
|
|
5320
|
+
| 'PUBLIC_SECTOR'
|
|
5321
|
+
| 'UTILITIES'
|
|
5322
|
+
| 'LOGISTICS'
|
|
5323
|
+
| 'AUTOMOTIVE'
|
|
5324
|
+
| 'HOME_SERVICES'
|
|
5325
|
+
| 'RESTAURANTS'
|
|
5326
|
+
| 'EDUCATION'
|
|
5327
|
+
| 'OTHER'
|
|
5328
|
+
| null;
|
|
5329
|
+
|
|
4634
5330
|
/**
|
|
4635
5331
|
* Name of the agent
|
|
4636
5332
|
*/
|
|
@@ -4709,7 +5405,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4709
5405
|
/**
|
|
4710
5406
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
4711
5407
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
4712
|
-
* when.
|
|
5408
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
5409
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
5410
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
5411
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
5412
|
+
* concept.
|
|
4713
5413
|
*/
|
|
4714
5414
|
prompt?: string | null;
|
|
4715
5415
|
|
|
@@ -4758,6 +5458,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4758
5458
|
*/
|
|
4759
5459
|
createdAt: string;
|
|
4760
5460
|
|
|
5461
|
+
/**
|
|
5462
|
+
* The per-direction loss of a CUSTOM line.
|
|
5463
|
+
*/
|
|
5464
|
+
lineCustom: Environment.LineCustom | null;
|
|
5465
|
+
|
|
5466
|
+
/**
|
|
5467
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
5468
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
5469
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
5470
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
5471
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
5472
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
5473
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
5474
|
+
*/
|
|
5475
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
5476
|
+
|
|
4761
5477
|
name: string;
|
|
4762
5478
|
|
|
4763
5479
|
/**
|
|
@@ -4768,6 +5484,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4768
5484
|
description?: string | null;
|
|
4769
5485
|
}
|
|
4770
5486
|
|
|
5487
|
+
export namespace Environment {
|
|
5488
|
+
/**
|
|
5489
|
+
* The per-direction loss of a CUSTOM line.
|
|
5490
|
+
*/
|
|
5491
|
+
export interface LineCustom {
|
|
5492
|
+
/**
|
|
5493
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5494
|
+
* loss.
|
|
5495
|
+
*/
|
|
5496
|
+
fromAgent?: LineCustom.FromAgent;
|
|
5497
|
+
|
|
5498
|
+
/**
|
|
5499
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5500
|
+
* loss.
|
|
5501
|
+
*/
|
|
5502
|
+
toAgent?: LineCustom.ToAgent;
|
|
5503
|
+
}
|
|
5504
|
+
|
|
5505
|
+
export namespace LineCustom {
|
|
5506
|
+
/**
|
|
5507
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
5508
|
+
* loss.
|
|
5509
|
+
*/
|
|
5510
|
+
export interface FromAgent {
|
|
5511
|
+
/**
|
|
5512
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5513
|
+
*/
|
|
5514
|
+
packetLossPercent: number;
|
|
5515
|
+
|
|
5516
|
+
/**
|
|
5517
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5518
|
+
*/
|
|
5519
|
+
meanBurstPackets?: number;
|
|
5520
|
+
}
|
|
5521
|
+
|
|
5522
|
+
/**
|
|
5523
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
5524
|
+
* loss.
|
|
5525
|
+
*/
|
|
5526
|
+
export interface ToAgent {
|
|
5527
|
+
/**
|
|
5528
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
5529
|
+
*/
|
|
5530
|
+
packetLossPercent: number;
|
|
5531
|
+
|
|
5532
|
+
/**
|
|
5533
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
5534
|
+
*/
|
|
5535
|
+
meanBurstPackets?: number;
|
|
5536
|
+
}
|
|
5537
|
+
}
|
|
5538
|
+
}
|
|
5539
|
+
|
|
4771
5540
|
export interface HandoffPersona {
|
|
4772
5541
|
/**
|
|
4773
5542
|
* Unique identifier of the persona
|
|
@@ -4891,9 +5660,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4891
5660
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
4892
5661
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
4893
5662
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
4894
|
-
* OCCASIONAL
|
|
4895
|
-
*
|
|
4896
|
-
*
|
|
5663
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5664
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5665
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5666
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5667
|
+
* applies at any level.
|
|
4897
5668
|
*/
|
|
4898
5669
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
4899
5670
|
|
|
@@ -5141,9 +5912,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5141
5912
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5142
5913
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5143
5914
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5144
|
-
* OCCASIONAL
|
|
5145
|
-
*
|
|
5146
|
-
*
|
|
5915
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
5916
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
5917
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
5918
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
5919
|
+
* applies at any level.
|
|
5147
5920
|
*/
|
|
5148
5921
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5149
5922
|
|
|
@@ -5333,7 +6106,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5333
6106
|
/**
|
|
5334
6107
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
5335
6108
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
5336
|
-
* when.
|
|
6109
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
6110
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
6111
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
6112
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
6113
|
+
* concept.
|
|
5337
6114
|
*/
|
|
5338
6115
|
prompt?: string | null;
|
|
5339
6116
|
|
|
@@ -5382,6 +6159,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5382
6159
|
*/
|
|
5383
6160
|
createdAt: string;
|
|
5384
6161
|
|
|
6162
|
+
/**
|
|
6163
|
+
* The per-direction loss of a CUSTOM line.
|
|
6164
|
+
*/
|
|
6165
|
+
lineCustom: Environment.LineCustom | null;
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
6169
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
6170
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
6171
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
6172
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
6173
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
6174
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
6175
|
+
*/
|
|
6176
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
6177
|
+
|
|
5385
6178
|
name: string;
|
|
5386
6179
|
|
|
5387
6180
|
/**
|
|
@@ -5392,6 +6185,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5392
6185
|
description?: string | null;
|
|
5393
6186
|
}
|
|
5394
6187
|
|
|
6188
|
+
export namespace Environment {
|
|
6189
|
+
/**
|
|
6190
|
+
* The per-direction loss of a CUSTOM line.
|
|
6191
|
+
*/
|
|
6192
|
+
export interface LineCustom {
|
|
6193
|
+
/**
|
|
6194
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6195
|
+
* loss.
|
|
6196
|
+
*/
|
|
6197
|
+
fromAgent?: LineCustom.FromAgent;
|
|
6198
|
+
|
|
6199
|
+
/**
|
|
6200
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6201
|
+
* loss.
|
|
6202
|
+
*/
|
|
6203
|
+
toAgent?: LineCustom.ToAgent;
|
|
6204
|
+
}
|
|
6205
|
+
|
|
6206
|
+
export namespace LineCustom {
|
|
6207
|
+
/**
|
|
6208
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6209
|
+
* loss.
|
|
6210
|
+
*/
|
|
6211
|
+
export interface FromAgent {
|
|
6212
|
+
/**
|
|
6213
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6214
|
+
*/
|
|
6215
|
+
packetLossPercent: number;
|
|
6216
|
+
|
|
6217
|
+
/**
|
|
6218
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6219
|
+
*/
|
|
6220
|
+
meanBurstPackets?: number;
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6223
|
+
/**
|
|
6224
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6225
|
+
* loss.
|
|
6226
|
+
*/
|
|
6227
|
+
export interface ToAgent {
|
|
6228
|
+
/**
|
|
6229
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
6230
|
+
*/
|
|
6231
|
+
packetLossPercent: number;
|
|
6232
|
+
|
|
6233
|
+
/**
|
|
6234
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
6235
|
+
*/
|
|
6236
|
+
meanBurstPackets?: number;
|
|
6237
|
+
}
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
|
|
5395
6241
|
export interface HandoffPersona {
|
|
5396
6242
|
/**
|
|
5397
6243
|
* Unique identifier of the persona
|
|
@@ -5515,9 +6361,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5515
6361
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5516
6362
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5517
6363
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5518
|
-
* OCCASIONAL
|
|
5519
|
-
*
|
|
5520
|
-
*
|
|
6364
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6365
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6366
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6367
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6368
|
+
* applies at any level.
|
|
5521
6369
|
*/
|
|
5522
6370
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5523
6371
|
|
|
@@ -5765,9 +6613,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5765
6613
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
5766
6614
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
5767
6615
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
5768
|
-
* OCCASIONAL
|
|
5769
|
-
*
|
|
5770
|
-
*
|
|
6616
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
6617
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
6618
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
6619
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
6620
|
+
* applies at any level.
|
|
5771
6621
|
*/
|
|
5772
6622
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
5773
6623
|
|
|
@@ -5967,6 +6817,28 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
5967
6817
|
*/
|
|
5968
6818
|
description: string | null;
|
|
5969
6819
|
|
|
6820
|
+
/**
|
|
6821
|
+
* The industry the agent serves
|
|
6822
|
+
*/
|
|
6823
|
+
industry:
|
|
6824
|
+
| 'HEALTHCARE'
|
|
6825
|
+
| 'FINANCIAL_SERVICES'
|
|
6826
|
+
| 'INSURANCE'
|
|
6827
|
+
| 'DEBT_COLLECTION'
|
|
6828
|
+
| 'RETAIL'
|
|
6829
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
6830
|
+
| 'TELECOMMUNICATIONS'
|
|
6831
|
+
| 'TECHNOLOGY'
|
|
6832
|
+
| 'PUBLIC_SECTOR'
|
|
6833
|
+
| 'UTILITIES'
|
|
6834
|
+
| 'LOGISTICS'
|
|
6835
|
+
| 'AUTOMOTIVE'
|
|
6836
|
+
| 'HOME_SERVICES'
|
|
6837
|
+
| 'RESTAURANTS'
|
|
6838
|
+
| 'EDUCATION'
|
|
6839
|
+
| 'OTHER'
|
|
6840
|
+
| null;
|
|
6841
|
+
|
|
5970
6842
|
/**
|
|
5971
6843
|
* Name of the agent
|
|
5972
6844
|
*/
|
|
@@ -6075,6 +6947,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6075
6947
|
*/
|
|
6076
6948
|
createdAt: string;
|
|
6077
6949
|
|
|
6950
|
+
/**
|
|
6951
|
+
* The per-direction loss of a CUSTOM line.
|
|
6952
|
+
*/
|
|
6953
|
+
lineCustom: Environment.LineCustom | null;
|
|
6954
|
+
|
|
6955
|
+
/**
|
|
6956
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
6957
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
6958
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
6959
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
6960
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
6961
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
6962
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
6963
|
+
*/
|
|
6964
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
6965
|
+
|
|
6078
6966
|
name: string;
|
|
6079
6967
|
|
|
6080
6968
|
/**
|
|
@@ -6085,6 +6973,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6085
6973
|
description?: string | null;
|
|
6086
6974
|
}
|
|
6087
6975
|
|
|
6976
|
+
export namespace Environment {
|
|
6977
|
+
/**
|
|
6978
|
+
* The per-direction loss of a CUSTOM line.
|
|
6979
|
+
*/
|
|
6980
|
+
export interface LineCustom {
|
|
6981
|
+
/**
|
|
6982
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6983
|
+
* loss.
|
|
6984
|
+
*/
|
|
6985
|
+
fromAgent?: LineCustom.FromAgent;
|
|
6986
|
+
|
|
6987
|
+
/**
|
|
6988
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
6989
|
+
* loss.
|
|
6990
|
+
*/
|
|
6991
|
+
toAgent?: LineCustom.ToAgent;
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
export namespace LineCustom {
|
|
6995
|
+
/**
|
|
6996
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
6997
|
+
* loss.
|
|
6998
|
+
*/
|
|
6999
|
+
export interface FromAgent {
|
|
7000
|
+
/**
|
|
7001
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7002
|
+
*/
|
|
7003
|
+
packetLossPercent: number;
|
|
7004
|
+
|
|
7005
|
+
/**
|
|
7006
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7007
|
+
*/
|
|
7008
|
+
meanBurstPackets?: number;
|
|
7009
|
+
}
|
|
7010
|
+
|
|
7011
|
+
/**
|
|
7012
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7013
|
+
* loss.
|
|
7014
|
+
*/
|
|
7015
|
+
export interface ToAgent {
|
|
7016
|
+
/**
|
|
7017
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7018
|
+
*/
|
|
7019
|
+
packetLossPercent: number;
|
|
7020
|
+
|
|
7021
|
+
/**
|
|
7022
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7023
|
+
*/
|
|
7024
|
+
meanBurstPackets?: number;
|
|
7025
|
+
}
|
|
7026
|
+
}
|
|
7027
|
+
}
|
|
7028
|
+
|
|
6088
7029
|
/**
|
|
6089
7030
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
6090
7031
|
*/
|
|
@@ -6211,9 +7152,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6211
7152
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
6212
7153
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
6213
7154
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
6214
|
-
* OCCASIONAL
|
|
6215
|
-
*
|
|
6216
|
-
*
|
|
7155
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
7156
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
7157
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
7158
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
7159
|
+
* applies at any level.
|
|
6217
7160
|
*/
|
|
6218
7161
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
6219
7162
|
|
|
@@ -6433,6 +7376,22 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6433
7376
|
*/
|
|
6434
7377
|
createdAt: string;
|
|
6435
7378
|
|
|
7379
|
+
/**
|
|
7380
|
+
* The per-direction loss of a CUSTOM line.
|
|
7381
|
+
*/
|
|
7382
|
+
lineCustom: Environment.LineCustom | null;
|
|
7383
|
+
|
|
7384
|
+
/**
|
|
7385
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
7386
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
7387
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
7388
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
7389
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
7390
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
7391
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
7392
|
+
*/
|
|
7393
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
7394
|
+
|
|
6436
7395
|
name: string;
|
|
6437
7396
|
|
|
6438
7397
|
/**
|
|
@@ -6443,6 +7402,59 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6443
7402
|
description?: string | null;
|
|
6444
7403
|
}
|
|
6445
7404
|
|
|
7405
|
+
export namespace Environment {
|
|
7406
|
+
/**
|
|
7407
|
+
* The per-direction loss of a CUSTOM line.
|
|
7408
|
+
*/
|
|
7409
|
+
export interface LineCustom {
|
|
7410
|
+
/**
|
|
7411
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7412
|
+
* loss.
|
|
7413
|
+
*/
|
|
7414
|
+
fromAgent?: LineCustom.FromAgent;
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7418
|
+
* loss.
|
|
7419
|
+
*/
|
|
7420
|
+
toAgent?: LineCustom.ToAgent;
|
|
7421
|
+
}
|
|
7422
|
+
|
|
7423
|
+
export namespace LineCustom {
|
|
7424
|
+
/**
|
|
7425
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
7426
|
+
* loss.
|
|
7427
|
+
*/
|
|
7428
|
+
export interface FromAgent {
|
|
7429
|
+
/**
|
|
7430
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7431
|
+
*/
|
|
7432
|
+
packetLossPercent: number;
|
|
7433
|
+
|
|
7434
|
+
/**
|
|
7435
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7436
|
+
*/
|
|
7437
|
+
meanBurstPackets?: number;
|
|
7438
|
+
}
|
|
7439
|
+
|
|
7440
|
+
/**
|
|
7441
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
7442
|
+
* loss.
|
|
7443
|
+
*/
|
|
7444
|
+
export interface ToAgent {
|
|
7445
|
+
/**
|
|
7446
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
7447
|
+
*/
|
|
7448
|
+
packetLossPercent: number;
|
|
7449
|
+
|
|
7450
|
+
/**
|
|
7451
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
7452
|
+
*/
|
|
7453
|
+
meanBurstPackets?: number;
|
|
7454
|
+
}
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7457
|
+
|
|
6446
7458
|
/**
|
|
6447
7459
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
6448
7460
|
*/
|
|
@@ -6569,9 +7581,11 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
6569
7581
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
6570
7582
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
6571
7583
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
6572
|
-
* OCCASIONAL
|
|
6573
|
-
*
|
|
6574
|
-
*
|
|
7584
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
7585
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
7586
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
7587
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
7588
|
+
* applies at any level.
|
|
6575
7589
|
*/
|
|
6576
7590
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
6577
7591
|
|
|
@@ -6828,6 +7842,28 @@ export namespace CustomerFlowListResponse {
|
|
|
6828
7842
|
*/
|
|
6829
7843
|
description: string | null;
|
|
6830
7844
|
|
|
7845
|
+
/**
|
|
7846
|
+
* The industry the agent serves
|
|
7847
|
+
*/
|
|
7848
|
+
industry:
|
|
7849
|
+
| 'HEALTHCARE'
|
|
7850
|
+
| 'FINANCIAL_SERVICES'
|
|
7851
|
+
| 'INSURANCE'
|
|
7852
|
+
| 'DEBT_COLLECTION'
|
|
7853
|
+
| 'RETAIL'
|
|
7854
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
7855
|
+
| 'TELECOMMUNICATIONS'
|
|
7856
|
+
| 'TECHNOLOGY'
|
|
7857
|
+
| 'PUBLIC_SECTOR'
|
|
7858
|
+
| 'UTILITIES'
|
|
7859
|
+
| 'LOGISTICS'
|
|
7860
|
+
| 'AUTOMOTIVE'
|
|
7861
|
+
| 'HOME_SERVICES'
|
|
7862
|
+
| 'RESTAURANTS'
|
|
7863
|
+
| 'EDUCATION'
|
|
7864
|
+
| 'OTHER'
|
|
7865
|
+
| null;
|
|
7866
|
+
|
|
6831
7867
|
/**
|
|
6832
7868
|
* Name of the agent
|
|
6833
7869
|
*/
|
|
@@ -6943,6 +7979,22 @@ export namespace CustomerFlowListResponse {
|
|
|
6943
7979
|
*/
|
|
6944
7980
|
createdAt: string;
|
|
6945
7981
|
|
|
7982
|
+
/**
|
|
7983
|
+
* The per-direction loss of a CUSTOM line.
|
|
7984
|
+
*/
|
|
7985
|
+
lineCustom: Environment.LineCustom | null;
|
|
7986
|
+
|
|
7987
|
+
/**
|
|
7988
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
7989
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
7990
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
7991
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
7992
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
7993
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
7994
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
7995
|
+
*/
|
|
7996
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
7997
|
+
|
|
6946
7998
|
name: string;
|
|
6947
7999
|
|
|
6948
8000
|
/**
|
|
@@ -6953,6 +8005,59 @@ export namespace CustomerFlowListResponse {
|
|
|
6953
8005
|
description?: string | null;
|
|
6954
8006
|
}
|
|
6955
8007
|
|
|
8008
|
+
export namespace Environment {
|
|
8009
|
+
/**
|
|
8010
|
+
* The per-direction loss of a CUSTOM line.
|
|
8011
|
+
*/
|
|
8012
|
+
export interface LineCustom {
|
|
8013
|
+
/**
|
|
8014
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8015
|
+
* loss.
|
|
8016
|
+
*/
|
|
8017
|
+
fromAgent?: LineCustom.FromAgent;
|
|
8018
|
+
|
|
8019
|
+
/**
|
|
8020
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8021
|
+
* loss.
|
|
8022
|
+
*/
|
|
8023
|
+
toAgent?: LineCustom.ToAgent;
|
|
8024
|
+
}
|
|
8025
|
+
|
|
8026
|
+
export namespace LineCustom {
|
|
8027
|
+
/**
|
|
8028
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8029
|
+
* loss.
|
|
8030
|
+
*/
|
|
8031
|
+
export interface FromAgent {
|
|
8032
|
+
/**
|
|
8033
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8034
|
+
*/
|
|
8035
|
+
packetLossPercent: number;
|
|
8036
|
+
|
|
8037
|
+
/**
|
|
8038
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8039
|
+
*/
|
|
8040
|
+
meanBurstPackets?: number;
|
|
8041
|
+
}
|
|
8042
|
+
|
|
8043
|
+
/**
|
|
8044
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8045
|
+
* loss.
|
|
8046
|
+
*/
|
|
8047
|
+
export interface ToAgent {
|
|
8048
|
+
/**
|
|
8049
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8050
|
+
*/
|
|
8051
|
+
packetLossPercent: number;
|
|
8052
|
+
|
|
8053
|
+
/**
|
|
8054
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8055
|
+
*/
|
|
8056
|
+
meanBurstPackets?: number;
|
|
8057
|
+
}
|
|
8058
|
+
}
|
|
8059
|
+
}
|
|
8060
|
+
|
|
6956
8061
|
/**
|
|
6957
8062
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
6958
8063
|
*/
|
|
@@ -7079,9 +8184,11 @@ export namespace CustomerFlowListResponse {
|
|
|
7079
8184
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7080
8185
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7081
8186
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7082
|
-
* OCCASIONAL
|
|
7083
|
-
*
|
|
7084
|
-
*
|
|
8187
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8188
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8189
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8190
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8191
|
+
* applies at any level.
|
|
7085
8192
|
*/
|
|
7086
8193
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7087
8194
|
|
|
@@ -7308,6 +8415,22 @@ export namespace CustomerFlowListResponse {
|
|
|
7308
8415
|
*/
|
|
7309
8416
|
createdAt: string;
|
|
7310
8417
|
|
|
8418
|
+
/**
|
|
8419
|
+
* The per-direction loss of a CUSTOM line.
|
|
8420
|
+
*/
|
|
8421
|
+
lineCustom: Environment.LineCustom | null;
|
|
8422
|
+
|
|
8423
|
+
/**
|
|
8424
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
8425
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
8426
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
8427
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
8428
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
8429
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
8430
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
8431
|
+
*/
|
|
8432
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
8433
|
+
|
|
7311
8434
|
name: string;
|
|
7312
8435
|
|
|
7313
8436
|
/**
|
|
@@ -7318,6 +8441,59 @@ export namespace CustomerFlowListResponse {
|
|
|
7318
8441
|
description?: string | null;
|
|
7319
8442
|
}
|
|
7320
8443
|
|
|
8444
|
+
export namespace Environment {
|
|
8445
|
+
/**
|
|
8446
|
+
* The per-direction loss of a CUSTOM line.
|
|
8447
|
+
*/
|
|
8448
|
+
export interface LineCustom {
|
|
8449
|
+
/**
|
|
8450
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8451
|
+
* loss.
|
|
8452
|
+
*/
|
|
8453
|
+
fromAgent?: LineCustom.FromAgent;
|
|
8454
|
+
|
|
8455
|
+
/**
|
|
8456
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8457
|
+
* loss.
|
|
8458
|
+
*/
|
|
8459
|
+
toAgent?: LineCustom.ToAgent;
|
|
8460
|
+
}
|
|
8461
|
+
|
|
8462
|
+
export namespace LineCustom {
|
|
8463
|
+
/**
|
|
8464
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
8465
|
+
* loss.
|
|
8466
|
+
*/
|
|
8467
|
+
export interface FromAgent {
|
|
8468
|
+
/**
|
|
8469
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8470
|
+
*/
|
|
8471
|
+
packetLossPercent: number;
|
|
8472
|
+
|
|
8473
|
+
/**
|
|
8474
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8475
|
+
*/
|
|
8476
|
+
meanBurstPackets?: number;
|
|
8477
|
+
}
|
|
8478
|
+
|
|
8479
|
+
/**
|
|
8480
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
8481
|
+
* loss.
|
|
8482
|
+
*/
|
|
8483
|
+
export interface ToAgent {
|
|
8484
|
+
/**
|
|
8485
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
8486
|
+
*/
|
|
8487
|
+
packetLossPercent: number;
|
|
8488
|
+
|
|
8489
|
+
/**
|
|
8490
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
8491
|
+
*/
|
|
8492
|
+
meanBurstPackets?: number;
|
|
8493
|
+
}
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
|
|
7321
8497
|
/**
|
|
7322
8498
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
7323
8499
|
*/
|
|
@@ -7444,9 +8620,11 @@ export namespace CustomerFlowListResponse {
|
|
|
7444
8620
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7445
8621
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7446
8622
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7447
|
-
* OCCASIONAL
|
|
7448
|
-
*
|
|
7449
|
-
*
|
|
8623
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
8624
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
8625
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
8626
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
8627
|
+
* applies at any level.
|
|
7450
8628
|
*/
|
|
7451
8629
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7452
8630
|
|
|
@@ -7671,6 +8849,28 @@ export namespace CustomerFlowListResponse {
|
|
|
7671
8849
|
*/
|
|
7672
8850
|
description: string | null;
|
|
7673
8851
|
|
|
8852
|
+
/**
|
|
8853
|
+
* The industry the agent serves
|
|
8854
|
+
*/
|
|
8855
|
+
industry:
|
|
8856
|
+
| 'HEALTHCARE'
|
|
8857
|
+
| 'FINANCIAL_SERVICES'
|
|
8858
|
+
| 'INSURANCE'
|
|
8859
|
+
| 'DEBT_COLLECTION'
|
|
8860
|
+
| 'RETAIL'
|
|
8861
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
8862
|
+
| 'TELECOMMUNICATIONS'
|
|
8863
|
+
| 'TECHNOLOGY'
|
|
8864
|
+
| 'PUBLIC_SECTOR'
|
|
8865
|
+
| 'UTILITIES'
|
|
8866
|
+
| 'LOGISTICS'
|
|
8867
|
+
| 'AUTOMOTIVE'
|
|
8868
|
+
| 'HOME_SERVICES'
|
|
8869
|
+
| 'RESTAURANTS'
|
|
8870
|
+
| 'EDUCATION'
|
|
8871
|
+
| 'OTHER'
|
|
8872
|
+
| null;
|
|
8873
|
+
|
|
7674
8874
|
/**
|
|
7675
8875
|
* Name of the agent
|
|
7676
8876
|
*/
|
|
@@ -7749,7 +8949,11 @@ export namespace CustomerFlowListResponse {
|
|
|
7749
8949
|
/**
|
|
7750
8950
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
7751
8951
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
7752
|
-
* when.
|
|
8952
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
8953
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
8954
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
8955
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
8956
|
+
* concept.
|
|
7753
8957
|
*/
|
|
7754
8958
|
prompt?: string | null;
|
|
7755
8959
|
|
|
@@ -7798,6 +9002,22 @@ export namespace CustomerFlowListResponse {
|
|
|
7798
9002
|
*/
|
|
7799
9003
|
createdAt: string;
|
|
7800
9004
|
|
|
9005
|
+
/**
|
|
9006
|
+
* The per-direction loss of a CUSTOM line.
|
|
9007
|
+
*/
|
|
9008
|
+
lineCustom: Environment.LineCustom | null;
|
|
9009
|
+
|
|
9010
|
+
/**
|
|
9011
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
9012
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
9013
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
9014
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
9015
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
9016
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
9017
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
9018
|
+
*/
|
|
9019
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9020
|
+
|
|
7801
9021
|
name: string;
|
|
7802
9022
|
|
|
7803
9023
|
/**
|
|
@@ -7808,6 +9028,59 @@ export namespace CustomerFlowListResponse {
|
|
|
7808
9028
|
description?: string | null;
|
|
7809
9029
|
}
|
|
7810
9030
|
|
|
9031
|
+
export namespace Environment {
|
|
9032
|
+
/**
|
|
9033
|
+
* The per-direction loss of a CUSTOM line.
|
|
9034
|
+
*/
|
|
9035
|
+
export interface LineCustom {
|
|
9036
|
+
/**
|
|
9037
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9038
|
+
* loss.
|
|
9039
|
+
*/
|
|
9040
|
+
fromAgent?: LineCustom.FromAgent;
|
|
9041
|
+
|
|
9042
|
+
/**
|
|
9043
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9044
|
+
* loss.
|
|
9045
|
+
*/
|
|
9046
|
+
toAgent?: LineCustom.ToAgent;
|
|
9047
|
+
}
|
|
9048
|
+
|
|
9049
|
+
export namespace LineCustom {
|
|
9050
|
+
/**
|
|
9051
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9052
|
+
* loss.
|
|
9053
|
+
*/
|
|
9054
|
+
export interface FromAgent {
|
|
9055
|
+
/**
|
|
9056
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9057
|
+
*/
|
|
9058
|
+
packetLossPercent: number;
|
|
9059
|
+
|
|
9060
|
+
/**
|
|
9061
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9062
|
+
*/
|
|
9063
|
+
meanBurstPackets?: number;
|
|
9064
|
+
}
|
|
9065
|
+
|
|
9066
|
+
/**
|
|
9067
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9068
|
+
* loss.
|
|
9069
|
+
*/
|
|
9070
|
+
export interface ToAgent {
|
|
9071
|
+
/**
|
|
9072
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9073
|
+
*/
|
|
9074
|
+
packetLossPercent: number;
|
|
9075
|
+
|
|
9076
|
+
/**
|
|
9077
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9078
|
+
*/
|
|
9079
|
+
meanBurstPackets?: number;
|
|
9080
|
+
}
|
|
9081
|
+
}
|
|
9082
|
+
}
|
|
9083
|
+
|
|
7811
9084
|
export interface HandoffPersona {
|
|
7812
9085
|
/**
|
|
7813
9086
|
* Unique identifier of the persona
|
|
@@ -7931,9 +9204,11 @@ export namespace CustomerFlowListResponse {
|
|
|
7931
9204
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
7932
9205
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
7933
9206
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
7934
|
-
* OCCASIONAL
|
|
7935
|
-
*
|
|
7936
|
-
*
|
|
9207
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9208
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9209
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9210
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9211
|
+
* applies at any level.
|
|
7937
9212
|
*/
|
|
7938
9213
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
7939
9214
|
|
|
@@ -8181,9 +9456,11 @@ export namespace CustomerFlowListResponse {
|
|
|
8181
9456
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8182
9457
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8183
9458
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8184
|
-
* OCCASIONAL
|
|
8185
|
-
*
|
|
8186
|
-
*
|
|
9459
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9460
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9461
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9462
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9463
|
+
* applies at any level.
|
|
8187
9464
|
*/
|
|
8188
9465
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8189
9466
|
|
|
@@ -8373,7 +9650,11 @@ export namespace CustomerFlowListResponse {
|
|
|
8373
9650
|
/**
|
|
8374
9651
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
8375
9652
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
8376
|
-
* when.
|
|
9653
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
9654
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
9655
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
9656
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
9657
|
+
* concept.
|
|
8377
9658
|
*/
|
|
8378
9659
|
prompt?: string | null;
|
|
8379
9660
|
|
|
@@ -8422,6 +9703,22 @@ export namespace CustomerFlowListResponse {
|
|
|
8422
9703
|
*/
|
|
8423
9704
|
createdAt: string;
|
|
8424
9705
|
|
|
9706
|
+
/**
|
|
9707
|
+
* The per-direction loss of a CUSTOM line.
|
|
9708
|
+
*/
|
|
9709
|
+
lineCustom: Environment.LineCustom | null;
|
|
9710
|
+
|
|
9711
|
+
/**
|
|
9712
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
9713
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
9714
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
9715
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
9716
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
9717
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
9718
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
9719
|
+
*/
|
|
9720
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
9721
|
+
|
|
8425
9722
|
name: string;
|
|
8426
9723
|
|
|
8427
9724
|
/**
|
|
@@ -8432,6 +9729,59 @@ export namespace CustomerFlowListResponse {
|
|
|
8432
9729
|
description?: string | null;
|
|
8433
9730
|
}
|
|
8434
9731
|
|
|
9732
|
+
export namespace Environment {
|
|
9733
|
+
/**
|
|
9734
|
+
* The per-direction loss of a CUSTOM line.
|
|
9735
|
+
*/
|
|
9736
|
+
export interface LineCustom {
|
|
9737
|
+
/**
|
|
9738
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9739
|
+
* loss.
|
|
9740
|
+
*/
|
|
9741
|
+
fromAgent?: LineCustom.FromAgent;
|
|
9742
|
+
|
|
9743
|
+
/**
|
|
9744
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9745
|
+
* loss.
|
|
9746
|
+
*/
|
|
9747
|
+
toAgent?: LineCustom.ToAgent;
|
|
9748
|
+
}
|
|
9749
|
+
|
|
9750
|
+
export namespace LineCustom {
|
|
9751
|
+
/**
|
|
9752
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
9753
|
+
* loss.
|
|
9754
|
+
*/
|
|
9755
|
+
export interface FromAgent {
|
|
9756
|
+
/**
|
|
9757
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9758
|
+
*/
|
|
9759
|
+
packetLossPercent: number;
|
|
9760
|
+
|
|
9761
|
+
/**
|
|
9762
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9763
|
+
*/
|
|
9764
|
+
meanBurstPackets?: number;
|
|
9765
|
+
}
|
|
9766
|
+
|
|
9767
|
+
/**
|
|
9768
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
9769
|
+
* loss.
|
|
9770
|
+
*/
|
|
9771
|
+
export interface ToAgent {
|
|
9772
|
+
/**
|
|
9773
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
9774
|
+
*/
|
|
9775
|
+
packetLossPercent: number;
|
|
9776
|
+
|
|
9777
|
+
/**
|
|
9778
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
9779
|
+
*/
|
|
9780
|
+
meanBurstPackets?: number;
|
|
9781
|
+
}
|
|
9782
|
+
}
|
|
9783
|
+
}
|
|
9784
|
+
|
|
8435
9785
|
export interface HandoffPersona {
|
|
8436
9786
|
/**
|
|
8437
9787
|
* Unique identifier of the persona
|
|
@@ -8555,9 +9905,11 @@ export namespace CustomerFlowListResponse {
|
|
|
8555
9905
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8556
9906
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8557
9907
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8558
|
-
* OCCASIONAL
|
|
8559
|
-
*
|
|
8560
|
-
*
|
|
9908
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
9909
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
9910
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
9911
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
9912
|
+
* applies at any level.
|
|
8561
9913
|
*/
|
|
8562
9914
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8563
9915
|
|
|
@@ -8805,9 +10157,11 @@ export namespace CustomerFlowListResponse {
|
|
|
8805
10157
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
8806
10158
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
8807
10159
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
8808
|
-
* OCCASIONAL
|
|
8809
|
-
*
|
|
8810
|
-
*
|
|
10160
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
10161
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
10162
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
10163
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
10164
|
+
* applies at any level.
|
|
8811
10165
|
*/
|
|
8812
10166
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
8813
10167
|
|
|
@@ -9007,6 +10361,28 @@ export namespace CustomerFlowListResponse {
|
|
|
9007
10361
|
*/
|
|
9008
10362
|
description: string | null;
|
|
9009
10363
|
|
|
10364
|
+
/**
|
|
10365
|
+
* The industry the agent serves
|
|
10366
|
+
*/
|
|
10367
|
+
industry:
|
|
10368
|
+
| 'HEALTHCARE'
|
|
10369
|
+
| 'FINANCIAL_SERVICES'
|
|
10370
|
+
| 'INSURANCE'
|
|
10371
|
+
| 'DEBT_COLLECTION'
|
|
10372
|
+
| 'RETAIL'
|
|
10373
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
10374
|
+
| 'TELECOMMUNICATIONS'
|
|
10375
|
+
| 'TECHNOLOGY'
|
|
10376
|
+
| 'PUBLIC_SECTOR'
|
|
10377
|
+
| 'UTILITIES'
|
|
10378
|
+
| 'LOGISTICS'
|
|
10379
|
+
| 'AUTOMOTIVE'
|
|
10380
|
+
| 'HOME_SERVICES'
|
|
10381
|
+
| 'RESTAURANTS'
|
|
10382
|
+
| 'EDUCATION'
|
|
10383
|
+
| 'OTHER'
|
|
10384
|
+
| null;
|
|
10385
|
+
|
|
9010
10386
|
/**
|
|
9011
10387
|
* Name of the agent
|
|
9012
10388
|
*/
|
|
@@ -9115,6 +10491,22 @@ export namespace CustomerFlowListResponse {
|
|
|
9115
10491
|
*/
|
|
9116
10492
|
createdAt: string;
|
|
9117
10493
|
|
|
10494
|
+
/**
|
|
10495
|
+
* The per-direction loss of a CUSTOM line.
|
|
10496
|
+
*/
|
|
10497
|
+
lineCustom: Environment.LineCustom | null;
|
|
10498
|
+
|
|
10499
|
+
/**
|
|
10500
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
10501
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
10502
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
10503
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
10504
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
10505
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
10506
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
10507
|
+
*/
|
|
10508
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10509
|
+
|
|
9118
10510
|
name: string;
|
|
9119
10511
|
|
|
9120
10512
|
/**
|
|
@@ -9125,6 +10517,59 @@ export namespace CustomerFlowListResponse {
|
|
|
9125
10517
|
description?: string | null;
|
|
9126
10518
|
}
|
|
9127
10519
|
|
|
10520
|
+
export namespace Environment {
|
|
10521
|
+
/**
|
|
10522
|
+
* The per-direction loss of a CUSTOM line.
|
|
10523
|
+
*/
|
|
10524
|
+
export interface LineCustom {
|
|
10525
|
+
/**
|
|
10526
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10527
|
+
* loss.
|
|
10528
|
+
*/
|
|
10529
|
+
fromAgent?: LineCustom.FromAgent;
|
|
10530
|
+
|
|
10531
|
+
/**
|
|
10532
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10533
|
+
* loss.
|
|
10534
|
+
*/
|
|
10535
|
+
toAgent?: LineCustom.ToAgent;
|
|
10536
|
+
}
|
|
10537
|
+
|
|
10538
|
+
export namespace LineCustom {
|
|
10539
|
+
/**
|
|
10540
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10541
|
+
* loss.
|
|
10542
|
+
*/
|
|
10543
|
+
export interface FromAgent {
|
|
10544
|
+
/**
|
|
10545
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10546
|
+
*/
|
|
10547
|
+
packetLossPercent: number;
|
|
10548
|
+
|
|
10549
|
+
/**
|
|
10550
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10551
|
+
*/
|
|
10552
|
+
meanBurstPackets?: number;
|
|
10553
|
+
}
|
|
10554
|
+
|
|
10555
|
+
/**
|
|
10556
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10557
|
+
* loss.
|
|
10558
|
+
*/
|
|
10559
|
+
export interface ToAgent {
|
|
10560
|
+
/**
|
|
10561
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10562
|
+
*/
|
|
10563
|
+
packetLossPercent: number;
|
|
10564
|
+
|
|
10565
|
+
/**
|
|
10566
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10567
|
+
*/
|
|
10568
|
+
meanBurstPackets?: number;
|
|
10569
|
+
}
|
|
10570
|
+
}
|
|
10571
|
+
}
|
|
10572
|
+
|
|
9128
10573
|
/**
|
|
9129
10574
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
9130
10575
|
*/
|
|
@@ -9251,9 +10696,11 @@ export namespace CustomerFlowListResponse {
|
|
|
9251
10696
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9252
10697
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9253
10698
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9254
|
-
* OCCASIONAL
|
|
9255
|
-
*
|
|
9256
|
-
*
|
|
10699
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
10700
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
10701
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
10702
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
10703
|
+
* applies at any level.
|
|
9257
10704
|
*/
|
|
9258
10705
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9259
10706
|
|
|
@@ -9473,6 +10920,22 @@ export namespace CustomerFlowListResponse {
|
|
|
9473
10920
|
*/
|
|
9474
10921
|
createdAt: string;
|
|
9475
10922
|
|
|
10923
|
+
/**
|
|
10924
|
+
* The per-direction loss of a CUSTOM line.
|
|
10925
|
+
*/
|
|
10926
|
+
lineCustom: Environment.LineCustom | null;
|
|
10927
|
+
|
|
10928
|
+
/**
|
|
10929
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
10930
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
10931
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
10932
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
10933
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
10934
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
10935
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
10936
|
+
*/
|
|
10937
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
10938
|
+
|
|
9476
10939
|
name: string;
|
|
9477
10940
|
|
|
9478
10941
|
/**
|
|
@@ -9483,6 +10946,59 @@ export namespace CustomerFlowListResponse {
|
|
|
9483
10946
|
description?: string | null;
|
|
9484
10947
|
}
|
|
9485
10948
|
|
|
10949
|
+
export namespace Environment {
|
|
10950
|
+
/**
|
|
10951
|
+
* The per-direction loss of a CUSTOM line.
|
|
10952
|
+
*/
|
|
10953
|
+
export interface LineCustom {
|
|
10954
|
+
/**
|
|
10955
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10956
|
+
* loss.
|
|
10957
|
+
*/
|
|
10958
|
+
fromAgent?: LineCustom.FromAgent;
|
|
10959
|
+
|
|
10960
|
+
/**
|
|
10961
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10962
|
+
* loss.
|
|
10963
|
+
*/
|
|
10964
|
+
toAgent?: LineCustom.ToAgent;
|
|
10965
|
+
}
|
|
10966
|
+
|
|
10967
|
+
export namespace LineCustom {
|
|
10968
|
+
/**
|
|
10969
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
10970
|
+
* loss.
|
|
10971
|
+
*/
|
|
10972
|
+
export interface FromAgent {
|
|
10973
|
+
/**
|
|
10974
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10975
|
+
*/
|
|
10976
|
+
packetLossPercent: number;
|
|
10977
|
+
|
|
10978
|
+
/**
|
|
10979
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10980
|
+
*/
|
|
10981
|
+
meanBurstPackets?: number;
|
|
10982
|
+
}
|
|
10983
|
+
|
|
10984
|
+
/**
|
|
10985
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
10986
|
+
* loss.
|
|
10987
|
+
*/
|
|
10988
|
+
export interface ToAgent {
|
|
10989
|
+
/**
|
|
10990
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
10991
|
+
*/
|
|
10992
|
+
packetLossPercent: number;
|
|
10993
|
+
|
|
10994
|
+
/**
|
|
10995
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
10996
|
+
*/
|
|
10997
|
+
meanBurstPackets?: number;
|
|
10998
|
+
}
|
|
10999
|
+
}
|
|
11000
|
+
}
|
|
11001
|
+
|
|
9486
11002
|
/**
|
|
9487
11003
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
9488
11004
|
*/
|
|
@@ -9609,9 +11125,11 @@ export namespace CustomerFlowListResponse {
|
|
|
9609
11125
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
9610
11126
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
9611
11127
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
9612
|
-
* OCCASIONAL
|
|
9613
|
-
*
|
|
9614
|
-
*
|
|
11128
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11129
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11130
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11131
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11132
|
+
* applies at any level.
|
|
9615
11133
|
*/
|
|
9616
11134
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
9617
11135
|
|
|
@@ -9895,6 +11413,28 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
9895
11413
|
*/
|
|
9896
11414
|
description: string | null;
|
|
9897
11415
|
|
|
11416
|
+
/**
|
|
11417
|
+
* The industry the agent serves
|
|
11418
|
+
*/
|
|
11419
|
+
industry:
|
|
11420
|
+
| 'HEALTHCARE'
|
|
11421
|
+
| 'FINANCIAL_SERVICES'
|
|
11422
|
+
| 'INSURANCE'
|
|
11423
|
+
| 'DEBT_COLLECTION'
|
|
11424
|
+
| 'RETAIL'
|
|
11425
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
11426
|
+
| 'TELECOMMUNICATIONS'
|
|
11427
|
+
| 'TECHNOLOGY'
|
|
11428
|
+
| 'PUBLIC_SECTOR'
|
|
11429
|
+
| 'UTILITIES'
|
|
11430
|
+
| 'LOGISTICS'
|
|
11431
|
+
| 'AUTOMOTIVE'
|
|
11432
|
+
| 'HOME_SERVICES'
|
|
11433
|
+
| 'RESTAURANTS'
|
|
11434
|
+
| 'EDUCATION'
|
|
11435
|
+
| 'OTHER'
|
|
11436
|
+
| null;
|
|
11437
|
+
|
|
9898
11438
|
/**
|
|
9899
11439
|
* Name of the agent
|
|
9900
11440
|
*/
|
|
@@ -10010,6 +11550,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10010
11550
|
*/
|
|
10011
11551
|
createdAt: string;
|
|
10012
11552
|
|
|
11553
|
+
/**
|
|
11554
|
+
* The per-direction loss of a CUSTOM line.
|
|
11555
|
+
*/
|
|
11556
|
+
lineCustom: Environment.LineCustom | null;
|
|
11557
|
+
|
|
11558
|
+
/**
|
|
11559
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
11560
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
11561
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
11562
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
11563
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
11564
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
11565
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
11566
|
+
*/
|
|
11567
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
11568
|
+
|
|
10013
11569
|
name: string;
|
|
10014
11570
|
|
|
10015
11571
|
/**
|
|
@@ -10020,6 +11576,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10020
11576
|
description?: string | null;
|
|
10021
11577
|
}
|
|
10022
11578
|
|
|
11579
|
+
export namespace Environment {
|
|
11580
|
+
/**
|
|
11581
|
+
* The per-direction loss of a CUSTOM line.
|
|
11582
|
+
*/
|
|
11583
|
+
export interface LineCustom {
|
|
11584
|
+
/**
|
|
11585
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11586
|
+
* loss.
|
|
11587
|
+
*/
|
|
11588
|
+
fromAgent?: LineCustom.FromAgent;
|
|
11589
|
+
|
|
11590
|
+
/**
|
|
11591
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11592
|
+
* loss.
|
|
11593
|
+
*/
|
|
11594
|
+
toAgent?: LineCustom.ToAgent;
|
|
11595
|
+
}
|
|
11596
|
+
|
|
11597
|
+
export namespace LineCustom {
|
|
11598
|
+
/**
|
|
11599
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
11600
|
+
* loss.
|
|
11601
|
+
*/
|
|
11602
|
+
export interface FromAgent {
|
|
11603
|
+
/**
|
|
11604
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11605
|
+
*/
|
|
11606
|
+
packetLossPercent: number;
|
|
11607
|
+
|
|
11608
|
+
/**
|
|
11609
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11610
|
+
*/
|
|
11611
|
+
meanBurstPackets?: number;
|
|
11612
|
+
}
|
|
11613
|
+
|
|
11614
|
+
/**
|
|
11615
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
11616
|
+
* loss.
|
|
11617
|
+
*/
|
|
11618
|
+
export interface ToAgent {
|
|
11619
|
+
/**
|
|
11620
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
11621
|
+
*/
|
|
11622
|
+
packetLossPercent: number;
|
|
11623
|
+
|
|
11624
|
+
/**
|
|
11625
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
11626
|
+
*/
|
|
11627
|
+
meanBurstPackets?: number;
|
|
11628
|
+
}
|
|
11629
|
+
}
|
|
11630
|
+
}
|
|
11631
|
+
|
|
10023
11632
|
/**
|
|
10024
11633
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
10025
11634
|
*/
|
|
@@ -10146,9 +11755,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10146
11755
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10147
11756
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10148
11757
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10149
|
-
* OCCASIONAL
|
|
10150
|
-
*
|
|
10151
|
-
*
|
|
11758
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
11759
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
11760
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
11761
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
11762
|
+
* applies at any level.
|
|
10152
11763
|
*/
|
|
10153
11764
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10154
11765
|
|
|
@@ -10375,6 +11986,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10375
11986
|
*/
|
|
10376
11987
|
createdAt: string;
|
|
10377
11988
|
|
|
11989
|
+
/**
|
|
11990
|
+
* The per-direction loss of a CUSTOM line.
|
|
11991
|
+
*/
|
|
11992
|
+
lineCustom: Environment.LineCustom | null;
|
|
11993
|
+
|
|
11994
|
+
/**
|
|
11995
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
11996
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
11997
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
11998
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
11999
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
12000
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
12001
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
12002
|
+
*/
|
|
12003
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
12004
|
+
|
|
10378
12005
|
name: string;
|
|
10379
12006
|
|
|
10380
12007
|
/**
|
|
@@ -10385,6 +12012,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10385
12012
|
description?: string | null;
|
|
10386
12013
|
}
|
|
10387
12014
|
|
|
12015
|
+
export namespace Environment {
|
|
12016
|
+
/**
|
|
12017
|
+
* The per-direction loss of a CUSTOM line.
|
|
12018
|
+
*/
|
|
12019
|
+
export interface LineCustom {
|
|
12020
|
+
/**
|
|
12021
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12022
|
+
* loss.
|
|
12023
|
+
*/
|
|
12024
|
+
fromAgent?: LineCustom.FromAgent;
|
|
12025
|
+
|
|
12026
|
+
/**
|
|
12027
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12028
|
+
* loss.
|
|
12029
|
+
*/
|
|
12030
|
+
toAgent?: LineCustom.ToAgent;
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
export namespace LineCustom {
|
|
12034
|
+
/**
|
|
12035
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12036
|
+
* loss.
|
|
12037
|
+
*/
|
|
12038
|
+
export interface FromAgent {
|
|
12039
|
+
/**
|
|
12040
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12041
|
+
*/
|
|
12042
|
+
packetLossPercent: number;
|
|
12043
|
+
|
|
12044
|
+
/**
|
|
12045
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12046
|
+
*/
|
|
12047
|
+
meanBurstPackets?: number;
|
|
12048
|
+
}
|
|
12049
|
+
|
|
12050
|
+
/**
|
|
12051
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12052
|
+
* loss.
|
|
12053
|
+
*/
|
|
12054
|
+
export interface ToAgent {
|
|
12055
|
+
/**
|
|
12056
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12057
|
+
*/
|
|
12058
|
+
packetLossPercent: number;
|
|
12059
|
+
|
|
12060
|
+
/**
|
|
12061
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12062
|
+
*/
|
|
12063
|
+
meanBurstPackets?: number;
|
|
12064
|
+
}
|
|
12065
|
+
}
|
|
12066
|
+
}
|
|
12067
|
+
|
|
10388
12068
|
/**
|
|
10389
12069
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
10390
12070
|
*/
|
|
@@ -10511,9 +12191,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10511
12191
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10512
12192
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
10513
12193
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
10514
|
-
* OCCASIONAL
|
|
10515
|
-
*
|
|
10516
|
-
*
|
|
12194
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12195
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12196
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12197
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12198
|
+
* applies at any level.
|
|
10517
12199
|
*/
|
|
10518
12200
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
10519
12201
|
|
|
@@ -10738,6 +12420,28 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10738
12420
|
*/
|
|
10739
12421
|
description: string | null;
|
|
10740
12422
|
|
|
12423
|
+
/**
|
|
12424
|
+
* The industry the agent serves
|
|
12425
|
+
*/
|
|
12426
|
+
industry:
|
|
12427
|
+
| 'HEALTHCARE'
|
|
12428
|
+
| 'FINANCIAL_SERVICES'
|
|
12429
|
+
| 'INSURANCE'
|
|
12430
|
+
| 'DEBT_COLLECTION'
|
|
12431
|
+
| 'RETAIL'
|
|
12432
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
12433
|
+
| 'TELECOMMUNICATIONS'
|
|
12434
|
+
| 'TECHNOLOGY'
|
|
12435
|
+
| 'PUBLIC_SECTOR'
|
|
12436
|
+
| 'UTILITIES'
|
|
12437
|
+
| 'LOGISTICS'
|
|
12438
|
+
| 'AUTOMOTIVE'
|
|
12439
|
+
| 'HOME_SERVICES'
|
|
12440
|
+
| 'RESTAURANTS'
|
|
12441
|
+
| 'EDUCATION'
|
|
12442
|
+
| 'OTHER'
|
|
12443
|
+
| null;
|
|
12444
|
+
|
|
10741
12445
|
/**
|
|
10742
12446
|
* Name of the agent
|
|
10743
12447
|
*/
|
|
@@ -10816,7 +12520,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10816
12520
|
/**
|
|
10817
12521
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
10818
12522
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
10819
|
-
* when.
|
|
12523
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
12524
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
12525
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
12526
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
12527
|
+
* concept.
|
|
10820
12528
|
*/
|
|
10821
12529
|
prompt?: string | null;
|
|
10822
12530
|
|
|
@@ -10865,6 +12573,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10865
12573
|
*/
|
|
10866
12574
|
createdAt: string;
|
|
10867
12575
|
|
|
12576
|
+
/**
|
|
12577
|
+
* The per-direction loss of a CUSTOM line.
|
|
12578
|
+
*/
|
|
12579
|
+
lineCustom: Environment.LineCustom | null;
|
|
12580
|
+
|
|
12581
|
+
/**
|
|
12582
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
12583
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
12584
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
12585
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
12586
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
12587
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
12588
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
12589
|
+
*/
|
|
12590
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
12591
|
+
|
|
10868
12592
|
name: string;
|
|
10869
12593
|
|
|
10870
12594
|
/**
|
|
@@ -10875,6 +12599,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10875
12599
|
description?: string | null;
|
|
10876
12600
|
}
|
|
10877
12601
|
|
|
12602
|
+
export namespace Environment {
|
|
12603
|
+
/**
|
|
12604
|
+
* The per-direction loss of a CUSTOM line.
|
|
12605
|
+
*/
|
|
12606
|
+
export interface LineCustom {
|
|
12607
|
+
/**
|
|
12608
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12609
|
+
* loss.
|
|
12610
|
+
*/
|
|
12611
|
+
fromAgent?: LineCustom.FromAgent;
|
|
12612
|
+
|
|
12613
|
+
/**
|
|
12614
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12615
|
+
* loss.
|
|
12616
|
+
*/
|
|
12617
|
+
toAgent?: LineCustom.ToAgent;
|
|
12618
|
+
}
|
|
12619
|
+
|
|
12620
|
+
export namespace LineCustom {
|
|
12621
|
+
/**
|
|
12622
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
12623
|
+
* loss.
|
|
12624
|
+
*/
|
|
12625
|
+
export interface FromAgent {
|
|
12626
|
+
/**
|
|
12627
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12628
|
+
*/
|
|
12629
|
+
packetLossPercent: number;
|
|
12630
|
+
|
|
12631
|
+
/**
|
|
12632
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12633
|
+
*/
|
|
12634
|
+
meanBurstPackets?: number;
|
|
12635
|
+
}
|
|
12636
|
+
|
|
12637
|
+
/**
|
|
12638
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
12639
|
+
* loss.
|
|
12640
|
+
*/
|
|
12641
|
+
export interface ToAgent {
|
|
12642
|
+
/**
|
|
12643
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
12644
|
+
*/
|
|
12645
|
+
packetLossPercent: number;
|
|
12646
|
+
|
|
12647
|
+
/**
|
|
12648
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
12649
|
+
*/
|
|
12650
|
+
meanBurstPackets?: number;
|
|
12651
|
+
}
|
|
12652
|
+
}
|
|
12653
|
+
}
|
|
12654
|
+
|
|
10878
12655
|
export interface HandoffPersona {
|
|
10879
12656
|
/**
|
|
10880
12657
|
* Unique identifier of the persona
|
|
@@ -10998,9 +12775,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
10998
12775
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
10999
12776
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11000
12777
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11001
|
-
* OCCASIONAL
|
|
11002
|
-
*
|
|
11003
|
-
*
|
|
12778
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
12779
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
12780
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
12781
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
12782
|
+
* applies at any level.
|
|
11004
12783
|
*/
|
|
11005
12784
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11006
12785
|
|
|
@@ -11248,9 +13027,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11248
13027
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11249
13028
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11250
13029
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11251
|
-
* OCCASIONAL
|
|
11252
|
-
*
|
|
11253
|
-
*
|
|
13030
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13031
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13032
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13033
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13034
|
+
* applies at any level.
|
|
11254
13035
|
*/
|
|
11255
13036
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11256
13037
|
|
|
@@ -11440,7 +13221,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11440
13221
|
/**
|
|
11441
13222
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
11442
13223
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
11443
|
-
* when.
|
|
13224
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
13225
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
13226
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
13227
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
13228
|
+
* concept.
|
|
11444
13229
|
*/
|
|
11445
13230
|
prompt?: string | null;
|
|
11446
13231
|
|
|
@@ -11489,6 +13274,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11489
13274
|
*/
|
|
11490
13275
|
createdAt: string;
|
|
11491
13276
|
|
|
13277
|
+
/**
|
|
13278
|
+
* The per-direction loss of a CUSTOM line.
|
|
13279
|
+
*/
|
|
13280
|
+
lineCustom: Environment.LineCustom | null;
|
|
13281
|
+
|
|
13282
|
+
/**
|
|
13283
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
13284
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
13285
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
13286
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
13287
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
13288
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
13289
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
13290
|
+
*/
|
|
13291
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
13292
|
+
|
|
11492
13293
|
name: string;
|
|
11493
13294
|
|
|
11494
13295
|
/**
|
|
@@ -11499,6 +13300,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11499
13300
|
description?: string | null;
|
|
11500
13301
|
}
|
|
11501
13302
|
|
|
13303
|
+
export namespace Environment {
|
|
13304
|
+
/**
|
|
13305
|
+
* The per-direction loss of a CUSTOM line.
|
|
13306
|
+
*/
|
|
13307
|
+
export interface LineCustom {
|
|
13308
|
+
/**
|
|
13309
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13310
|
+
* loss.
|
|
13311
|
+
*/
|
|
13312
|
+
fromAgent?: LineCustom.FromAgent;
|
|
13313
|
+
|
|
13314
|
+
/**
|
|
13315
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13316
|
+
* loss.
|
|
13317
|
+
*/
|
|
13318
|
+
toAgent?: LineCustom.ToAgent;
|
|
13319
|
+
}
|
|
13320
|
+
|
|
13321
|
+
export namespace LineCustom {
|
|
13322
|
+
/**
|
|
13323
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
13324
|
+
* loss.
|
|
13325
|
+
*/
|
|
13326
|
+
export interface FromAgent {
|
|
13327
|
+
/**
|
|
13328
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13329
|
+
*/
|
|
13330
|
+
packetLossPercent: number;
|
|
13331
|
+
|
|
13332
|
+
/**
|
|
13333
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13334
|
+
*/
|
|
13335
|
+
meanBurstPackets?: number;
|
|
13336
|
+
}
|
|
13337
|
+
|
|
13338
|
+
/**
|
|
13339
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
13340
|
+
* loss.
|
|
13341
|
+
*/
|
|
13342
|
+
export interface ToAgent {
|
|
13343
|
+
/**
|
|
13344
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
13345
|
+
*/
|
|
13346
|
+
packetLossPercent: number;
|
|
13347
|
+
|
|
13348
|
+
/**
|
|
13349
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
13350
|
+
*/
|
|
13351
|
+
meanBurstPackets?: number;
|
|
13352
|
+
}
|
|
13353
|
+
}
|
|
13354
|
+
}
|
|
13355
|
+
|
|
11502
13356
|
export interface HandoffPersona {
|
|
11503
13357
|
/**
|
|
11504
13358
|
* Unique identifier of the persona
|
|
@@ -11622,9 +13476,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11622
13476
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11623
13477
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11624
13478
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11625
|
-
* OCCASIONAL
|
|
11626
|
-
*
|
|
11627
|
-
*
|
|
13479
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13480
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13481
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13482
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13483
|
+
* applies at any level.
|
|
11628
13484
|
*/
|
|
11629
13485
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11630
13486
|
|
|
@@ -11872,9 +13728,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
11872
13728
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
11873
13729
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
11874
13730
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
11875
|
-
* OCCASIONAL
|
|
11876
|
-
*
|
|
11877
|
-
*
|
|
13731
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
13732
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
13733
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
13734
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
13735
|
+
* applies at any level.
|
|
11878
13736
|
*/
|
|
11879
13737
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
11880
13738
|
|
|
@@ -12074,6 +13932,28 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12074
13932
|
*/
|
|
12075
13933
|
description: string | null;
|
|
12076
13934
|
|
|
13935
|
+
/**
|
|
13936
|
+
* The industry the agent serves
|
|
13937
|
+
*/
|
|
13938
|
+
industry:
|
|
13939
|
+
| 'HEALTHCARE'
|
|
13940
|
+
| 'FINANCIAL_SERVICES'
|
|
13941
|
+
| 'INSURANCE'
|
|
13942
|
+
| 'DEBT_COLLECTION'
|
|
13943
|
+
| 'RETAIL'
|
|
13944
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
13945
|
+
| 'TELECOMMUNICATIONS'
|
|
13946
|
+
| 'TECHNOLOGY'
|
|
13947
|
+
| 'PUBLIC_SECTOR'
|
|
13948
|
+
| 'UTILITIES'
|
|
13949
|
+
| 'LOGISTICS'
|
|
13950
|
+
| 'AUTOMOTIVE'
|
|
13951
|
+
| 'HOME_SERVICES'
|
|
13952
|
+
| 'RESTAURANTS'
|
|
13953
|
+
| 'EDUCATION'
|
|
13954
|
+
| 'OTHER'
|
|
13955
|
+
| null;
|
|
13956
|
+
|
|
12077
13957
|
/**
|
|
12078
13958
|
* Name of the agent
|
|
12079
13959
|
*/
|
|
@@ -12182,6 +14062,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12182
14062
|
*/
|
|
12183
14063
|
createdAt: string;
|
|
12184
14064
|
|
|
14065
|
+
/**
|
|
14066
|
+
* The per-direction loss of a CUSTOM line.
|
|
14067
|
+
*/
|
|
14068
|
+
lineCustom: Environment.LineCustom | null;
|
|
14069
|
+
|
|
14070
|
+
/**
|
|
14071
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
14072
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
14073
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
14074
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
14075
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
14076
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
14077
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
14078
|
+
*/
|
|
14079
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
14080
|
+
|
|
12185
14081
|
name: string;
|
|
12186
14082
|
|
|
12187
14083
|
/**
|
|
@@ -12192,6 +14088,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12192
14088
|
description?: string | null;
|
|
12193
14089
|
}
|
|
12194
14090
|
|
|
14091
|
+
export namespace Environment {
|
|
14092
|
+
/**
|
|
14093
|
+
* The per-direction loss of a CUSTOM line.
|
|
14094
|
+
*/
|
|
14095
|
+
export interface LineCustom {
|
|
14096
|
+
/**
|
|
14097
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
14098
|
+
* loss.
|
|
14099
|
+
*/
|
|
14100
|
+
fromAgent?: LineCustom.FromAgent;
|
|
14101
|
+
|
|
14102
|
+
/**
|
|
14103
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
14104
|
+
* loss.
|
|
14105
|
+
*/
|
|
14106
|
+
toAgent?: LineCustom.ToAgent;
|
|
14107
|
+
}
|
|
14108
|
+
|
|
14109
|
+
export namespace LineCustom {
|
|
14110
|
+
/**
|
|
14111
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
14112
|
+
* loss.
|
|
14113
|
+
*/
|
|
14114
|
+
export interface FromAgent {
|
|
14115
|
+
/**
|
|
14116
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
14117
|
+
*/
|
|
14118
|
+
packetLossPercent: number;
|
|
14119
|
+
|
|
14120
|
+
/**
|
|
14121
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
14122
|
+
*/
|
|
14123
|
+
meanBurstPackets?: number;
|
|
14124
|
+
}
|
|
14125
|
+
|
|
14126
|
+
/**
|
|
14127
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
14128
|
+
* loss.
|
|
14129
|
+
*/
|
|
14130
|
+
export interface ToAgent {
|
|
14131
|
+
/**
|
|
14132
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
14133
|
+
*/
|
|
14134
|
+
packetLossPercent: number;
|
|
14135
|
+
|
|
14136
|
+
/**
|
|
14137
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
14138
|
+
*/
|
|
14139
|
+
meanBurstPackets?: number;
|
|
14140
|
+
}
|
|
14141
|
+
}
|
|
14142
|
+
}
|
|
14143
|
+
|
|
12195
14144
|
/**
|
|
12196
14145
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
12197
14146
|
*/
|
|
@@ -12318,9 +14267,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12318
14267
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
12319
14268
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
12320
14269
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
12321
|
-
* OCCASIONAL
|
|
12322
|
-
*
|
|
12323
|
-
*
|
|
14270
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
14271
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
14272
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
14273
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
14274
|
+
* applies at any level.
|
|
12324
14275
|
*/
|
|
12325
14276
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
12326
14277
|
|
|
@@ -12540,6 +14491,22 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12540
14491
|
*/
|
|
12541
14492
|
createdAt: string;
|
|
12542
14493
|
|
|
14494
|
+
/**
|
|
14495
|
+
* The per-direction loss of a CUSTOM line.
|
|
14496
|
+
*/
|
|
14497
|
+
lineCustom: Environment.LineCustom | null;
|
|
14498
|
+
|
|
14499
|
+
/**
|
|
14500
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
14501
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
14502
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
14503
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
14504
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
14505
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
14506
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
14507
|
+
*/
|
|
14508
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
14509
|
+
|
|
12543
14510
|
name: string;
|
|
12544
14511
|
|
|
12545
14512
|
/**
|
|
@@ -12550,6 +14517,59 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12550
14517
|
description?: string | null;
|
|
12551
14518
|
}
|
|
12552
14519
|
|
|
14520
|
+
export namespace Environment {
|
|
14521
|
+
/**
|
|
14522
|
+
* The per-direction loss of a CUSTOM line.
|
|
14523
|
+
*/
|
|
14524
|
+
export interface LineCustom {
|
|
14525
|
+
/**
|
|
14526
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
14527
|
+
* loss.
|
|
14528
|
+
*/
|
|
14529
|
+
fromAgent?: LineCustom.FromAgent;
|
|
14530
|
+
|
|
14531
|
+
/**
|
|
14532
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
14533
|
+
* loss.
|
|
14534
|
+
*/
|
|
14535
|
+
toAgent?: LineCustom.ToAgent;
|
|
14536
|
+
}
|
|
14537
|
+
|
|
14538
|
+
export namespace LineCustom {
|
|
14539
|
+
/**
|
|
14540
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
14541
|
+
* loss.
|
|
14542
|
+
*/
|
|
14543
|
+
export interface FromAgent {
|
|
14544
|
+
/**
|
|
14545
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
14546
|
+
*/
|
|
14547
|
+
packetLossPercent: number;
|
|
14548
|
+
|
|
14549
|
+
/**
|
|
14550
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
14551
|
+
*/
|
|
14552
|
+
meanBurstPackets?: number;
|
|
14553
|
+
}
|
|
14554
|
+
|
|
14555
|
+
/**
|
|
14556
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
14557
|
+
* loss.
|
|
14558
|
+
*/
|
|
14559
|
+
export interface ToAgent {
|
|
14560
|
+
/**
|
|
14561
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
14562
|
+
*/
|
|
14563
|
+
packetLossPercent: number;
|
|
14564
|
+
|
|
14565
|
+
/**
|
|
14566
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
14567
|
+
*/
|
|
14568
|
+
meanBurstPackets?: number;
|
|
14569
|
+
}
|
|
14570
|
+
}
|
|
14571
|
+
}
|
|
14572
|
+
|
|
12553
14573
|
/**
|
|
12554
14574
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
12555
14575
|
*/
|
|
@@ -12676,9 +14696,11 @@ export namespace CustomerFlowDuplicateResponse {
|
|
|
12676
14696
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
12677
14697
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
12678
14698
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
12679
|
-
* OCCASIONAL
|
|
12680
|
-
*
|
|
12681
|
-
*
|
|
14699
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
14700
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
14701
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
14702
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
14703
|
+
* applies at any level.
|
|
12682
14704
|
*/
|
|
12683
14705
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
12684
14706
|
|
|
@@ -12932,6 +14954,28 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
12932
14954
|
*/
|
|
12933
14955
|
description: string | null;
|
|
12934
14956
|
|
|
14957
|
+
/**
|
|
14958
|
+
* The industry the agent serves
|
|
14959
|
+
*/
|
|
14960
|
+
industry:
|
|
14961
|
+
| 'HEALTHCARE'
|
|
14962
|
+
| 'FINANCIAL_SERVICES'
|
|
14963
|
+
| 'INSURANCE'
|
|
14964
|
+
| 'DEBT_COLLECTION'
|
|
14965
|
+
| 'RETAIL'
|
|
14966
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
14967
|
+
| 'TELECOMMUNICATIONS'
|
|
14968
|
+
| 'TECHNOLOGY'
|
|
14969
|
+
| 'PUBLIC_SECTOR'
|
|
14970
|
+
| 'UTILITIES'
|
|
14971
|
+
| 'LOGISTICS'
|
|
14972
|
+
| 'AUTOMOTIVE'
|
|
14973
|
+
| 'HOME_SERVICES'
|
|
14974
|
+
| 'RESTAURANTS'
|
|
14975
|
+
| 'EDUCATION'
|
|
14976
|
+
| 'OTHER'
|
|
14977
|
+
| null;
|
|
14978
|
+
|
|
12935
14979
|
/**
|
|
12936
14980
|
* Name of the agent
|
|
12937
14981
|
*/
|
|
@@ -13047,6 +15091,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13047
15091
|
*/
|
|
13048
15092
|
createdAt: string;
|
|
13049
15093
|
|
|
15094
|
+
/**
|
|
15095
|
+
* The per-direction loss of a CUSTOM line.
|
|
15096
|
+
*/
|
|
15097
|
+
lineCustom: Environment.LineCustom | null;
|
|
15098
|
+
|
|
15099
|
+
/**
|
|
15100
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
15101
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
15102
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
15103
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
15104
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
15105
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
15106
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
15107
|
+
*/
|
|
15108
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
15109
|
+
|
|
13050
15110
|
name: string;
|
|
13051
15111
|
|
|
13052
15112
|
/**
|
|
@@ -13057,6 +15117,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13057
15117
|
description?: string | null;
|
|
13058
15118
|
}
|
|
13059
15119
|
|
|
15120
|
+
export namespace Environment {
|
|
15121
|
+
/**
|
|
15122
|
+
* The per-direction loss of a CUSTOM line.
|
|
15123
|
+
*/
|
|
15124
|
+
export interface LineCustom {
|
|
15125
|
+
/**
|
|
15126
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
15127
|
+
* loss.
|
|
15128
|
+
*/
|
|
15129
|
+
fromAgent?: LineCustom.FromAgent;
|
|
15130
|
+
|
|
15131
|
+
/**
|
|
15132
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
15133
|
+
* loss.
|
|
15134
|
+
*/
|
|
15135
|
+
toAgent?: LineCustom.ToAgent;
|
|
15136
|
+
}
|
|
15137
|
+
|
|
15138
|
+
export namespace LineCustom {
|
|
15139
|
+
/**
|
|
15140
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
15141
|
+
* loss.
|
|
15142
|
+
*/
|
|
15143
|
+
export interface FromAgent {
|
|
15144
|
+
/**
|
|
15145
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
15146
|
+
*/
|
|
15147
|
+
packetLossPercent: number;
|
|
15148
|
+
|
|
15149
|
+
/**
|
|
15150
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
15151
|
+
*/
|
|
15152
|
+
meanBurstPackets?: number;
|
|
15153
|
+
}
|
|
15154
|
+
|
|
15155
|
+
/**
|
|
15156
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
15157
|
+
* loss.
|
|
15158
|
+
*/
|
|
15159
|
+
export interface ToAgent {
|
|
15160
|
+
/**
|
|
15161
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
15162
|
+
*/
|
|
15163
|
+
packetLossPercent: number;
|
|
15164
|
+
|
|
15165
|
+
/**
|
|
15166
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
15167
|
+
*/
|
|
15168
|
+
meanBurstPackets?: number;
|
|
15169
|
+
}
|
|
15170
|
+
}
|
|
15171
|
+
}
|
|
15172
|
+
|
|
13060
15173
|
/**
|
|
13061
15174
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
13062
15175
|
*/
|
|
@@ -13183,9 +15296,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13183
15296
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
13184
15297
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
13185
15298
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
13186
|
-
* OCCASIONAL
|
|
13187
|
-
*
|
|
13188
|
-
*
|
|
15299
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
15300
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
15301
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
15302
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
15303
|
+
* applies at any level.
|
|
13189
15304
|
*/
|
|
13190
15305
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
13191
15306
|
|
|
@@ -13412,6 +15527,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13412
15527
|
*/
|
|
13413
15528
|
createdAt: string;
|
|
13414
15529
|
|
|
15530
|
+
/**
|
|
15531
|
+
* The per-direction loss of a CUSTOM line.
|
|
15532
|
+
*/
|
|
15533
|
+
lineCustom: Environment.LineCustom | null;
|
|
15534
|
+
|
|
15535
|
+
/**
|
|
15536
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
15537
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
15538
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
15539
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
15540
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
15541
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
15542
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
15543
|
+
*/
|
|
15544
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
15545
|
+
|
|
13415
15546
|
name: string;
|
|
13416
15547
|
|
|
13417
15548
|
/**
|
|
@@ -13422,6 +15553,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13422
15553
|
description?: string | null;
|
|
13423
15554
|
}
|
|
13424
15555
|
|
|
15556
|
+
export namespace Environment {
|
|
15557
|
+
/**
|
|
15558
|
+
* The per-direction loss of a CUSTOM line.
|
|
15559
|
+
*/
|
|
15560
|
+
export interface LineCustom {
|
|
15561
|
+
/**
|
|
15562
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
15563
|
+
* loss.
|
|
15564
|
+
*/
|
|
15565
|
+
fromAgent?: LineCustom.FromAgent;
|
|
15566
|
+
|
|
15567
|
+
/**
|
|
15568
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
15569
|
+
* loss.
|
|
15570
|
+
*/
|
|
15571
|
+
toAgent?: LineCustom.ToAgent;
|
|
15572
|
+
}
|
|
15573
|
+
|
|
15574
|
+
export namespace LineCustom {
|
|
15575
|
+
/**
|
|
15576
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
15577
|
+
* loss.
|
|
15578
|
+
*/
|
|
15579
|
+
export interface FromAgent {
|
|
15580
|
+
/**
|
|
15581
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
15582
|
+
*/
|
|
15583
|
+
packetLossPercent: number;
|
|
15584
|
+
|
|
15585
|
+
/**
|
|
15586
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
15587
|
+
*/
|
|
15588
|
+
meanBurstPackets?: number;
|
|
15589
|
+
}
|
|
15590
|
+
|
|
15591
|
+
/**
|
|
15592
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
15593
|
+
* loss.
|
|
15594
|
+
*/
|
|
15595
|
+
export interface ToAgent {
|
|
15596
|
+
/**
|
|
15597
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
15598
|
+
*/
|
|
15599
|
+
packetLossPercent: number;
|
|
15600
|
+
|
|
15601
|
+
/**
|
|
15602
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
15603
|
+
*/
|
|
15604
|
+
meanBurstPackets?: number;
|
|
15605
|
+
}
|
|
15606
|
+
}
|
|
15607
|
+
}
|
|
15608
|
+
|
|
13425
15609
|
/**
|
|
13426
15610
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
13427
15611
|
*/
|
|
@@ -13548,9 +15732,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13548
15732
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
13549
15733
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
13550
15734
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
13551
|
-
* OCCASIONAL
|
|
13552
|
-
*
|
|
13553
|
-
*
|
|
15735
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
15736
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
15737
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
15738
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
15739
|
+
* applies at any level.
|
|
13554
15740
|
*/
|
|
13555
15741
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
13556
15742
|
|
|
@@ -13775,6 +15961,28 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13775
15961
|
*/
|
|
13776
15962
|
description: string | null;
|
|
13777
15963
|
|
|
15964
|
+
/**
|
|
15965
|
+
* The industry the agent serves
|
|
15966
|
+
*/
|
|
15967
|
+
industry:
|
|
15968
|
+
| 'HEALTHCARE'
|
|
15969
|
+
| 'FINANCIAL_SERVICES'
|
|
15970
|
+
| 'INSURANCE'
|
|
15971
|
+
| 'DEBT_COLLECTION'
|
|
15972
|
+
| 'RETAIL'
|
|
15973
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
15974
|
+
| 'TELECOMMUNICATIONS'
|
|
15975
|
+
| 'TECHNOLOGY'
|
|
15976
|
+
| 'PUBLIC_SECTOR'
|
|
15977
|
+
| 'UTILITIES'
|
|
15978
|
+
| 'LOGISTICS'
|
|
15979
|
+
| 'AUTOMOTIVE'
|
|
15980
|
+
| 'HOME_SERVICES'
|
|
15981
|
+
| 'RESTAURANTS'
|
|
15982
|
+
| 'EDUCATION'
|
|
15983
|
+
| 'OTHER'
|
|
15984
|
+
| null;
|
|
15985
|
+
|
|
13778
15986
|
/**
|
|
13779
15987
|
* Name of the agent
|
|
13780
15988
|
*/
|
|
@@ -13853,7 +16061,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13853
16061
|
/**
|
|
13854
16062
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
13855
16063
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
13856
|
-
* when.
|
|
16064
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
16065
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
16066
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
16067
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
16068
|
+
* concept.
|
|
13857
16069
|
*/
|
|
13858
16070
|
prompt?: string | null;
|
|
13859
16071
|
|
|
@@ -13902,6 +16114,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13902
16114
|
*/
|
|
13903
16115
|
createdAt: string;
|
|
13904
16116
|
|
|
16117
|
+
/**
|
|
16118
|
+
* The per-direction loss of a CUSTOM line.
|
|
16119
|
+
*/
|
|
16120
|
+
lineCustom: Environment.LineCustom | null;
|
|
16121
|
+
|
|
16122
|
+
/**
|
|
16123
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
16124
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
16125
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
16126
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
16127
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
16128
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
16129
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
16130
|
+
*/
|
|
16131
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
16132
|
+
|
|
13905
16133
|
name: string;
|
|
13906
16134
|
|
|
13907
16135
|
/**
|
|
@@ -13912,6 +16140,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
13912
16140
|
description?: string | null;
|
|
13913
16141
|
}
|
|
13914
16142
|
|
|
16143
|
+
export namespace Environment {
|
|
16144
|
+
/**
|
|
16145
|
+
* The per-direction loss of a CUSTOM line.
|
|
16146
|
+
*/
|
|
16147
|
+
export interface LineCustom {
|
|
16148
|
+
/**
|
|
16149
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
16150
|
+
* loss.
|
|
16151
|
+
*/
|
|
16152
|
+
fromAgent?: LineCustom.FromAgent;
|
|
16153
|
+
|
|
16154
|
+
/**
|
|
16155
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
16156
|
+
* loss.
|
|
16157
|
+
*/
|
|
16158
|
+
toAgent?: LineCustom.ToAgent;
|
|
16159
|
+
}
|
|
16160
|
+
|
|
16161
|
+
export namespace LineCustom {
|
|
16162
|
+
/**
|
|
16163
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
16164
|
+
* loss.
|
|
16165
|
+
*/
|
|
16166
|
+
export interface FromAgent {
|
|
16167
|
+
/**
|
|
16168
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
16169
|
+
*/
|
|
16170
|
+
packetLossPercent: number;
|
|
16171
|
+
|
|
16172
|
+
/**
|
|
16173
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
16174
|
+
*/
|
|
16175
|
+
meanBurstPackets?: number;
|
|
16176
|
+
}
|
|
16177
|
+
|
|
16178
|
+
/**
|
|
16179
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
16180
|
+
* loss.
|
|
16181
|
+
*/
|
|
16182
|
+
export interface ToAgent {
|
|
16183
|
+
/**
|
|
16184
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
16185
|
+
*/
|
|
16186
|
+
packetLossPercent: number;
|
|
16187
|
+
|
|
16188
|
+
/**
|
|
16189
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
16190
|
+
*/
|
|
16191
|
+
meanBurstPackets?: number;
|
|
16192
|
+
}
|
|
16193
|
+
}
|
|
16194
|
+
}
|
|
16195
|
+
|
|
13915
16196
|
export interface HandoffPersona {
|
|
13916
16197
|
/**
|
|
13917
16198
|
* Unique identifier of the persona
|
|
@@ -14035,9 +16316,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14035
16316
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
14036
16317
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
14037
16318
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
14038
|
-
* OCCASIONAL
|
|
14039
|
-
*
|
|
14040
|
-
*
|
|
16319
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
16320
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
16321
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
16322
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
16323
|
+
* applies at any level.
|
|
14041
16324
|
*/
|
|
14042
16325
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
14043
16326
|
|
|
@@ -14285,9 +16568,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14285
16568
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
14286
16569
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
14287
16570
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
14288
|
-
* OCCASIONAL
|
|
14289
|
-
*
|
|
14290
|
-
*
|
|
16571
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
16572
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
16573
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
16574
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
16575
|
+
* applies at any level.
|
|
14291
16576
|
*/
|
|
14292
16577
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
14293
16578
|
|
|
@@ -14477,7 +16762,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14477
16762
|
/**
|
|
14478
16763
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
14479
16764
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
14480
|
-
* when.
|
|
16765
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
16766
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
16767
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
16768
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
16769
|
+
* concept.
|
|
14481
16770
|
*/
|
|
14482
16771
|
prompt?: string | null;
|
|
14483
16772
|
|
|
@@ -14526,6 +16815,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14526
16815
|
*/
|
|
14527
16816
|
createdAt: string;
|
|
14528
16817
|
|
|
16818
|
+
/**
|
|
16819
|
+
* The per-direction loss of a CUSTOM line.
|
|
16820
|
+
*/
|
|
16821
|
+
lineCustom: Environment.LineCustom | null;
|
|
16822
|
+
|
|
16823
|
+
/**
|
|
16824
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
16825
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
16826
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
16827
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
16828
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
16829
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
16830
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
16831
|
+
*/
|
|
16832
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
16833
|
+
|
|
14529
16834
|
name: string;
|
|
14530
16835
|
|
|
14531
16836
|
/**
|
|
@@ -14536,6 +16841,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14536
16841
|
description?: string | null;
|
|
14537
16842
|
}
|
|
14538
16843
|
|
|
16844
|
+
export namespace Environment {
|
|
16845
|
+
/**
|
|
16846
|
+
* The per-direction loss of a CUSTOM line.
|
|
16847
|
+
*/
|
|
16848
|
+
export interface LineCustom {
|
|
16849
|
+
/**
|
|
16850
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
16851
|
+
* loss.
|
|
16852
|
+
*/
|
|
16853
|
+
fromAgent?: LineCustom.FromAgent;
|
|
16854
|
+
|
|
16855
|
+
/**
|
|
16856
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
16857
|
+
* loss.
|
|
16858
|
+
*/
|
|
16859
|
+
toAgent?: LineCustom.ToAgent;
|
|
16860
|
+
}
|
|
16861
|
+
|
|
16862
|
+
export namespace LineCustom {
|
|
16863
|
+
/**
|
|
16864
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
16865
|
+
* loss.
|
|
16866
|
+
*/
|
|
16867
|
+
export interface FromAgent {
|
|
16868
|
+
/**
|
|
16869
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
16870
|
+
*/
|
|
16871
|
+
packetLossPercent: number;
|
|
16872
|
+
|
|
16873
|
+
/**
|
|
16874
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
16875
|
+
*/
|
|
16876
|
+
meanBurstPackets?: number;
|
|
16877
|
+
}
|
|
16878
|
+
|
|
16879
|
+
/**
|
|
16880
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
16881
|
+
* loss.
|
|
16882
|
+
*/
|
|
16883
|
+
export interface ToAgent {
|
|
16884
|
+
/**
|
|
16885
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
16886
|
+
*/
|
|
16887
|
+
packetLossPercent: number;
|
|
16888
|
+
|
|
16889
|
+
/**
|
|
16890
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
16891
|
+
*/
|
|
16892
|
+
meanBurstPackets?: number;
|
|
16893
|
+
}
|
|
16894
|
+
}
|
|
16895
|
+
}
|
|
16896
|
+
|
|
14539
16897
|
export interface HandoffPersona {
|
|
14540
16898
|
/**
|
|
14541
16899
|
* Unique identifier of the persona
|
|
@@ -14659,9 +17017,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14659
17017
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
14660
17018
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
14661
17019
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
14662
|
-
* OCCASIONAL
|
|
14663
|
-
*
|
|
14664
|
-
*
|
|
17020
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
17021
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
17022
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
17023
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
17024
|
+
* applies at any level.
|
|
14665
17025
|
*/
|
|
14666
17026
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
14667
17027
|
|
|
@@ -14909,9 +17269,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
14909
17269
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
14910
17270
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
14911
17271
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
14912
|
-
* OCCASIONAL
|
|
14913
|
-
*
|
|
14914
|
-
*
|
|
17272
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
17273
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
17274
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
17275
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
17276
|
+
* applies at any level.
|
|
14915
17277
|
*/
|
|
14916
17278
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
14917
17279
|
|
|
@@ -15111,6 +17473,28 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15111
17473
|
*/
|
|
15112
17474
|
description: string | null;
|
|
15113
17475
|
|
|
17476
|
+
/**
|
|
17477
|
+
* The industry the agent serves
|
|
17478
|
+
*/
|
|
17479
|
+
industry:
|
|
17480
|
+
| 'HEALTHCARE'
|
|
17481
|
+
| 'FINANCIAL_SERVICES'
|
|
17482
|
+
| 'INSURANCE'
|
|
17483
|
+
| 'DEBT_COLLECTION'
|
|
17484
|
+
| 'RETAIL'
|
|
17485
|
+
| 'TRAVEL_AND_HOSPITALITY'
|
|
17486
|
+
| 'TELECOMMUNICATIONS'
|
|
17487
|
+
| 'TECHNOLOGY'
|
|
17488
|
+
| 'PUBLIC_SECTOR'
|
|
17489
|
+
| 'UTILITIES'
|
|
17490
|
+
| 'LOGISTICS'
|
|
17491
|
+
| 'AUTOMOTIVE'
|
|
17492
|
+
| 'HOME_SERVICES'
|
|
17493
|
+
| 'RESTAURANTS'
|
|
17494
|
+
| 'EDUCATION'
|
|
17495
|
+
| 'OTHER'
|
|
17496
|
+
| null;
|
|
17497
|
+
|
|
15114
17498
|
/**
|
|
15115
17499
|
* Name of the agent
|
|
15116
17500
|
*/
|
|
@@ -15219,6 +17603,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15219
17603
|
*/
|
|
15220
17604
|
createdAt: string;
|
|
15221
17605
|
|
|
17606
|
+
/**
|
|
17607
|
+
* The per-direction loss of a CUSTOM line.
|
|
17608
|
+
*/
|
|
17609
|
+
lineCustom: Environment.LineCustom | null;
|
|
17610
|
+
|
|
17611
|
+
/**
|
|
17612
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
17613
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
17614
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
17615
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
17616
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
17617
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
17618
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
17619
|
+
*/
|
|
17620
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
17621
|
+
|
|
15222
17622
|
name: string;
|
|
15223
17623
|
|
|
15224
17624
|
/**
|
|
@@ -15229,6 +17629,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15229
17629
|
description?: string | null;
|
|
15230
17630
|
}
|
|
15231
17631
|
|
|
17632
|
+
export namespace Environment {
|
|
17633
|
+
/**
|
|
17634
|
+
* The per-direction loss of a CUSTOM line.
|
|
17635
|
+
*/
|
|
17636
|
+
export interface LineCustom {
|
|
17637
|
+
/**
|
|
17638
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
17639
|
+
* loss.
|
|
17640
|
+
*/
|
|
17641
|
+
fromAgent?: LineCustom.FromAgent;
|
|
17642
|
+
|
|
17643
|
+
/**
|
|
17644
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
17645
|
+
* loss.
|
|
17646
|
+
*/
|
|
17647
|
+
toAgent?: LineCustom.ToAgent;
|
|
17648
|
+
}
|
|
17649
|
+
|
|
17650
|
+
export namespace LineCustom {
|
|
17651
|
+
/**
|
|
17652
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
17653
|
+
* loss.
|
|
17654
|
+
*/
|
|
17655
|
+
export interface FromAgent {
|
|
17656
|
+
/**
|
|
17657
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
17658
|
+
*/
|
|
17659
|
+
packetLossPercent: number;
|
|
17660
|
+
|
|
17661
|
+
/**
|
|
17662
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
17663
|
+
*/
|
|
17664
|
+
meanBurstPackets?: number;
|
|
17665
|
+
}
|
|
17666
|
+
|
|
17667
|
+
/**
|
|
17668
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
17669
|
+
* loss.
|
|
17670
|
+
*/
|
|
17671
|
+
export interface ToAgent {
|
|
17672
|
+
/**
|
|
17673
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
17674
|
+
*/
|
|
17675
|
+
packetLossPercent: number;
|
|
17676
|
+
|
|
17677
|
+
/**
|
|
17678
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
17679
|
+
*/
|
|
17680
|
+
meanBurstPackets?: number;
|
|
17681
|
+
}
|
|
17682
|
+
}
|
|
17683
|
+
}
|
|
17684
|
+
|
|
15232
17685
|
/**
|
|
15233
17686
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
15234
17687
|
*/
|
|
@@ -15355,9 +17808,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15355
17808
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
15356
17809
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
15357
17810
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
15358
|
-
* OCCASIONAL
|
|
15359
|
-
*
|
|
15360
|
-
*
|
|
17811
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
17812
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
17813
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
17814
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
17815
|
+
* applies at any level.
|
|
15361
17816
|
*/
|
|
15362
17817
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
15363
17818
|
|
|
@@ -15577,6 +18032,22 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15577
18032
|
*/
|
|
15578
18033
|
createdAt: string;
|
|
15579
18034
|
|
|
18035
|
+
/**
|
|
18036
|
+
* The per-direction loss of a CUSTOM line.
|
|
18037
|
+
*/
|
|
18038
|
+
lineCustom: Environment.LineCustom | null;
|
|
18039
|
+
|
|
18040
|
+
/**
|
|
18041
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
18042
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
18043
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
18044
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
18045
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
18046
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
18047
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
18048
|
+
*/
|
|
18049
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
18050
|
+
|
|
15580
18051
|
name: string;
|
|
15581
18052
|
|
|
15582
18053
|
/**
|
|
@@ -15587,6 +18058,59 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15587
18058
|
description?: string | null;
|
|
15588
18059
|
}
|
|
15589
18060
|
|
|
18061
|
+
export namespace Environment {
|
|
18062
|
+
/**
|
|
18063
|
+
* The per-direction loss of a CUSTOM line.
|
|
18064
|
+
*/
|
|
18065
|
+
export interface LineCustom {
|
|
18066
|
+
/**
|
|
18067
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
18068
|
+
* loss.
|
|
18069
|
+
*/
|
|
18070
|
+
fromAgent?: LineCustom.FromAgent;
|
|
18071
|
+
|
|
18072
|
+
/**
|
|
18073
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
18074
|
+
* loss.
|
|
18075
|
+
*/
|
|
18076
|
+
toAgent?: LineCustom.ToAgent;
|
|
18077
|
+
}
|
|
18078
|
+
|
|
18079
|
+
export namespace LineCustom {
|
|
18080
|
+
/**
|
|
18081
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
18082
|
+
* loss.
|
|
18083
|
+
*/
|
|
18084
|
+
export interface FromAgent {
|
|
18085
|
+
/**
|
|
18086
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
18087
|
+
*/
|
|
18088
|
+
packetLossPercent: number;
|
|
18089
|
+
|
|
18090
|
+
/**
|
|
18091
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
18092
|
+
*/
|
|
18093
|
+
meanBurstPackets?: number;
|
|
18094
|
+
}
|
|
18095
|
+
|
|
18096
|
+
/**
|
|
18097
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
18098
|
+
* loss.
|
|
18099
|
+
*/
|
|
18100
|
+
export interface ToAgent {
|
|
18101
|
+
/**
|
|
18102
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
18103
|
+
*/
|
|
18104
|
+
packetLossPercent: number;
|
|
18105
|
+
|
|
18106
|
+
/**
|
|
18107
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
18108
|
+
*/
|
|
18109
|
+
meanBurstPackets?: number;
|
|
18110
|
+
}
|
|
18111
|
+
}
|
|
18112
|
+
}
|
|
18113
|
+
|
|
15590
18114
|
/**
|
|
15591
18115
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
15592
18116
|
*/
|
|
@@ -15713,9 +18237,11 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
15713
18237
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
15714
18238
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
15715
18239
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
15716
|
-
* OCCASIONAL
|
|
15717
|
-
*
|
|
15718
|
-
*
|
|
18240
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
18241
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
18242
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
18243
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
18244
|
+
* applies at any level.
|
|
15719
18245
|
*/
|
|
15720
18246
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
15721
18247
|
|
|
@@ -15972,6 +18498,22 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
15972
18498
|
*/
|
|
15973
18499
|
createdAt: string;
|
|
15974
18500
|
|
|
18501
|
+
/**
|
|
18502
|
+
* The per-direction loss of a CUSTOM line.
|
|
18503
|
+
*/
|
|
18504
|
+
lineCustom: Environment.LineCustom | null;
|
|
18505
|
+
|
|
18506
|
+
/**
|
|
18507
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
18508
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
18509
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
18510
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
18511
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
18512
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
18513
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
18514
|
+
*/
|
|
18515
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
18516
|
+
|
|
15975
18517
|
name: string;
|
|
15976
18518
|
|
|
15977
18519
|
/**
|
|
@@ -15982,6 +18524,59 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
15982
18524
|
description?: string | null;
|
|
15983
18525
|
}
|
|
15984
18526
|
|
|
18527
|
+
export namespace Environment {
|
|
18528
|
+
/**
|
|
18529
|
+
* The per-direction loss of a CUSTOM line.
|
|
18530
|
+
*/
|
|
18531
|
+
export interface LineCustom {
|
|
18532
|
+
/**
|
|
18533
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
18534
|
+
* loss.
|
|
18535
|
+
*/
|
|
18536
|
+
fromAgent?: LineCustom.FromAgent;
|
|
18537
|
+
|
|
18538
|
+
/**
|
|
18539
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
18540
|
+
* loss.
|
|
18541
|
+
*/
|
|
18542
|
+
toAgent?: LineCustom.ToAgent;
|
|
18543
|
+
}
|
|
18544
|
+
|
|
18545
|
+
export namespace LineCustom {
|
|
18546
|
+
/**
|
|
18547
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
18548
|
+
* loss.
|
|
18549
|
+
*/
|
|
18550
|
+
export interface FromAgent {
|
|
18551
|
+
/**
|
|
18552
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
18553
|
+
*/
|
|
18554
|
+
packetLossPercent: number;
|
|
18555
|
+
|
|
18556
|
+
/**
|
|
18557
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
18558
|
+
*/
|
|
18559
|
+
meanBurstPackets?: number;
|
|
18560
|
+
}
|
|
18561
|
+
|
|
18562
|
+
/**
|
|
18563
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
18564
|
+
* loss.
|
|
18565
|
+
*/
|
|
18566
|
+
export interface ToAgent {
|
|
18567
|
+
/**
|
|
18568
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
18569
|
+
*/
|
|
18570
|
+
packetLossPercent: number;
|
|
18571
|
+
|
|
18572
|
+
/**
|
|
18573
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
18574
|
+
*/
|
|
18575
|
+
meanBurstPackets?: number;
|
|
18576
|
+
}
|
|
18577
|
+
}
|
|
18578
|
+
}
|
|
18579
|
+
|
|
15985
18580
|
/**
|
|
15986
18581
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
15987
18582
|
*/
|
|
@@ -16108,9 +18703,11 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16108
18703
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
16109
18704
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
16110
18705
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
16111
|
-
* OCCASIONAL
|
|
16112
|
-
*
|
|
16113
|
-
*
|
|
18706
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
18707
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
18708
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
18709
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
18710
|
+
* applies at any level.
|
|
16114
18711
|
*/
|
|
16115
18712
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
16116
18713
|
|
|
@@ -16300,7 +18897,11 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16300
18897
|
/**
|
|
16301
18898
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
16302
18899
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
16303
|
-
* when.
|
|
18900
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
18901
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
18902
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
18903
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
18904
|
+
* concept.
|
|
16304
18905
|
*/
|
|
16305
18906
|
prompt?: string | null;
|
|
16306
18907
|
|
|
@@ -16349,6 +18950,22 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16349
18950
|
*/
|
|
16350
18951
|
createdAt: string;
|
|
16351
18952
|
|
|
18953
|
+
/**
|
|
18954
|
+
* The per-direction loss of a CUSTOM line.
|
|
18955
|
+
*/
|
|
18956
|
+
lineCustom: Environment.LineCustom | null;
|
|
18957
|
+
|
|
18958
|
+
/**
|
|
18959
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
18960
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
18961
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
18962
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
18963
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
18964
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
18965
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
18966
|
+
*/
|
|
18967
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
18968
|
+
|
|
16352
18969
|
name: string;
|
|
16353
18970
|
|
|
16354
18971
|
/**
|
|
@@ -16359,6 +18976,59 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16359
18976
|
description?: string | null;
|
|
16360
18977
|
}
|
|
16361
18978
|
|
|
18979
|
+
export namespace Environment {
|
|
18980
|
+
/**
|
|
18981
|
+
* The per-direction loss of a CUSTOM line.
|
|
18982
|
+
*/
|
|
18983
|
+
export interface LineCustom {
|
|
18984
|
+
/**
|
|
18985
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
18986
|
+
* loss.
|
|
18987
|
+
*/
|
|
18988
|
+
fromAgent?: LineCustom.FromAgent;
|
|
18989
|
+
|
|
18990
|
+
/**
|
|
18991
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
18992
|
+
* loss.
|
|
18993
|
+
*/
|
|
18994
|
+
toAgent?: LineCustom.ToAgent;
|
|
18995
|
+
}
|
|
18996
|
+
|
|
18997
|
+
export namespace LineCustom {
|
|
18998
|
+
/**
|
|
18999
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
19000
|
+
* loss.
|
|
19001
|
+
*/
|
|
19002
|
+
export interface FromAgent {
|
|
19003
|
+
/**
|
|
19004
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
19005
|
+
*/
|
|
19006
|
+
packetLossPercent: number;
|
|
19007
|
+
|
|
19008
|
+
/**
|
|
19009
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
19010
|
+
*/
|
|
19011
|
+
meanBurstPackets?: number;
|
|
19012
|
+
}
|
|
19013
|
+
|
|
19014
|
+
/**
|
|
19015
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
19016
|
+
* loss.
|
|
19017
|
+
*/
|
|
19018
|
+
export interface ToAgent {
|
|
19019
|
+
/**
|
|
19020
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
19021
|
+
*/
|
|
19022
|
+
packetLossPercent: number;
|
|
19023
|
+
|
|
19024
|
+
/**
|
|
19025
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
19026
|
+
*/
|
|
19027
|
+
meanBurstPackets?: number;
|
|
19028
|
+
}
|
|
19029
|
+
}
|
|
19030
|
+
}
|
|
19031
|
+
|
|
16362
19032
|
export interface HandoffPersona {
|
|
16363
19033
|
/**
|
|
16364
19034
|
* Unique identifier of the persona
|
|
@@ -16482,9 +19152,11 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16482
19152
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
16483
19153
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
16484
19154
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
16485
|
-
* OCCASIONAL
|
|
16486
|
-
*
|
|
16487
|
-
*
|
|
19155
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
19156
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
19157
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
19158
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
19159
|
+
* applies at any level.
|
|
16488
19160
|
*/
|
|
16489
19161
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
16490
19162
|
|
|
@@ -16732,9 +19404,11 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16732
19404
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
16733
19405
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
16734
19406
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
16735
|
-
* OCCASIONAL
|
|
16736
|
-
*
|
|
16737
|
-
*
|
|
19407
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
19408
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
19409
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
19410
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
19411
|
+
* applies at any level.
|
|
16738
19412
|
*/
|
|
16739
19413
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
16740
19414
|
|
|
@@ -16954,6 +19628,22 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16954
19628
|
*/
|
|
16955
19629
|
createdAt: string;
|
|
16956
19630
|
|
|
19631
|
+
/**
|
|
19632
|
+
* The per-direction loss of a CUSTOM line.
|
|
19633
|
+
*/
|
|
19634
|
+
lineCustom: Environment.LineCustom | null;
|
|
19635
|
+
|
|
19636
|
+
/**
|
|
19637
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
19638
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
19639
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
19640
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
19641
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
19642
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
19643
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
19644
|
+
*/
|
|
19645
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
19646
|
+
|
|
16957
19647
|
name: string;
|
|
16958
19648
|
|
|
16959
19649
|
/**
|
|
@@ -16964,6 +19654,59 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
16964
19654
|
description?: string | null;
|
|
16965
19655
|
}
|
|
16966
19656
|
|
|
19657
|
+
export namespace Environment {
|
|
19658
|
+
/**
|
|
19659
|
+
* The per-direction loss of a CUSTOM line.
|
|
19660
|
+
*/
|
|
19661
|
+
export interface LineCustom {
|
|
19662
|
+
/**
|
|
19663
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
19664
|
+
* loss.
|
|
19665
|
+
*/
|
|
19666
|
+
fromAgent?: LineCustom.FromAgent;
|
|
19667
|
+
|
|
19668
|
+
/**
|
|
19669
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
19670
|
+
* loss.
|
|
19671
|
+
*/
|
|
19672
|
+
toAgent?: LineCustom.ToAgent;
|
|
19673
|
+
}
|
|
19674
|
+
|
|
19675
|
+
export namespace LineCustom {
|
|
19676
|
+
/**
|
|
19677
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
19678
|
+
* loss.
|
|
19679
|
+
*/
|
|
19680
|
+
export interface FromAgent {
|
|
19681
|
+
/**
|
|
19682
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
19683
|
+
*/
|
|
19684
|
+
packetLossPercent: number;
|
|
19685
|
+
|
|
19686
|
+
/**
|
|
19687
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
19688
|
+
*/
|
|
19689
|
+
meanBurstPackets?: number;
|
|
19690
|
+
}
|
|
19691
|
+
|
|
19692
|
+
/**
|
|
19693
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
19694
|
+
* loss.
|
|
19695
|
+
*/
|
|
19696
|
+
export interface ToAgent {
|
|
19697
|
+
/**
|
|
19698
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
19699
|
+
*/
|
|
19700
|
+
packetLossPercent: number;
|
|
19701
|
+
|
|
19702
|
+
/**
|
|
19703
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
19704
|
+
*/
|
|
19705
|
+
meanBurstPackets?: number;
|
|
19706
|
+
}
|
|
19707
|
+
}
|
|
19708
|
+
}
|
|
19709
|
+
|
|
16967
19710
|
/**
|
|
16968
19711
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
16969
19712
|
*/
|
|
@@ -17090,9 +19833,11 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
17090
19833
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
17091
19834
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
17092
19835
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
17093
|
-
* OCCASIONAL
|
|
17094
|
-
*
|
|
17095
|
-
*
|
|
19836
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
19837
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
19838
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
19839
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
19840
|
+
* applies at any level.
|
|
17096
19841
|
*/
|
|
17097
19842
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
17098
19843
|
|
|
@@ -17332,6 +20077,22 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17332
20077
|
*/
|
|
17333
20078
|
createdAt: string;
|
|
17334
20079
|
|
|
20080
|
+
/**
|
|
20081
|
+
* The per-direction loss of a CUSTOM line.
|
|
20082
|
+
*/
|
|
20083
|
+
lineCustom: Environment.LineCustom | null;
|
|
20084
|
+
|
|
20085
|
+
/**
|
|
20086
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
20087
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
20088
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
20089
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
20090
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
20091
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
20092
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
20093
|
+
*/
|
|
20094
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
20095
|
+
|
|
17335
20096
|
name: string;
|
|
17336
20097
|
|
|
17337
20098
|
/**
|
|
@@ -17342,6 +20103,59 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17342
20103
|
description?: string | null;
|
|
17343
20104
|
}
|
|
17344
20105
|
|
|
20106
|
+
export namespace Environment {
|
|
20107
|
+
/**
|
|
20108
|
+
* The per-direction loss of a CUSTOM line.
|
|
20109
|
+
*/
|
|
20110
|
+
export interface LineCustom {
|
|
20111
|
+
/**
|
|
20112
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
20113
|
+
* loss.
|
|
20114
|
+
*/
|
|
20115
|
+
fromAgent?: LineCustom.FromAgent;
|
|
20116
|
+
|
|
20117
|
+
/**
|
|
20118
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
20119
|
+
* loss.
|
|
20120
|
+
*/
|
|
20121
|
+
toAgent?: LineCustom.ToAgent;
|
|
20122
|
+
}
|
|
20123
|
+
|
|
20124
|
+
export namespace LineCustom {
|
|
20125
|
+
/**
|
|
20126
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
20127
|
+
* loss.
|
|
20128
|
+
*/
|
|
20129
|
+
export interface FromAgent {
|
|
20130
|
+
/**
|
|
20131
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
20132
|
+
*/
|
|
20133
|
+
packetLossPercent: number;
|
|
20134
|
+
|
|
20135
|
+
/**
|
|
20136
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
20137
|
+
*/
|
|
20138
|
+
meanBurstPackets?: number;
|
|
20139
|
+
}
|
|
20140
|
+
|
|
20141
|
+
/**
|
|
20142
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
20143
|
+
* loss.
|
|
20144
|
+
*/
|
|
20145
|
+
export interface ToAgent {
|
|
20146
|
+
/**
|
|
20147
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
20148
|
+
*/
|
|
20149
|
+
packetLossPercent: number;
|
|
20150
|
+
|
|
20151
|
+
/**
|
|
20152
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
20153
|
+
*/
|
|
20154
|
+
meanBurstPackets?: number;
|
|
20155
|
+
}
|
|
20156
|
+
}
|
|
20157
|
+
}
|
|
20158
|
+
|
|
17345
20159
|
/**
|
|
17346
20160
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
17347
20161
|
*/
|
|
@@ -17468,9 +20282,11 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17468
20282
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
17469
20283
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
17470
20284
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
17471
|
-
* OCCASIONAL
|
|
17472
|
-
*
|
|
17473
|
-
*
|
|
20285
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
20286
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
20287
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
20288
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
20289
|
+
* applies at any level.
|
|
17474
20290
|
*/
|
|
17475
20291
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
17476
20292
|
|
|
@@ -17660,7 +20476,11 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17660
20476
|
/**
|
|
17661
20477
|
* The brief the simulated customer improvises from. A `@{persona:<id>}` mention
|
|
17662
20478
|
* hands the phone to that persona mid-call; the sentences around the mention say
|
|
17663
|
-
* when.
|
|
20479
|
+
* when. Caller cues steer the caller from that point in the brief:
|
|
20480
|
+
* `#{emotion:<emotion>}`, `#{language:<ISO 639-1 code>}`,
|
|
20481
|
+
* `#{noise:<environmentId>}`, and `#{interrupt}`, whose sentence says when to cut
|
|
20482
|
+
* in on your agent. Cues are voice only. See "Caller cues" in the customer flows
|
|
20483
|
+
* concept.
|
|
17664
20484
|
*/
|
|
17665
20485
|
prompt?: string | null;
|
|
17666
20486
|
|
|
@@ -17709,6 +20529,22 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17709
20529
|
*/
|
|
17710
20530
|
createdAt: string;
|
|
17711
20531
|
|
|
20532
|
+
/**
|
|
20533
|
+
* The per-direction loss of a CUSTOM line.
|
|
20534
|
+
*/
|
|
20535
|
+
lineCustom: Environment.LineCustom | null;
|
|
20536
|
+
|
|
20537
|
+
/**
|
|
20538
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
20539
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
20540
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
20541
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
20542
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
20543
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
20544
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
20545
|
+
*/
|
|
20546
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
20547
|
+
|
|
17712
20548
|
name: string;
|
|
17713
20549
|
|
|
17714
20550
|
/**
|
|
@@ -17719,6 +20555,59 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17719
20555
|
description?: string | null;
|
|
17720
20556
|
}
|
|
17721
20557
|
|
|
20558
|
+
export namespace Environment {
|
|
20559
|
+
/**
|
|
20560
|
+
* The per-direction loss of a CUSTOM line.
|
|
20561
|
+
*/
|
|
20562
|
+
export interface LineCustom {
|
|
20563
|
+
/**
|
|
20564
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
20565
|
+
* loss.
|
|
20566
|
+
*/
|
|
20567
|
+
fromAgent?: LineCustom.FromAgent;
|
|
20568
|
+
|
|
20569
|
+
/**
|
|
20570
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
20571
|
+
* loss.
|
|
20572
|
+
*/
|
|
20573
|
+
toAgent?: LineCustom.ToAgent;
|
|
20574
|
+
}
|
|
20575
|
+
|
|
20576
|
+
export namespace LineCustom {
|
|
20577
|
+
/**
|
|
20578
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
20579
|
+
* loss.
|
|
20580
|
+
*/
|
|
20581
|
+
export interface FromAgent {
|
|
20582
|
+
/**
|
|
20583
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
20584
|
+
*/
|
|
20585
|
+
packetLossPercent: number;
|
|
20586
|
+
|
|
20587
|
+
/**
|
|
20588
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
20589
|
+
*/
|
|
20590
|
+
meanBurstPackets?: number;
|
|
20591
|
+
}
|
|
20592
|
+
|
|
20593
|
+
/**
|
|
20594
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
20595
|
+
* loss.
|
|
20596
|
+
*/
|
|
20597
|
+
export interface ToAgent {
|
|
20598
|
+
/**
|
|
20599
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
20600
|
+
*/
|
|
20601
|
+
packetLossPercent: number;
|
|
20602
|
+
|
|
20603
|
+
/**
|
|
20604
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
20605
|
+
*/
|
|
20606
|
+
meanBurstPackets?: number;
|
|
20607
|
+
}
|
|
20608
|
+
}
|
|
20609
|
+
}
|
|
20610
|
+
|
|
17722
20611
|
export interface HandoffPersona {
|
|
17723
20612
|
/**
|
|
17724
20613
|
* Unique identifier of the persona
|
|
@@ -17842,9 +20731,11 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
17842
20731
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
17843
20732
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
17844
20733
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
17845
|
-
* OCCASIONAL
|
|
17846
|
-
*
|
|
17847
|
-
*
|
|
20734
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
20735
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
20736
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
20737
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
20738
|
+
* applies at any level.
|
|
17848
20739
|
*/
|
|
17849
20740
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
17850
20741
|
|
|
@@ -18092,9 +20983,11 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
18092
20983
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
18093
20984
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
18094
20985
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
18095
|
-
* OCCASIONAL
|
|
18096
|
-
*
|
|
18097
|
-
*
|
|
20986
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
20987
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
20988
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
20989
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
20990
|
+
* applies at any level.
|
|
18098
20991
|
*/
|
|
18099
20992
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
18100
20993
|
|
|
@@ -18314,6 +21207,22 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
18314
21207
|
*/
|
|
18315
21208
|
createdAt: string;
|
|
18316
21209
|
|
|
21210
|
+
/**
|
|
21211
|
+
* The per-direction loss of a CUSTOM line.
|
|
21212
|
+
*/
|
|
21213
|
+
lineCustom: Environment.LineCustom | null;
|
|
21214
|
+
|
|
21215
|
+
/**
|
|
21216
|
+
* The phone line the simulated caller is on: packet loss applied to its 20 ms
|
|
21217
|
+
* audio packets, per direction. The loss pattern is seeded per call, so a redial
|
|
21218
|
+
* loses the same packets. CLEAR: No loss. MINOR_LOSS: 1% random, both ways.
|
|
21219
|
+
* CELL_EDGE: 5% in 80 ms gaps, both ways. POOR_CONNECTION: 10% in 120 ms gaps,
|
|
21220
|
+
* both ways. ONE_WAY_DEGRADED: 8% in 80 ms gaps, toward the agent only. CUSTOM:
|
|
21221
|
+
* the per-direction loss in `lineCustom`, up to 20% in 0.5 steps, with a mean
|
|
21222
|
+
* burst of up to 10 packets (omit it for random loss).
|
|
21223
|
+
*/
|
|
21224
|
+
lineQuality: 'CLEAR' | 'MINOR_LOSS' | 'CELL_EDGE' | 'POOR_CONNECTION' | 'ONE_WAY_DEGRADED' | 'CUSTOM';
|
|
21225
|
+
|
|
18317
21226
|
name: string;
|
|
18318
21227
|
|
|
18319
21228
|
/**
|
|
@@ -18324,6 +21233,59 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
18324
21233
|
description?: string | null;
|
|
18325
21234
|
}
|
|
18326
21235
|
|
|
21236
|
+
export namespace Environment {
|
|
21237
|
+
/**
|
|
21238
|
+
* The per-direction loss of a CUSTOM line.
|
|
21239
|
+
*/
|
|
21240
|
+
export interface LineCustom {
|
|
21241
|
+
/**
|
|
21242
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
21243
|
+
* loss.
|
|
21244
|
+
*/
|
|
21245
|
+
fromAgent?: LineCustom.FromAgent;
|
|
21246
|
+
|
|
21247
|
+
/**
|
|
21248
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
21249
|
+
* loss.
|
|
21250
|
+
*/
|
|
21251
|
+
toAgent?: LineCustom.ToAgent;
|
|
21252
|
+
}
|
|
21253
|
+
|
|
21254
|
+
export namespace LineCustom {
|
|
21255
|
+
/**
|
|
21256
|
+
* The agent's audio on its way to the caller: what the caller hears. Omit for no
|
|
21257
|
+
* loss.
|
|
21258
|
+
*/
|
|
21259
|
+
export interface FromAgent {
|
|
21260
|
+
/**
|
|
21261
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
21262
|
+
*/
|
|
21263
|
+
packetLossPercent: number;
|
|
21264
|
+
|
|
21265
|
+
/**
|
|
21266
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
21267
|
+
*/
|
|
21268
|
+
meanBurstPackets?: number;
|
|
21269
|
+
}
|
|
21270
|
+
|
|
21271
|
+
/**
|
|
21272
|
+
* The caller's audio on its way to the agent: what the agent hears. Omit for no
|
|
21273
|
+
* loss.
|
|
21274
|
+
*/
|
|
21275
|
+
export interface ToAgent {
|
|
21276
|
+
/**
|
|
21277
|
+
* Share of packets lost, 0 to 20 in steps of 0.5.
|
|
21278
|
+
*/
|
|
21279
|
+
packetLossPercent: number;
|
|
21280
|
+
|
|
21281
|
+
/**
|
|
21282
|
+
* Mean length of a loss gap in 20 ms packets, 2 to 10. Omit for random loss.
|
|
21283
|
+
*/
|
|
21284
|
+
meanBurstPackets?: number;
|
|
21285
|
+
}
|
|
21286
|
+
}
|
|
21287
|
+
}
|
|
21288
|
+
|
|
18327
21289
|
/**
|
|
18328
21290
|
* The persona this runs as instead of the happy path's. Null means it inherits.
|
|
18329
21291
|
*/
|
|
@@ -18450,9 +21412,11 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
18450
21412
|
* How much the persona talks over the agent while it is still speaking. OFF waits
|
|
18451
21413
|
* its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
|
|
18452
21414
|
* taking the floor, which tests whether the agent wrongly stops for them.
|
|
18453
|
-
* OCCASIONAL
|
|
18454
|
-
*
|
|
18455
|
-
*
|
|
21415
|
+
* OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
|
|
21416
|
+
* so readily, though never on every turn. The moments are chosen from what the
|
|
21417
|
+
* agent is saying, such as reading back a number or starting a long explanation,
|
|
21418
|
+
* not on a timer. A customer flow can also say exactly when to cut in, which
|
|
21419
|
+
* applies at any level.
|
|
18456
21420
|
*/
|
|
18457
21421
|
interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
|
|
18458
21422
|
|
|
@@ -18731,6 +21695,13 @@ export declare namespace CustomerFlowCreateParams {
|
|
|
18731
21695
|
|
|
18732
21696
|
precededByCustomerFlowVariantId?: string | null;
|
|
18733
21697
|
|
|
21698
|
+
/**
|
|
21699
|
+
* The brief the simulated customer improvises from. Caller cues steer the caller
|
|
21700
|
+
* from that point in the brief: `#{emotion:<emotion>}`,
|
|
21701
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
21702
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
21703
|
+
* "Caller cues" in the customer flows concept.
|
|
21704
|
+
*/
|
|
18734
21705
|
prompt?: string | null;
|
|
18735
21706
|
}
|
|
18736
21707
|
|
|
@@ -18782,6 +21753,13 @@ export declare namespace CustomerFlowCreateParams {
|
|
|
18782
21753
|
|
|
18783
21754
|
precededByCustomerFlowVariantId?: string | null;
|
|
18784
21755
|
|
|
21756
|
+
/**
|
|
21757
|
+
* The brief the simulated customer improvises from. Caller cues steer the caller
|
|
21758
|
+
* from that point in the brief: `#{emotion:<emotion>}`,
|
|
21759
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
21760
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
21761
|
+
* "Caller cues" in the customer flows concept.
|
|
21762
|
+
*/
|
|
18785
21763
|
prompt?: string | null;
|
|
18786
21764
|
}
|
|
18787
21765
|
|
|
@@ -18951,6 +21929,13 @@ export interface CustomerFlowUpdateHappyPathParams {
|
|
|
18951
21929
|
|
|
18952
21930
|
precededByCustomerFlowVariantId?: string | null;
|
|
18953
21931
|
|
|
21932
|
+
/**
|
|
21933
|
+
* Improv flows only. The brief the simulated customer improvises from. Caller cues
|
|
21934
|
+
* steer the caller from that point in the brief: `#{emotion:<emotion>}`,
|
|
21935
|
+
* `#{language:<ISO 639-1 code>}`, `#{noise:<environmentId>}`, and `#{interrupt}`,
|
|
21936
|
+
* whose sentence says when to cut in on your agent. Cues are voice only. See
|
|
21937
|
+
* "Caller cues" in the customer flows concept.
|
|
21938
|
+
*/
|
|
18954
21939
|
prompt?: string | null;
|
|
18955
21940
|
|
|
18956
21941
|
title?: string;
|