retell-sdk 5.10.2 → 5.11.0
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/package.json +1 -1
- package/resources/agent.d.mts +316 -3
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +316 -3
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +105 -1
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +105 -1
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +315 -3
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +315 -3
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +255 -3
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +255 -3
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +2164 -730
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +2164 -730
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +13562 -10694
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +13562 -10694
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/llm.d.mts +246 -0
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +246 -0
- package/resources/llm.d.ts.map +1 -1
- package/src/resources/agent.ts +376 -0
- package/src/resources/batch-call.ts +125 -0
- package/src/resources/call.ts +375 -0
- package/src/resources/chat-agent.ts +300 -0
- package/src/resources/conversation-flow-component.ts +8295 -6198
- package/src/resources/conversation-flow.ts +9667 -5473
- package/src/resources/llm.ts +288 -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
|
@@ -205,6 +205,12 @@ export interface ChatAgentResponse {
|
|
|
205
205
|
*/
|
|
206
206
|
guardrail_config?: ChatAgentResponse.GuardrailConfig;
|
|
207
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
210
|
+
* Voice-only presets are not available for chat agents.
|
|
211
|
+
*/
|
|
212
|
+
handbook_config?: ChatAgentResponse.HandbookConfig;
|
|
213
|
+
|
|
208
214
|
/**
|
|
209
215
|
* Whether the agent is public. When set to true, the agent is available for public
|
|
210
216
|
* agent preview link.
|
|
@@ -284,6 +290,7 @@ export interface ChatAgentResponse {
|
|
|
284
290
|
| ChatAgentResponse.EnumAnalysisData
|
|
285
291
|
| ChatAgentResponse.BooleanAnalysisData
|
|
286
292
|
| ChatAgentResponse.NumberAnalysisData
|
|
293
|
+
| ChatAgentResponse.ChatPresetAnalysisData
|
|
287
294
|
> | null;
|
|
288
295
|
|
|
289
296
|
/**
|
|
@@ -316,6 +323,12 @@ export interface ChatAgentResponse {
|
|
|
316
323
|
*/
|
|
317
324
|
signed_url_expiration_ms?: number | null;
|
|
318
325
|
|
|
326
|
+
/**
|
|
327
|
+
* IANA timezone for the agent (e.g. America/New_York). Defaults to
|
|
328
|
+
* America/Los_Angeles if not set.
|
|
329
|
+
*/
|
|
330
|
+
timezone?: string | null;
|
|
331
|
+
|
|
319
332
|
/**
|
|
320
333
|
* The version of the chat agent.
|
|
321
334
|
*/
|
|
@@ -418,6 +431,32 @@ export namespace ChatAgentResponse {
|
|
|
418
431
|
> | null;
|
|
419
432
|
}
|
|
420
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
436
|
+
* Voice-only presets are not available for chat agents.
|
|
437
|
+
*/
|
|
438
|
+
export interface HandbookConfig {
|
|
439
|
+
/**
|
|
440
|
+
* When asked, acknowledge being a virtual assistant.
|
|
441
|
+
*/
|
|
442
|
+
ai_disclosure?: boolean;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Professional call center rep baseline.
|
|
446
|
+
*/
|
|
447
|
+
default_personality?: boolean;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Warm acknowledgment of caller concerns.
|
|
451
|
+
*/
|
|
452
|
+
high_empathy?: boolean;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Stay within prompt/context scope, don't invent details.
|
|
456
|
+
*/
|
|
457
|
+
scope_boundaries?: boolean;
|
|
458
|
+
}
|
|
459
|
+
|
|
421
460
|
/**
|
|
422
461
|
* Configuration for PII scrubbing from transcripts and recordings.
|
|
423
462
|
*/
|
|
@@ -464,6 +503,13 @@ export namespace ChatAgentResponse {
|
|
|
464
503
|
*/
|
|
465
504
|
type: 'string';
|
|
466
505
|
|
|
506
|
+
/**
|
|
507
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
508
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
509
|
+
* this is ignored.
|
|
510
|
+
*/
|
|
511
|
+
conditional_prompt?: string;
|
|
512
|
+
|
|
467
513
|
/**
|
|
468
514
|
* Examples of the variable value to teach model the style and syntax.
|
|
469
515
|
*/
|
|
@@ -497,6 +543,13 @@ export namespace ChatAgentResponse {
|
|
|
497
543
|
*/
|
|
498
544
|
type: 'enum';
|
|
499
545
|
|
|
546
|
+
/**
|
|
547
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
548
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
549
|
+
* this is ignored.
|
|
550
|
+
*/
|
|
551
|
+
conditional_prompt?: string;
|
|
552
|
+
|
|
500
553
|
/**
|
|
501
554
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
502
555
|
* will be marked as unsuccessful.
|
|
@@ -520,6 +573,13 @@ export namespace ChatAgentResponse {
|
|
|
520
573
|
*/
|
|
521
574
|
type: 'boolean';
|
|
522
575
|
|
|
576
|
+
/**
|
|
577
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
578
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
579
|
+
* this is ignored.
|
|
580
|
+
*/
|
|
581
|
+
conditional_prompt?: string;
|
|
582
|
+
|
|
523
583
|
/**
|
|
524
584
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
525
585
|
* will be marked as unsuccessful.
|
|
@@ -543,12 +603,52 @@ export namespace ChatAgentResponse {
|
|
|
543
603
|
*/
|
|
544
604
|
type: 'number';
|
|
545
605
|
|
|
606
|
+
/**
|
|
607
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
608
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
609
|
+
* this is ignored.
|
|
610
|
+
*/
|
|
611
|
+
conditional_prompt?: string;
|
|
612
|
+
|
|
546
613
|
/**
|
|
547
614
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
548
615
|
* will be marked as unsuccessful.
|
|
549
616
|
*/
|
|
550
617
|
required?: boolean;
|
|
551
618
|
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* System preset for post-chat analysis (chat agents). Use in
|
|
622
|
+
* post_chat_analysis_data to override prompts or mark fields optional.
|
|
623
|
+
*/
|
|
624
|
+
export interface ChatPresetAnalysisData {
|
|
625
|
+
/**
|
|
626
|
+
* Preset identifier for chat agent analysis.
|
|
627
|
+
*/
|
|
628
|
+
name: 'chat_summary' | 'chat_successful' | 'user_sentiment';
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Identifies this item as a system preset.
|
|
632
|
+
*/
|
|
633
|
+
type: 'system-presets';
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Optional instruction to help decide whether this field needs to be populated. If
|
|
637
|
+
* not set, the field is always included.
|
|
638
|
+
*/
|
|
639
|
+
conditional_prompt?: string;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Prompt or description for this preset.
|
|
643
|
+
*/
|
|
644
|
+
description?: string;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* If false, this field is optional in the analysis. If true or unset, the field is
|
|
648
|
+
* required.
|
|
649
|
+
*/
|
|
650
|
+
required?: boolean;
|
|
651
|
+
}
|
|
552
652
|
}
|
|
553
653
|
|
|
554
654
|
export type ChatAgentListResponse = Array<ChatAgentResponse>;
|
|
@@ -622,6 +722,12 @@ export interface ChatAgentCreateParams {
|
|
|
622
722
|
*/
|
|
623
723
|
guardrail_config?: ChatAgentCreateParams.GuardrailConfig;
|
|
624
724
|
|
|
725
|
+
/**
|
|
726
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
727
|
+
* Voice-only presets are not available for chat agents.
|
|
728
|
+
*/
|
|
729
|
+
handbook_config?: ChatAgentCreateParams.HandbookConfig;
|
|
730
|
+
|
|
625
731
|
/**
|
|
626
732
|
* Whether the agent is public. When set to true, the agent is available for public
|
|
627
733
|
* agent preview link.
|
|
@@ -696,6 +802,7 @@ export interface ChatAgentCreateParams {
|
|
|
696
802
|
| ChatAgentCreateParams.EnumAnalysisData
|
|
697
803
|
| ChatAgentCreateParams.BooleanAnalysisData
|
|
698
804
|
| ChatAgentCreateParams.NumberAnalysisData
|
|
805
|
+
| ChatAgentCreateParams.ChatPresetAnalysisData
|
|
699
806
|
> | null;
|
|
700
807
|
|
|
701
808
|
/**
|
|
@@ -728,6 +835,12 @@ export interface ChatAgentCreateParams {
|
|
|
728
835
|
*/
|
|
729
836
|
signed_url_expiration_ms?: number | null;
|
|
730
837
|
|
|
838
|
+
/**
|
|
839
|
+
* IANA timezone for the agent (e.g. America/New_York). Defaults to
|
|
840
|
+
* America/Los_Angeles if not set.
|
|
841
|
+
*/
|
|
842
|
+
timezone?: string | null;
|
|
843
|
+
|
|
731
844
|
/**
|
|
732
845
|
* Which webhook events this agent should receive. If not set, defaults to
|
|
733
846
|
* chat_started, chat_ended, chat_analyzed.
|
|
@@ -825,6 +938,32 @@ export namespace ChatAgentCreateParams {
|
|
|
825
938
|
> | null;
|
|
826
939
|
}
|
|
827
940
|
|
|
941
|
+
/**
|
|
942
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
943
|
+
* Voice-only presets are not available for chat agents.
|
|
944
|
+
*/
|
|
945
|
+
export interface HandbookConfig {
|
|
946
|
+
/**
|
|
947
|
+
* When asked, acknowledge being a virtual assistant.
|
|
948
|
+
*/
|
|
949
|
+
ai_disclosure?: boolean;
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* Professional call center rep baseline.
|
|
953
|
+
*/
|
|
954
|
+
default_personality?: boolean;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Warm acknowledgment of caller concerns.
|
|
958
|
+
*/
|
|
959
|
+
high_empathy?: boolean;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* Stay within prompt/context scope, don't invent details.
|
|
963
|
+
*/
|
|
964
|
+
scope_boundaries?: boolean;
|
|
965
|
+
}
|
|
966
|
+
|
|
828
967
|
/**
|
|
829
968
|
* Configuration for PII scrubbing from transcripts and recordings.
|
|
830
969
|
*/
|
|
@@ -871,6 +1010,13 @@ export namespace ChatAgentCreateParams {
|
|
|
871
1010
|
*/
|
|
872
1011
|
type: 'string';
|
|
873
1012
|
|
|
1013
|
+
/**
|
|
1014
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1015
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1016
|
+
* this is ignored.
|
|
1017
|
+
*/
|
|
1018
|
+
conditional_prompt?: string;
|
|
1019
|
+
|
|
874
1020
|
/**
|
|
875
1021
|
* Examples of the variable value to teach model the style and syntax.
|
|
876
1022
|
*/
|
|
@@ -904,6 +1050,13 @@ export namespace ChatAgentCreateParams {
|
|
|
904
1050
|
*/
|
|
905
1051
|
type: 'enum';
|
|
906
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1055
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1056
|
+
* this is ignored.
|
|
1057
|
+
*/
|
|
1058
|
+
conditional_prompt?: string;
|
|
1059
|
+
|
|
907
1060
|
/**
|
|
908
1061
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
909
1062
|
* will be marked as unsuccessful.
|
|
@@ -927,6 +1080,13 @@ export namespace ChatAgentCreateParams {
|
|
|
927
1080
|
*/
|
|
928
1081
|
type: 'boolean';
|
|
929
1082
|
|
|
1083
|
+
/**
|
|
1084
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1085
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1086
|
+
* this is ignored.
|
|
1087
|
+
*/
|
|
1088
|
+
conditional_prompt?: string;
|
|
1089
|
+
|
|
930
1090
|
/**
|
|
931
1091
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
932
1092
|
* will be marked as unsuccessful.
|
|
@@ -950,12 +1110,52 @@ export namespace ChatAgentCreateParams {
|
|
|
950
1110
|
*/
|
|
951
1111
|
type: 'number';
|
|
952
1112
|
|
|
1113
|
+
/**
|
|
1114
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1115
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1116
|
+
* this is ignored.
|
|
1117
|
+
*/
|
|
1118
|
+
conditional_prompt?: string;
|
|
1119
|
+
|
|
953
1120
|
/**
|
|
954
1121
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
955
1122
|
* will be marked as unsuccessful.
|
|
956
1123
|
*/
|
|
957
1124
|
required?: boolean;
|
|
958
1125
|
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* System preset for post-chat analysis (chat agents). Use in
|
|
1129
|
+
* post_chat_analysis_data to override prompts or mark fields optional.
|
|
1130
|
+
*/
|
|
1131
|
+
export interface ChatPresetAnalysisData {
|
|
1132
|
+
/**
|
|
1133
|
+
* Preset identifier for chat agent analysis.
|
|
1134
|
+
*/
|
|
1135
|
+
name: 'chat_summary' | 'chat_successful' | 'user_sentiment';
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Identifies this item as a system preset.
|
|
1139
|
+
*/
|
|
1140
|
+
type: 'system-presets';
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Optional instruction to help decide whether this field needs to be populated. If
|
|
1144
|
+
* not set, the field is always included.
|
|
1145
|
+
*/
|
|
1146
|
+
conditional_prompt?: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Prompt or description for this preset.
|
|
1150
|
+
*/
|
|
1151
|
+
description?: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* If false, this field is optional in the analysis. If true or unset, the field is
|
|
1155
|
+
* required.
|
|
1156
|
+
*/
|
|
1157
|
+
required?: boolean;
|
|
1158
|
+
}
|
|
959
1159
|
}
|
|
960
1160
|
|
|
961
1161
|
export interface ChatAgentRetrieveParams {
|
|
@@ -1031,6 +1231,12 @@ export interface ChatAgentUpdateParams {
|
|
|
1031
1231
|
*/
|
|
1032
1232
|
guardrail_config?: ChatAgentUpdateParams.GuardrailConfig;
|
|
1033
1233
|
|
|
1234
|
+
/**
|
|
1235
|
+
* Body param: Toggle behavior presets on/off to influence agent response style and
|
|
1236
|
+
* behaviors. Voice-only presets are not available for chat agents.
|
|
1237
|
+
*/
|
|
1238
|
+
handbook_config?: ChatAgentUpdateParams.HandbookConfig;
|
|
1239
|
+
|
|
1034
1240
|
/**
|
|
1035
1241
|
* Body param: Whether the agent is public. When set to true, the agent is
|
|
1036
1242
|
* available for public agent preview link.
|
|
@@ -1105,6 +1311,7 @@ export interface ChatAgentUpdateParams {
|
|
|
1105
1311
|
| ChatAgentUpdateParams.EnumAnalysisData
|
|
1106
1312
|
| ChatAgentUpdateParams.BooleanAnalysisData
|
|
1107
1313
|
| ChatAgentUpdateParams.NumberAnalysisData
|
|
1314
|
+
| ChatAgentUpdateParams.ChatPresetAnalysisData
|
|
1108
1315
|
> | null;
|
|
1109
1316
|
|
|
1110
1317
|
/**
|
|
@@ -1147,6 +1354,12 @@ export interface ChatAgentUpdateParams {
|
|
|
1147
1354
|
*/
|
|
1148
1355
|
signed_url_expiration_ms?: number | null;
|
|
1149
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* Body param: IANA timezone for the agent (e.g. America/New_York). Defaults to
|
|
1359
|
+
* America/Los_Angeles if not set.
|
|
1360
|
+
*/
|
|
1361
|
+
timezone?: string | null;
|
|
1362
|
+
|
|
1150
1363
|
/**
|
|
1151
1364
|
* Body param: Which webhook events this agent should receive. If not set, defaults
|
|
1152
1365
|
* to chat_started, chat_ended, chat_analyzed.
|
|
@@ -1198,6 +1411,32 @@ export namespace ChatAgentUpdateParams {
|
|
|
1198
1411
|
> | null;
|
|
1199
1412
|
}
|
|
1200
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* Toggle behavior presets on/off to influence agent response style and behaviors.
|
|
1416
|
+
* Voice-only presets are not available for chat agents.
|
|
1417
|
+
*/
|
|
1418
|
+
export interface HandbookConfig {
|
|
1419
|
+
/**
|
|
1420
|
+
* When asked, acknowledge being a virtual assistant.
|
|
1421
|
+
*/
|
|
1422
|
+
ai_disclosure?: boolean;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Professional call center rep baseline.
|
|
1426
|
+
*/
|
|
1427
|
+
default_personality?: boolean;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Warm acknowledgment of caller concerns.
|
|
1431
|
+
*/
|
|
1432
|
+
high_empathy?: boolean;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* Stay within prompt/context scope, don't invent details.
|
|
1436
|
+
*/
|
|
1437
|
+
scope_boundaries?: boolean;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1201
1440
|
/**
|
|
1202
1441
|
* Configuration for PII scrubbing from transcripts and recordings.
|
|
1203
1442
|
*/
|
|
@@ -1244,6 +1483,13 @@ export namespace ChatAgentUpdateParams {
|
|
|
1244
1483
|
*/
|
|
1245
1484
|
type: 'string';
|
|
1246
1485
|
|
|
1486
|
+
/**
|
|
1487
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1488
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1489
|
+
* this is ignored.
|
|
1490
|
+
*/
|
|
1491
|
+
conditional_prompt?: string;
|
|
1492
|
+
|
|
1247
1493
|
/**
|
|
1248
1494
|
* Examples of the variable value to teach model the style and syntax.
|
|
1249
1495
|
*/
|
|
@@ -1277,6 +1523,13 @@ export namespace ChatAgentUpdateParams {
|
|
|
1277
1523
|
*/
|
|
1278
1524
|
type: 'enum';
|
|
1279
1525
|
|
|
1526
|
+
/**
|
|
1527
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1528
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1529
|
+
* this is ignored.
|
|
1530
|
+
*/
|
|
1531
|
+
conditional_prompt?: string;
|
|
1532
|
+
|
|
1280
1533
|
/**
|
|
1281
1534
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
1282
1535
|
* will be marked as unsuccessful.
|
|
@@ -1300,6 +1553,13 @@ export namespace ChatAgentUpdateParams {
|
|
|
1300
1553
|
*/
|
|
1301
1554
|
type: 'boolean';
|
|
1302
1555
|
|
|
1556
|
+
/**
|
|
1557
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1558
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1559
|
+
* this is ignored.
|
|
1560
|
+
*/
|
|
1561
|
+
conditional_prompt?: string;
|
|
1562
|
+
|
|
1303
1563
|
/**
|
|
1304
1564
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
1305
1565
|
* will be marked as unsuccessful.
|
|
@@ -1323,6 +1583,13 @@ export namespace ChatAgentUpdateParams {
|
|
|
1323
1583
|
*/
|
|
1324
1584
|
type: 'number';
|
|
1325
1585
|
|
|
1586
|
+
/**
|
|
1587
|
+
* Optional instruction to help decide whether this field needs to be populated in
|
|
1588
|
+
* the analysis. If not set, the field is always included. If required is true,
|
|
1589
|
+
* this is ignored.
|
|
1590
|
+
*/
|
|
1591
|
+
conditional_prompt?: string;
|
|
1592
|
+
|
|
1326
1593
|
/**
|
|
1327
1594
|
* Whether this data is required. If true and the data is not extracted, the call
|
|
1328
1595
|
* will be marked as unsuccessful.
|
|
@@ -1330,6 +1597,39 @@ export namespace ChatAgentUpdateParams {
|
|
|
1330
1597
|
required?: boolean;
|
|
1331
1598
|
}
|
|
1332
1599
|
|
|
1600
|
+
/**
|
|
1601
|
+
* System preset for post-chat analysis (chat agents). Use in
|
|
1602
|
+
* post_chat_analysis_data to override prompts or mark fields optional.
|
|
1603
|
+
*/
|
|
1604
|
+
export interface ChatPresetAnalysisData {
|
|
1605
|
+
/**
|
|
1606
|
+
* Preset identifier for chat agent analysis.
|
|
1607
|
+
*/
|
|
1608
|
+
name: 'chat_summary' | 'chat_successful' | 'user_sentiment';
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* Identifies this item as a system preset.
|
|
1612
|
+
*/
|
|
1613
|
+
type: 'system-presets';
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* Optional instruction to help decide whether this field needs to be populated. If
|
|
1617
|
+
* not set, the field is always included.
|
|
1618
|
+
*/
|
|
1619
|
+
conditional_prompt?: string;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Prompt or description for this preset.
|
|
1623
|
+
*/
|
|
1624
|
+
description?: string;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* If false, this field is optional in the analysis. If true or unset, the field is
|
|
1628
|
+
* required.
|
|
1629
|
+
*/
|
|
1630
|
+
required?: boolean;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1333
1633
|
export interface ResponseEngineRetellLm {
|
|
1334
1634
|
/**
|
|
1335
1635
|
* id of the Retell LLM Response Engine.
|