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_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:
|
- 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: 192.168.5.150:8088
Content-Type: application/json
{
"enable_play_transcription_prompt": 1
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}