retell-sdk 5.36.0 → 5.38.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 +24 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +98 -100
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +98 -100
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +1 -4
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +1 -4
- package/resources/agent.mjs.map +1 -1
- package/resources/batch-call.d.mts +31 -32
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +31 -32
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +141 -100
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +141 -100
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +18 -50
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +18 -50
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat-agent.js +1 -4
- package/resources/chat-agent.js.map +1 -1
- package/resources/chat-agent.mjs +1 -4
- package/resources/chat-agent.mjs.map +1 -1
- package/resources/tests.d.mts +4 -2
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +4 -2
- package/resources/tests.d.ts.map +1 -1
- package/src/resources/agent.ts +147 -115
- package/src/resources/batch-call.ts +47 -37
- package/src/resources/call.ts +194 -115
- package/src/resources/chat-agent.ts +22 -59
- package/src/resources/tests.ts +4 -2
- 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/src/resources/agent.ts
CHANGED
|
@@ -47,10 +47,7 @@ export class Agent extends APIResource {
|
|
|
47
47
|
/**
|
|
48
48
|
* List all agents
|
|
49
49
|
*
|
|
50
|
-
* @
|
|
51
|
-
* ```ts
|
|
52
|
-
* const agentResponses = await client.agent.list();
|
|
53
|
-
* ```
|
|
50
|
+
* @deprecated
|
|
54
51
|
*/
|
|
55
52
|
list(
|
|
56
53
|
query: AgentListParams | null | undefined = {},
|
|
@@ -251,26 +248,6 @@ export interface AgentResponse {
|
|
|
251
248
|
*/
|
|
252
249
|
ambient_sound_volume?: number;
|
|
253
250
|
|
|
254
|
-
/**
|
|
255
|
-
* Prompt to determine whether the post call or chat analysis should mark the
|
|
256
|
-
* interaction as successful. Set to null to use the default prompt.
|
|
257
|
-
*/
|
|
258
|
-
analysis_successful_prompt?: string | null;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
262
|
-
* When unset, the default system prompt is used. Set to null to use the default
|
|
263
|
-
* prompt.
|
|
264
|
-
*/
|
|
265
|
-
analysis_summary_prompt?: string | null;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Prompt to guide how the post call or chat analysis should evaluate user
|
|
269
|
-
* sentiment. When unset, the default system prompt is used. Set to null to use the
|
|
270
|
-
* default prompt.
|
|
271
|
-
*/
|
|
272
|
-
analysis_user_sentiment_prompt?: string | null;
|
|
273
|
-
|
|
274
251
|
/**
|
|
275
252
|
* Tags assigned to this agent version. Preferred tag is listed first.
|
|
276
253
|
*/
|
|
@@ -373,12 +350,45 @@ export interface AgentResponse {
|
|
|
373
350
|
*/
|
|
374
351
|
enable_dynamic_voice_speed?: boolean;
|
|
375
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Master toggle for expressive mode. When true, the agent may add expressive voice
|
|
355
|
+
* tags to the audio it generates. Only applicable for platform voices. If unset,
|
|
356
|
+
* defaults to false.
|
|
357
|
+
*/
|
|
358
|
+
enable_expressive_mode?: boolean;
|
|
359
|
+
|
|
376
360
|
/**
|
|
377
361
|
* If users stay silent for a period after agent speech, end the call. The minimum
|
|
378
362
|
* value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
|
|
379
363
|
*/
|
|
380
364
|
end_call_after_silence_ms?: number;
|
|
381
365
|
|
|
366
|
+
/**
|
|
367
|
+
* The expressive voice tags Retell pre-teaches the model to use when
|
|
368
|
+
* enable_expressive_mode is true. Custom tags defined in the system prompt are
|
|
369
|
+
* still allowed. If empty, the agent follows general expressive guidance without a
|
|
370
|
+
* fixed tag set.
|
|
371
|
+
*/
|
|
372
|
+
expressive_emotion_tags?: Array<
|
|
373
|
+
| 'empathetic'
|
|
374
|
+
| 'excited'
|
|
375
|
+
| 'happy'
|
|
376
|
+
| 'curious'
|
|
377
|
+
| 'surprised'
|
|
378
|
+
| 'sigh'
|
|
379
|
+
| 'clear throat'
|
|
380
|
+
| 'pause'
|
|
381
|
+
| 'long pause'
|
|
382
|
+
| 'emphasis'
|
|
383
|
+
>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Custom expressive voice guidance to use instead of the default Retell expressive
|
|
387
|
+
* prompt when enable_expressive_mode is true. If omitted or blank, the default
|
|
388
|
+
* expressive prompt will be used.
|
|
389
|
+
*/
|
|
390
|
+
expressive_mode_prompt?: string | null;
|
|
391
|
+
|
|
382
392
|
/**
|
|
383
393
|
* When TTS provider for the selected voice is experiencing outages, we would use
|
|
384
394
|
* fallback voices listed here for the agent. Voice id and the fallback voice ids
|
|
@@ -680,6 +690,11 @@ export interface AgentResponse {
|
|
|
680
690
|
*/
|
|
681
691
|
version_description?: string | null;
|
|
682
692
|
|
|
693
|
+
/**
|
|
694
|
+
* Optional title of the agent version. Used for your own reference.
|
|
695
|
+
*/
|
|
696
|
+
version_title?: string | null;
|
|
697
|
+
|
|
683
698
|
/**
|
|
684
699
|
* If set, determines the vocabulary set to use for transcription. This setting
|
|
685
700
|
* only applies for English agents, for non English agent, this setting is a no-op.
|
|
@@ -732,21 +747,6 @@ export interface AgentResponse {
|
|
|
732
747
|
*/
|
|
733
748
|
voice_temperature?: number;
|
|
734
749
|
|
|
735
|
-
/**
|
|
736
|
-
* Configures when to stop running voicemail detection, as it becomes unlikely to
|
|
737
|
-
* hit voicemail after a couple minutes, and keep running it will only have
|
|
738
|
-
* negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
|
|
739
|
-
* allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
740
|
-
*/
|
|
741
|
-
voicemail_detection_timeout_ms?: number;
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* The message to be played when the call enters a voicemail. Note that this
|
|
745
|
-
* feature is only available for phone calls. If you want to hangup after hitting
|
|
746
|
-
* voicemail, set this to empty string.
|
|
747
|
-
*/
|
|
748
|
-
voicemail_message?: string;
|
|
749
|
-
|
|
750
750
|
/**
|
|
751
751
|
* If this option is set, the call will try to detect voicemail in the first 3
|
|
752
752
|
* minutes of the call. Actions defined (hangup, or leave a message) will be
|
|
@@ -864,14 +864,14 @@ export namespace AgentResponse {
|
|
|
864
864
|
export interface CustomSttConfig {
|
|
865
865
|
/**
|
|
866
866
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
867
|
-
* 500 for Soniox
|
|
867
|
+
* 500 for Soniox, 100 for AssemblyAI.
|
|
868
868
|
*/
|
|
869
869
|
endpointing_ms: number;
|
|
870
870
|
|
|
871
871
|
/**
|
|
872
872
|
* ASR provider name.
|
|
873
873
|
*/
|
|
874
|
-
provider: 'azure' | 'deepgram' | 'soniox';
|
|
874
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
/**
|
|
@@ -912,6 +912,13 @@ export namespace AgentResponse {
|
|
|
912
912
|
*/
|
|
913
913
|
ai_disclosure?: boolean;
|
|
914
914
|
|
|
915
|
+
/**
|
|
916
|
+
* Enables Conversational Personality. When true, the agent uses the Conversational
|
|
917
|
+
* Personality handbook preset, skips Professional Rep Personality during prompt
|
|
918
|
+
* assembly, and enables internal colloquial rewrite behavior.
|
|
919
|
+
*/
|
|
920
|
+
conversational_personality?: boolean;
|
|
921
|
+
|
|
915
922
|
/**
|
|
916
923
|
* Professional call center rep baseline.
|
|
917
924
|
*/
|
|
@@ -1335,26 +1342,6 @@ export interface AgentCreateParams {
|
|
|
1335
1342
|
*/
|
|
1336
1343
|
ambient_sound_volume?: number;
|
|
1337
1344
|
|
|
1338
|
-
/**
|
|
1339
|
-
* Prompt to determine whether the post call or chat analysis should mark the
|
|
1340
|
-
* interaction as successful. Set to null to use the default prompt.
|
|
1341
|
-
*/
|
|
1342
|
-
analysis_successful_prompt?: string | null;
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
1346
|
-
* When unset, the default system prompt is used. Set to null to use the default
|
|
1347
|
-
* prompt.
|
|
1348
|
-
*/
|
|
1349
|
-
analysis_summary_prompt?: string | null;
|
|
1350
|
-
|
|
1351
|
-
/**
|
|
1352
|
-
* Prompt to guide how the post call or chat analysis should evaluate user
|
|
1353
|
-
* sentiment. When unset, the default system prompt is used. Set to null to use the
|
|
1354
|
-
* default prompt.
|
|
1355
|
-
*/
|
|
1356
|
-
analysis_user_sentiment_prompt?: string | null;
|
|
1357
|
-
|
|
1358
1345
|
/**
|
|
1359
1346
|
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
1360
1347
|
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
@@ -1447,12 +1434,45 @@ export interface AgentCreateParams {
|
|
|
1447
1434
|
*/
|
|
1448
1435
|
enable_dynamic_voice_speed?: boolean;
|
|
1449
1436
|
|
|
1437
|
+
/**
|
|
1438
|
+
* Master toggle for expressive mode. When true, the agent may add expressive voice
|
|
1439
|
+
* tags to the audio it generates. Only applicable for platform voices. If unset,
|
|
1440
|
+
* defaults to false.
|
|
1441
|
+
*/
|
|
1442
|
+
enable_expressive_mode?: boolean;
|
|
1443
|
+
|
|
1450
1444
|
/**
|
|
1451
1445
|
* If users stay silent for a period after agent speech, end the call. The minimum
|
|
1452
1446
|
* value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
|
|
1453
1447
|
*/
|
|
1454
1448
|
end_call_after_silence_ms?: number;
|
|
1455
1449
|
|
|
1450
|
+
/**
|
|
1451
|
+
* The expressive voice tags Retell pre-teaches the model to use when
|
|
1452
|
+
* enable_expressive_mode is true. Custom tags defined in the system prompt are
|
|
1453
|
+
* still allowed. If empty, the agent follows general expressive guidance without a
|
|
1454
|
+
* fixed tag set.
|
|
1455
|
+
*/
|
|
1456
|
+
expressive_emotion_tags?: Array<
|
|
1457
|
+
| 'empathetic'
|
|
1458
|
+
| 'excited'
|
|
1459
|
+
| 'happy'
|
|
1460
|
+
| 'curious'
|
|
1461
|
+
| 'surprised'
|
|
1462
|
+
| 'sigh'
|
|
1463
|
+
| 'clear throat'
|
|
1464
|
+
| 'pause'
|
|
1465
|
+
| 'long pause'
|
|
1466
|
+
| 'emphasis'
|
|
1467
|
+
>;
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Custom expressive voice guidance to use instead of the default Retell expressive
|
|
1471
|
+
* prompt when enable_expressive_mode is true. If omitted or blank, the default
|
|
1472
|
+
* expressive prompt will be used.
|
|
1473
|
+
*/
|
|
1474
|
+
expressive_mode_prompt?: string | null;
|
|
1475
|
+
|
|
1456
1476
|
/**
|
|
1457
1477
|
* When TTS provider for the selected voice is experiencing outages, we would use
|
|
1458
1478
|
* fallback voices listed here for the agent. Voice id and the fallback voice ids
|
|
@@ -1749,6 +1769,11 @@ export interface AgentCreateParams {
|
|
|
1749
1769
|
*/
|
|
1750
1770
|
version_description?: string | null;
|
|
1751
1771
|
|
|
1772
|
+
/**
|
|
1773
|
+
* Optional title of the agent version. Used for your own reference.
|
|
1774
|
+
*/
|
|
1775
|
+
version_title?: string | null;
|
|
1776
|
+
|
|
1752
1777
|
/**
|
|
1753
1778
|
* If set, determines the vocabulary set to use for transcription. This setting
|
|
1754
1779
|
* only applies for English agents, for non English agent, this setting is a no-op.
|
|
@@ -1801,21 +1826,6 @@ export interface AgentCreateParams {
|
|
|
1801
1826
|
*/
|
|
1802
1827
|
voice_temperature?: number;
|
|
1803
1828
|
|
|
1804
|
-
/**
|
|
1805
|
-
* Configures when to stop running voicemail detection, as it becomes unlikely to
|
|
1806
|
-
* hit voicemail after a couple minutes, and keep running it will only have
|
|
1807
|
-
* negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
|
|
1808
|
-
* allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
1809
|
-
*/
|
|
1810
|
-
voicemail_detection_timeout_ms?: number;
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* The message to be played when the call enters a voicemail. Note that this
|
|
1814
|
-
* feature is only available for phone calls. If you want to hangup after hitting
|
|
1815
|
-
* voicemail, set this to empty string.
|
|
1816
|
-
*/
|
|
1817
|
-
voicemail_message?: string;
|
|
1818
|
-
|
|
1819
1829
|
/**
|
|
1820
1830
|
* If this option is set, the call will try to detect voicemail in the first 3
|
|
1821
1831
|
* minutes of the call. Actions defined (hangup, or leave a message) will be
|
|
@@ -1933,14 +1943,14 @@ export namespace AgentCreateParams {
|
|
|
1933
1943
|
export interface CustomSttConfig {
|
|
1934
1944
|
/**
|
|
1935
1945
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
1936
|
-
* 500 for Soniox
|
|
1946
|
+
* 500 for Soniox, 100 for AssemblyAI.
|
|
1937
1947
|
*/
|
|
1938
1948
|
endpointing_ms: number;
|
|
1939
1949
|
|
|
1940
1950
|
/**
|
|
1941
1951
|
* ASR provider name.
|
|
1942
1952
|
*/
|
|
1943
|
-
provider: 'azure' | 'deepgram' | 'soniox';
|
|
1953
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
1944
1954
|
}
|
|
1945
1955
|
|
|
1946
1956
|
/**
|
|
@@ -1981,6 +1991,13 @@ export namespace AgentCreateParams {
|
|
|
1981
1991
|
*/
|
|
1982
1992
|
ai_disclosure?: boolean;
|
|
1983
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* Enables Conversational Personality. When true, the agent uses the Conversational
|
|
1996
|
+
* Personality handbook preset, skips Professional Rep Personality during prompt
|
|
1997
|
+
* assembly, and enables internal colloquial rewrite behavior.
|
|
1998
|
+
*/
|
|
1999
|
+
conversational_personality?: boolean;
|
|
2000
|
+
|
|
1984
2001
|
/**
|
|
1985
2002
|
* Professional call center rep baseline.
|
|
1986
2003
|
*/
|
|
@@ -2423,26 +2440,6 @@ export interface AgentUpdateParams {
|
|
|
2423
2440
|
*/
|
|
2424
2441
|
ambient_sound_volume?: number;
|
|
2425
2442
|
|
|
2426
|
-
/**
|
|
2427
|
-
* Body param: Prompt to determine whether the post call or chat analysis should
|
|
2428
|
-
* mark the interaction as successful. Set to null to use the default prompt.
|
|
2429
|
-
*/
|
|
2430
|
-
analysis_successful_prompt?: string | null;
|
|
2431
|
-
|
|
2432
|
-
/**
|
|
2433
|
-
* Body param: Prompt to guide how the post call or chat analysis summary should be
|
|
2434
|
-
* generated. When unset, the default system prompt is used. Set to null to use the
|
|
2435
|
-
* default prompt.
|
|
2436
|
-
*/
|
|
2437
|
-
analysis_summary_prompt?: string | null;
|
|
2438
|
-
|
|
2439
|
-
/**
|
|
2440
|
-
* Body param: Prompt to guide how the post call or chat analysis should evaluate
|
|
2441
|
-
* user sentiment. When unset, the default system prompt is used. Set to null to
|
|
2442
|
-
* use the default prompt.
|
|
2443
|
-
*/
|
|
2444
|
-
analysis_user_sentiment_prompt?: string | null;
|
|
2445
|
-
|
|
2446
2443
|
/**
|
|
2447
2444
|
* Body param: Only applicable when enable_backchannel is true. Controls how often
|
|
2448
2445
|
* the agent would backchannel when a backchannel is possible. Value ranging from
|
|
@@ -2537,6 +2534,13 @@ export interface AgentUpdateParams {
|
|
|
2537
2534
|
*/
|
|
2538
2535
|
enable_dynamic_voice_speed?: boolean;
|
|
2539
2536
|
|
|
2537
|
+
/**
|
|
2538
|
+
* Body param: Master toggle for expressive mode. When true, the agent may add
|
|
2539
|
+
* expressive voice tags to the audio it generates. Only applicable for platform
|
|
2540
|
+
* voices. If unset, defaults to false.
|
|
2541
|
+
*/
|
|
2542
|
+
enable_expressive_mode?: boolean;
|
|
2543
|
+
|
|
2540
2544
|
/**
|
|
2541
2545
|
* Body param: If users stay silent for a period after agent speech, end the call.
|
|
2542
2546
|
* The minimum value allowed is 10,000 ms (10 s). By default, this is set to 600000
|
|
@@ -2544,6 +2548,32 @@ export interface AgentUpdateParams {
|
|
|
2544
2548
|
*/
|
|
2545
2549
|
end_call_after_silence_ms?: number;
|
|
2546
2550
|
|
|
2551
|
+
/**
|
|
2552
|
+
* Body param: The expressive voice tags Retell pre-teaches the model to use when
|
|
2553
|
+
* enable_expressive_mode is true. Custom tags defined in the system prompt are
|
|
2554
|
+
* still allowed. If empty, the agent follows general expressive guidance without a
|
|
2555
|
+
* fixed tag set.
|
|
2556
|
+
*/
|
|
2557
|
+
expressive_emotion_tags?: Array<
|
|
2558
|
+
| 'empathetic'
|
|
2559
|
+
| 'excited'
|
|
2560
|
+
| 'happy'
|
|
2561
|
+
| 'curious'
|
|
2562
|
+
| 'surprised'
|
|
2563
|
+
| 'sigh'
|
|
2564
|
+
| 'clear throat'
|
|
2565
|
+
| 'pause'
|
|
2566
|
+
| 'long pause'
|
|
2567
|
+
| 'emphasis'
|
|
2568
|
+
>;
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Body param: Custom expressive voice guidance to use instead of the default
|
|
2572
|
+
* Retell expressive prompt when enable_expressive_mode is true. If omitted or
|
|
2573
|
+
* blank, the default expressive prompt will be used.
|
|
2574
|
+
*/
|
|
2575
|
+
expressive_mode_prompt?: string | null;
|
|
2576
|
+
|
|
2547
2577
|
/**
|
|
2548
2578
|
* Body param: When TTS provider for the selected voice is experiencing outages, we
|
|
2549
2579
|
* would use fallback voices listed here for the agent. Voice id and the fallback
|
|
@@ -2856,6 +2886,11 @@ export interface AgentUpdateParams {
|
|
|
2856
2886
|
*/
|
|
2857
2887
|
version_description?: string | null;
|
|
2858
2888
|
|
|
2889
|
+
/**
|
|
2890
|
+
* Body param: Optional title of the agent version. Used for your own reference.
|
|
2891
|
+
*/
|
|
2892
|
+
version_title?: string | null;
|
|
2893
|
+
|
|
2859
2894
|
/**
|
|
2860
2895
|
* Body param: If set, determines the vocabulary set to use for transcription. This
|
|
2861
2896
|
* setting only applies for English agents, for non English agent, this setting is
|
|
@@ -2916,21 +2951,6 @@ export interface AgentUpdateParams {
|
|
|
2916
2951
|
*/
|
|
2917
2952
|
voice_temperature?: number;
|
|
2918
2953
|
|
|
2919
|
-
/**
|
|
2920
|
-
* Body param: Configures when to stop running voicemail detection, as it becomes
|
|
2921
|
-
* unlikely to hit voicemail after a couple minutes, and keep running it will only
|
|
2922
|
-
* have negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum
|
|
2923
|
-
* value allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
2924
|
-
*/
|
|
2925
|
-
voicemail_detection_timeout_ms?: number;
|
|
2926
|
-
|
|
2927
|
-
/**
|
|
2928
|
-
* Body param: The message to be played when the call enters a voicemail. Note that
|
|
2929
|
-
* this feature is only available for phone calls. If you want to hangup after
|
|
2930
|
-
* hitting voicemail, set this to empty string.
|
|
2931
|
-
*/
|
|
2932
|
-
voicemail_message?: string;
|
|
2933
|
-
|
|
2934
2954
|
/**
|
|
2935
2955
|
* Body param: If this option is set, the call will try to detect voicemail in the
|
|
2936
2956
|
* first 3 minutes of the call. Actions defined (hangup, or leave a message) will
|
|
@@ -3002,14 +3022,14 @@ export namespace AgentUpdateParams {
|
|
|
3002
3022
|
export interface CustomSttConfig {
|
|
3003
3023
|
/**
|
|
3004
3024
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
3005
|
-
* 500 for Soniox
|
|
3025
|
+
* 500 for Soniox, 100 for AssemblyAI.
|
|
3006
3026
|
*/
|
|
3007
3027
|
endpointing_ms: number;
|
|
3008
3028
|
|
|
3009
3029
|
/**
|
|
3010
3030
|
* ASR provider name.
|
|
3011
3031
|
*/
|
|
3012
|
-
provider: 'azure' | 'deepgram' | 'soniox';
|
|
3032
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
3013
3033
|
}
|
|
3014
3034
|
|
|
3015
3035
|
/**
|
|
@@ -3050,6 +3070,13 @@ export namespace AgentUpdateParams {
|
|
|
3050
3070
|
*/
|
|
3051
3071
|
ai_disclosure?: boolean;
|
|
3052
3072
|
|
|
3073
|
+
/**
|
|
3074
|
+
* Enables Conversational Personality. When true, the agent uses the Conversational
|
|
3075
|
+
* Personality handbook preset, skips Professional Rep Personality during prompt
|
|
3076
|
+
* assembly, and enables internal colloquial rewrite behavior.
|
|
3077
|
+
*/
|
|
3078
|
+
conversational_personality?: boolean;
|
|
3079
|
+
|
|
3053
3080
|
/**
|
|
3054
3081
|
* Professional call center rep baseline.
|
|
3055
3082
|
*/
|
|
@@ -3447,6 +3474,11 @@ export interface AgentPublishParams {
|
|
|
3447
3474
|
version: number;
|
|
3448
3475
|
|
|
3449
3476
|
version_description?: string;
|
|
3477
|
+
|
|
3478
|
+
/**
|
|
3479
|
+
* Optional title of the agent version. Used for your own reference.
|
|
3480
|
+
*/
|
|
3481
|
+
version_title?: string;
|
|
3450
3482
|
}
|
|
3451
3483
|
|
|
3452
3484
|
export interface AgentCreateVersionParams {
|
|
@@ -280,26 +280,6 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
280
280
|
*/
|
|
281
281
|
ambient_sound_volume?: number;
|
|
282
282
|
|
|
283
|
-
/**
|
|
284
|
-
* Prompt to determine whether the post call or chat analysis should mark the
|
|
285
|
-
* interaction as successful. Set to null to use the default prompt.
|
|
286
|
-
*/
|
|
287
|
-
analysis_successful_prompt?: string | null;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Prompt to guide how the post call or chat analysis summary should be generated.
|
|
291
|
-
* When unset, the default system prompt is used. Set to null to use the default
|
|
292
|
-
* prompt.
|
|
293
|
-
*/
|
|
294
|
-
analysis_summary_prompt?: string | null;
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* Prompt to guide how the post call or chat analysis should evaluate user
|
|
298
|
-
* sentiment. When unset, the default system prompt is used. Set to null to use the
|
|
299
|
-
* default prompt.
|
|
300
|
-
*/
|
|
301
|
-
analysis_user_sentiment_prompt?: string | null;
|
|
302
|
-
|
|
303
283
|
/**
|
|
304
284
|
* Only applicable when enable_backchannel is true. Controls how often the agent
|
|
305
285
|
* would backchannel when a backchannel is possible. Value ranging from [0,1].
|
|
@@ -392,12 +372,45 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
392
372
|
*/
|
|
393
373
|
enable_dynamic_voice_speed?: boolean;
|
|
394
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Master toggle for expressive mode. When true, the agent may add expressive voice
|
|
377
|
+
* tags to the audio it generates. Only applicable for platform voices. If unset,
|
|
378
|
+
* defaults to false.
|
|
379
|
+
*/
|
|
380
|
+
enable_expressive_mode?: boolean;
|
|
381
|
+
|
|
395
382
|
/**
|
|
396
383
|
* If users stay silent for a period after agent speech, end the call. The minimum
|
|
397
384
|
* value allowed is 10,000 ms (10 s). By default, this is set to 600000 (10 min).
|
|
398
385
|
*/
|
|
399
386
|
end_call_after_silence_ms?: number;
|
|
400
387
|
|
|
388
|
+
/**
|
|
389
|
+
* The expressive voice tags Retell pre-teaches the model to use when
|
|
390
|
+
* enable_expressive_mode is true. Custom tags defined in the system prompt are
|
|
391
|
+
* still allowed. If empty, the agent follows general expressive guidance without a
|
|
392
|
+
* fixed tag set.
|
|
393
|
+
*/
|
|
394
|
+
expressive_emotion_tags?: Array<
|
|
395
|
+
| 'empathetic'
|
|
396
|
+
| 'excited'
|
|
397
|
+
| 'happy'
|
|
398
|
+
| 'curious'
|
|
399
|
+
| 'surprised'
|
|
400
|
+
| 'sigh'
|
|
401
|
+
| 'clear throat'
|
|
402
|
+
| 'pause'
|
|
403
|
+
| 'long pause'
|
|
404
|
+
| 'emphasis'
|
|
405
|
+
>;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Custom expressive voice guidance to use instead of the default Retell expressive
|
|
409
|
+
* prompt when enable_expressive_mode is true. If omitted or blank, the default
|
|
410
|
+
* expressive prompt will be used.
|
|
411
|
+
*/
|
|
412
|
+
expressive_mode_prompt?: string | null;
|
|
413
|
+
|
|
401
414
|
/**
|
|
402
415
|
* When TTS provider for the selected voice is experiencing outages, we would use
|
|
403
416
|
* fallback voices listed here for the agent. Voice id and the fallback voice ids
|
|
@@ -704,6 +717,11 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
704
717
|
*/
|
|
705
718
|
version_description?: string | null;
|
|
706
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Optional title of the agent version. Used for your own reference.
|
|
722
|
+
*/
|
|
723
|
+
version_title?: string | null;
|
|
724
|
+
|
|
707
725
|
/**
|
|
708
726
|
* If set, determines the vocabulary set to use for transcription. This setting
|
|
709
727
|
* only applies for English agents, for non English agent, this setting is a no-op.
|
|
@@ -762,21 +780,6 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
762
780
|
*/
|
|
763
781
|
voice_temperature?: number;
|
|
764
782
|
|
|
765
|
-
/**
|
|
766
|
-
* Configures when to stop running voicemail detection, as it becomes unlikely to
|
|
767
|
-
* hit voicemail after a couple minutes, and keep running it will only have
|
|
768
|
-
* negative impact. The minimum value allowed is 5,000 ms (5 s), and maximum value
|
|
769
|
-
* allowed is 180,000 (3 minutes). By default, this is set to 30,000 (30 s).
|
|
770
|
-
*/
|
|
771
|
-
voicemail_detection_timeout_ms?: number;
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* The message to be played when the call enters a voicemail. Note that this
|
|
775
|
-
* feature is only available for phone calls. If you want to hangup after hitting
|
|
776
|
-
* voicemail, set this to empty string.
|
|
777
|
-
*/
|
|
778
|
-
voicemail_message?: string;
|
|
779
|
-
|
|
780
783
|
/**
|
|
781
784
|
* If this option is set, the call will try to detect voicemail in the first 3
|
|
782
785
|
* minutes of the call. Actions defined (hangup, or leave a message) will be
|
|
@@ -848,14 +851,14 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
848
851
|
export interface CustomSttConfig {
|
|
849
852
|
/**
|
|
850
853
|
* Endpointing timeout in milliseconds. Minimum is 100 for Azure, 10 for Deepgram,
|
|
851
|
-
* 500 for Soniox
|
|
854
|
+
* 500 for Soniox, 100 for AssemblyAI.
|
|
852
855
|
*/
|
|
853
856
|
endpointing_ms: number;
|
|
854
857
|
|
|
855
858
|
/**
|
|
856
859
|
* ASR provider name.
|
|
857
860
|
*/
|
|
858
|
-
provider: 'azure' | 'deepgram' | 'soniox';
|
|
861
|
+
provider: 'azure' | 'deepgram' | 'soniox' | 'assemblyai';
|
|
859
862
|
}
|
|
860
863
|
|
|
861
864
|
/**
|
|
@@ -896,6 +899,13 @@ export namespace BatchCallCreateBatchCallParams {
|
|
|
896
899
|
*/
|
|
897
900
|
ai_disclosure?: boolean;
|
|
898
901
|
|
|
902
|
+
/**
|
|
903
|
+
* Enables Conversational Personality. When true, the agent uses the Conversational
|
|
904
|
+
* Personality handbook preset, skips Professional Rep Personality during prompt
|
|
905
|
+
* assembly, and enables internal colloquial rewrite behavior.
|
|
906
|
+
*/
|
|
907
|
+
conversational_personality?: boolean;
|
|
908
|
+
|
|
899
909
|
/**
|
|
900
910
|
* Professional call center rep baseline.
|
|
901
911
|
*/
|