Edit AI Toolbox Settings
Edit the AI toolbox settings.
Request URL
POST {base_url}/{api_path}/ai_toolbox/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| enable_tts | No | Integer | Whether to enable Text-to-Speech (TTS). Valid value:
|
| llm_provider | No | String | The Large Language Model (LLM) provider. Valid value:
|
| llm_model | No | String | The name of the LLM model. Note:
|
| llm_api_key | No | String | The API key for the LLM provider, encoded in Base64. |
| enable_voicemail_transcription | No | Integer | Whether to enable voicemail transcription. Valid value:
|
| voicemail_transcription_language | No | String | The language for voicemail transcription. |
| auto_detect_language | No | String | The languages available for automatic language detection in voicemail transcription. |
| voicemail_grant_type | No | String | The extensions allowed to use voicemail transcription. Valid value:
|
| allowed_voicemail_entities | No | Array<Allowed_List> | The list of extensions allowed to use voicemail transcription. Note: This parameter takes effect when
voicemail_grant_type is set to
specific. |
| vm_transcription_type | No | String | The type of voicemail transcription service. Valid value:
|
| vm_transcription_provider | No | String | The provider of voicemail transcription service. Note: This parameter takes effect when vm_transcription_type is set to
custom.Valid value:
|
| vm_transcription_region | No | String | The server region of the voicemail transcription service. Valid value for AWS:
Valid value for Google:
|
| vm_transcription_api_id | No | String | The API ID for the voicemail transcription service, encoded in Base64. |
| vm_transcription_api_key | No | String | The API key for the voicemail transcription service, encoded in Base64. |
| vm_transcription_api_key_filename | No | String | The filename of the Google service account credential file for voicemail transcription. |
| vm_transcription_model | No | String | The model used for voicemail transcription with OpenAI. Valid
value:
|
| enable_call_transcription | No | Integer | Whether to enable call transcription. Valid value:
|
| call_transcription_type | No | String | The type of call transcription service. Valid value:
|
| call_transcription_provider | No | String | The provider of call transcription service. Note: This
parameter takes effect when call_transcription_type is set to
custom.Valid value:
|
| call_transcription_region | No | String | The server region of call transcription service. Valid value for AWS:
Valid value for Google:
|
| call_transcription_api_id | No | String | The API ID for call transcription service, encoded in Base64. |
| call_transcription_api_key | No | String | The API key for call transcription service, encoded in Base64. |
| call_transcription_api_key_filename | No | String | The filename of the Google service account credential file for call transcription. |
| call_transcription_language | No | String | The language used for call transcription. |
| call_transcription_model | No | String | The model used for call transcription. Valid value:
|
| call_transcription_auto_detect_language | No | String | The languages available for automatic language detection in call transcription. |
| call_grant_type | No | String | The extensions allowed to use call transcription. Valid value:
|
| allowed_call_entities | No | Array<Allowed_List> | The list of extensions allowed to use call transcription. Note: This parameter takes effect when
call_grant_type is set to
specific. |
| enable_play_transcription_prompt | No | Integer | Whether to play a prompt to notify both parties that the call is being
transcribed. Valid value:
|
| transcription_prompt_call_types | No | String | The call types for which the transcription notification prompt is played. Note: This parameter takes effect when
enable_play_transcription_prompt is set to
1.Valid value:
|
| allowed_direct_ext_entities | No | Array<Allowed_List> | The extensions for which automatic call transcription is enabled for inbound calls. |
| allowed_queue_entities | No | Array<Allowed_List> | The queues for which automatic call transcription is enabled for inbound calls. |
| allowed_ring_group_entities | No | Array<Allowed_List> | The ring groups for which automatic call transcription is enabled for inbound calls. |
| allowed_trunk_entities | No | Array<Allowed_List> | The trunks for which automatic call transcription is enabled for inbound calls. |
- Allowed_List
-
Parameter Type Description value String The ID of the object in the list. Note: You can obtain the corresponding IDs using the following interfaces:
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Example
Request example
POST /openapi/v1.0/ai_toolbox/update?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"enable_play_transcription_prompt": 1
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}