Create or Update Domain Properties
Creates or updates Unique Key (domain properties) for a domain. Unique Key is generated by combining the values of tenantId
+account
+domain
+environmentName
.
While using the PUT method, if the above combination is not available then it is considered as a new value and the properties are created.
If the above combination already exists then it is considered as an update operation and the given properties overwrite the existing properties of the given combination.
Note
The unique key is passed as a parameter in Twilio, Exotel and IVR connectors' web hook or endpoint during run time.
Endpoint
Method: PUT
URL: https://uselfserve<tenant-name>.uniphore.com/cse/connector/interactDomain
curl -X PUT "http://localhost:9902/connector/interactDomain" -H "accept: text/plain" -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d " { "account": "U_SS", "domain": "English-US-New", "virtualAgentName": "VA1", "applicationKey": "25e66bd-9c16-47d9-922c-a6115b3d90fd", "environmentName": "Dev", "tenantId": "U_SS", "orgId": 1, "recordOutboundCall": false, "sendDtmfWithPound": false, "dtmfTimeOut": 1.2, "defaultAsrContextGroup": "sys_yes_no", "playWaitMessage": false, "waitMessageUrl": "string", "languages": { "English-US": { "onUnknownError": "unexpected error occurred, please try again later", "onNoinputPrompts": [ "I didn'\''t catch that. Can you say it again?", "I still didn'\''t get that. Can you speak a little louder?" ], "onNoinputTermination": "Sorry, I'\''m having trouble hearing you right now. Please call back a little later. Good bye", "onReconnect": "I'\''m sorry, a technical error occurred. Let me reconnect you", "noInputTimeout": 8, "enableBargeIn": false, "useContextAsr": false, "ssmlsToBeCached": [], "pollySsmlsToBeCached": [], "asrProperties": { "url": "wss://localhost:o", "considerOnlyFinal": true, "bufferMultippliers": 8, "passThreshold": 0, "failThreshold": 0, "worldLevelThreshold": 0, "wordPassPercentage": 0 } } }, "processFirstMessage": false, "ttsTemplate": "Uniphore", "version": "1" }"
Warning
Do not change any Parameter Value when a call is in progress.
Header Parameter
Authorization - Bearer <Token>
Request Parameter
Parameter Name | Data Type | Description | Required/ Optional |
---|---|---|---|
| String | Account is provided to the user as a part of login credentials. Reach out to U-Self Serve Engineering Team to know the account. | Required |
| String | Application key is obtained from X‑Console. Refer to U-Self Serve Application Settings. | Required |
| String | Name of the VA/connector domain. | Required |
| Float | Sets the time the connector needs to wait between DTMF inputs. By default, 3 seconds is set as DTMF timeout, based on your requirement, the value can be changed.
| Required |
| Number | Name of the environment. Example: Development, Production. | Required |
| Number |
To know the | Required |
| Number | Organization id for this domain. This field is used to mapping between the domain and the organization properties Example: Twilio account and TTS subscription key configured for the organization. | Required |
| String | Name of virtual agent for the corresponding domain. This is used to fetch the ssml properties that are used in TTS caching. | Optional |
| String | Enter sys_yes_no, if any one language under this domain uses context ASR. | Optional |
| Boolean | Enter True if a message or audio to be played while waiting for a response otherwise enter False. NoteApplicable for Twilio connector with Microsoft TTS and Amazon Polly. | Optional |
| Boolean | There is no recording feature available in U-Self Serve. When the value is set as true, the outbound calls are recorded and recordings are available in the Twilio account. Exotel connector has in-built recording feature. | Required |
| String | The url of the audio file to be played while waiting for a response. Ensure the audio file is in audio/x-mulaw format with a sample rate of 8000 Hz. This parameter is required only when The url should be publicly accessible. For example, if the audio file is in Amazon S3 bucket, ensure the Permissions for Predefined ACLs is set as Grant public-read access. | Optional |
| String | The language code associated to the domain. Example: English-US, English-IN. Acts as a map (key values pairs) containing the information for each language. Each key is a language name and the value is an object which is listed below:
For more information, refer the respective parameter's description available in this table. | Required |
| Boolean | If you wish to use context ASR for the Domain and Language combination, Set the value as True. Default value is False. NoteCurrently Exotel connector supports context ASR. | Optional |
| List of String | The list of frequently used ssmls (with no slots or dynamic values) are configured in design flow, which can be cached for cost optimization. Copy the ssmls/responses configured in the design flow and enter in this parameter. This parameter is applicable for both Twilio and Exotel connector. NoteApplicable for Microsoft TTS only. | Optional |
| Boolean | When
| Optional |
| String | Enter the message to be prompted in case on unknown error occurs. | Required |
| Number | List of messages to be played if the user does not provide any input. Number of consecutive no input messages need to be played before disconnecting a call depends upon the size of this list. Example: If there are 2 messages then 2 consecutive no input prompts are permitted after which the call gets disconnected. | Required |
| String | Enter the message to be played when a call is terminated due to no input from the user. | Required |
| String | When a connector instance goes down, the calls connected to that instance is picked by another connector instance and the message entered is played out to the user before continuing the call. This is an exceptional case. | Required |
| Number | Enter No input timeout in seconds for voice input response. The application will wait for a voice input for the number of seconds mentioned in By default, 5 seconds is set as voice input timeout, based on your requirement, the value can be changed. NoteFor Twilio users, if DTMF is expected in a turn, then the | Required |
| Boolean | Enter True to enable barge in and False to disable barge in. When enableBargeIn is set to True and user barge into a conversation, the VA starts processing the user input immediately and stops playing its response. When enableBargeIn is set to False and user barge into a conversation, the VA ignores the user input and continue with its response. | Required |
| Object | Enter the values to overwrite the default ASR properties configured for a language. If you want to retain the default ASR for a language under this domain, remove this field or leave it as null. For more information, refer Create or Update ASR Properties for a Language. | Optional |
Example Request
{ "account": "U_SS", "domain": "English-US-New", "virtualAgentName": "VA1", "applicationKey": "25e66bd-9c16-47d9-922c-a6115b3d90fd", "environmentName": "Dev", "tenantId": "U_SS", "orgId": 1, "recordOutboundCall": false, "sendDtmfWithPound": false, "dtmfTimeOut": 1.2, "defaultAsrContextGroup": "sys_yes_no", "playWaitMessage": false, "waitMessageUrl": "string", "languages": { "English-US": { "onUnknownError": "unexpected error occurred, please try again later", "onNoinputPrompts": [ "I didn'\''t catch that. Can you say it again?", "I still didn'\''t get that. Can you speak a little louder?" ], "onNoinputTermination": "Sorry, I'\''m having trouble hearing you right now. Please call back a little later. Good bye", "onReconnect": "I'\''m sorry, a technical error occurred. Let me reconnect you", "noInputTimeout": 8, "enableBargeIn": false, "useContextAsr": false, "ssmlsToBeCached": [], "pollySsmlsToBeCached": [], "asrProperties": { "url": "wss://localhost:o", "considerOnlyFinal": true, "bufferMultippliers": 8, "passThreshold": 0, "failThreshold": 0, "worldLevelThreshold": 0, "wordPassPercentage": 0 } } }, "processFirstMessage": false, "ttsTemplate": "Uniphore", "version": "1" }"
Example Response
Once the API is executed, on success the Unique Key is generated and returned as response. The Unique key is the combination of tenantId
+account
+domain
+environmentName
.
U_SS_U_SS_English-US_New_Dev
Response Parameters | Value |
---|---|
| U_SS |
| U_SS |
| English-US_New |
| Dev |
Response and Error Codes
Response Code | Condition |
---|---|
200 | OK |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Sample Error |
Note: With the error codes, a summary containing the reason for failure is provided.