To save/import data which is one of (skillsGroups, Queues, StandardResponses, Waiting Experience) by giving details with account Id and org Id.
Method | POST |
Endpoint | http://{host}/agentassist/api/public/analytics/{instanceBotId}/ |
Content Type | application/json |
Authorization | auth: {{JWT}} See How to generate the JWT Token. |
APi Scope | SmartAssist Import and Export Feature |
Sample Request
curl --location 'https://{{host}}/agentassist/api/v1/public/analytics/st-9a5e4e7d-f540-5cb3-83ed-639cdc4dxxxx/importSmartAssistFunctionalities?accountId=6380a09712e4bb225cfxxxxx&orgId=o-c746bb05-0b76-5753-872d-f6cd4719xxxx&type=waitingExperience' \ --header 'Accept: application/json, text/plain, /' \ --header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ --header 'AccountId: 6380a09712e4bb225cf2xxxx' \ --header 'Cache-Control: no-cache' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json;charset=UTF-8' \ --header 'Pragma: no-cache' \ --header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36' \ --header 'X-Timezone: Asia/Calcutta' \ --header 'X-Timezone-Offset: -330' \ --header 'app-language: en' \ --header 'bot-language: en' \ --header 'sec-ch-ua-platform: "Linux"' \ --header 'smartassist: true' \ --header 'state: configured' \ --header 'auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXBwSWQiOiJjcy03NzIyYzI5Zi0wNzk1LTVmYjYtOTY2MS0xZjgyNThmYjA3MjQifQ.7mizbO7uEu68IKBjX7u-TpL-4Inl_AjSSIhWCtDxxxx' \ --header 'accountId: 6380a09712e4bb225cf2xxxx'
Body Parameters
Parameter | Description | Type |
---|---|---|
Data | The data that is to be imported. | String, Required |
MetaData.orgId | This field should have an orgId. | String, Required |
MetaData.accountId | This field should have an accountId. | String, Required |
MetaData.type | This field should have a type. | String, Required |
MetaData.userId | This field should have a userId. | String, Required |
Sample Response
[ { "status": "ACTIVE", "isDefault": true, "lname": "default waiting experience.", "configuration": { "description": "If no other wait experiences are defined or if contacts do not meet the conditions for other wait experiences, they will land into the default wait experience", "name": "Default Waiting Experience.", "routingRules": [] }, "callExperience": { "initialMessageSettings": { "locale": [ { "message": "Please hold while I find the right agent for you.", "language": "en", "isActive": true } ] }, "agentTransferMessageSettings": { "locale": [ { "message": "You are being transferred to another agent's queue. Please stand by.", "language": "en", "isActive": true } ] }, "holdAudio": { "name": "CantinaBand", "id": "667db6f93e9a1338e2cbxxxx" }, "periodicMessageSettings": { "duration": 30, "order": "RANDOM", "play_style": "LOOPED", "messages": [ { "order": 1, "locale": [ { "message": "All agents are currently busy with other customers. Your call is very important to us. Please continue to hold as I find the next available agent.", "language": "en", "isActive": true } ] }, { "order": 2, "locale": [ { "message": "All agents are currently busy. Please continue to hold for the next available agent.", "language": "en", "isActive": true } ] }, { "order": 3, "locale": [ { "message": "I apologize for the wait. All agents are busy with other customers. Please hold for the next available agent.", "language": "en", "isActive": true } ] } ] }, "chatDeflectionSettings": { "toneMap": 1, "estimatedWaitTime": 5, "timeToDeflect": 0.5, "locale": [ { "message": "Rather than waiting for a voice agent, it might be much faster to get an agent on chat to help you. If you would like to switch to chat, press 1 anytime during your wait and i can help you with that.", "language": "en", "isActive": true } ] }, "callBackSettings": { "toneMap": 2, "estimatedWaitTime": 10, "timeToCallBack": 1, "operationType": "OFFER", "locale": [ { "message": "Looks like it might take a while for an agent to become available. If you prefer, we could hold your place in the queue and call you back as soon as an agent becomes available. To choose the call back option, press 2 at anytime during your wait.", "language": "en", "isActive": true } ] }, "voiceMailSettings": { "locale": [ { "message": "", "language": "en", "isActive": true } ] }, "initialMessageEnabled": false, "agentTransferMessageEnabled": true, "periodicMessageEnabled": true, "chatDeflectionEnabled": true, "callBackEnabled": true, "voiceMailEnabled": false }, "chatExperience": { "initialMessageSettings": { "locale": [ { "message": "Please hold while I find the right agent for you", "language": "en", "isActive": true } ] }, "agentTransferMessageSettings": { "locale": [ { "message": "You are being transferred to another agent's queue. Please stand by.", "language": "en", "isActive": true } ] }, "periodicMessageSettings": { "duration": 10, "order": "RANDOM", "play_style": "LOOPED", "messages": [ { "order": 1, "locale": [ { "message": "All our agents are currently busy. Please wait while we get the next available agent. Your position in the queue is {{queue.position}}", "language": "en", "isActive": true } ] }, { "order": 2, "locale": [ { "message": "All our agents are currently busy. Please wait while we get the next available agent. Your estimated wait time is {{queue.waitTime}} min.", "language": "en", "isActive": true } ] }, { "order": 3, "locale": [ { "message": "We apologize for the wait. All our agents are busy. Please wait while we get the next available agent.You are in {{queue.position}} position.Your estimated wait time is {{queue.waitTime}} min", "language": "en", "isActive": true } ] } ] }, "initialMessageEnabled": true, "agentTransferMessageEnabled": true, "periodicMessageEnabled": true }, "updatedBy": "u-da9ca787-797d-53bf-9311-44fe23ffxxxx", "createdByAId": "a-48e9755-03b2-4751-81a6-15382c45xxxx", "iId": "st-9a5e4e7d-f540-5cb3-83ed-639cdc4dxxxx", "updatedByAId": "a-48e9755-03b2-4751-81a6-15382c45xxxx", "id": "we-c377680-66c0-480d-a76d-3d25b321xxxx", "agentGroups": [], "agents": [] }, { "status": "ACTIVE", "isDefault": false, "configuration": { "name": "CustomWaitingExperience", "description": "CustomWaitingExperience", "routingRules": [ { "steps": [ { "values": [ "6380a0d4e855be638213xxxx" ], "entity": "6380a0d4e855be638213xxxx", "order": 1, "operator": "OR" } ], "operator": "AND", "order": 1 } ] }, "callExperience": { "initialMessageSettings": { "locale": [ { "isActive": true, "language": "en", "message": "Please hold while I find the right agent for you." }, { "isActive": false, "language": "es", "message": "" }, { "isActive": false, "language": "ar", "message": "" } ] }, "agentTransferMessageSettings": { "locale": [] }, "holdAudio": { "name": "SmartAssist Default Hold Music", "id": "62323a29fa84b5264a3bxxxx" }, "periodicMessageSettings": { "duration": 10, "order": "RANDOM", "play_style": "LOOPED", "messages": [ { "order": 0, "locale": [ { "language": "en", "isActive": true, "message": "Please hold while I find the right agent for you." }, { "language": "es", "isActive": false, "message": "" }, { "language": "ar", "isActive": false, "message": "" } ] } ] }, "chatDeflectionSettings": { "toneMap": 1, "estimatedWaitTime": 10, "timeToDeflect": 5, "locale": [ { "isActive": true, "language": "en", "message": "Rather than waiting for a voice agent, it might be much faster to get an agent on chat to help you. If you would like to switch to chat, press 1 anytime during your wait and i can help you with that." }, { "isActive": false, "language": "es", "message": "" }, { "isActive": false, "language": "ar", "message": "" } ] }, "callBackSettings": { "toneMap": 2, "estimatedWaitTime": 10, "timeToCallBack": 10, "locale": [ { "isActive": true, "language": "en", "message": "Looks like it might take a while for an agent to become available. If you prefer, we could hold your place in the queue and call you back as soon as an agent becomes available. To choose the call back option, press 2 at anytime during your wait." }, { "isActive": false, "language": "es", "message": "" }, { "isActive": false, "language": "ar", "message": "" } ], "operationType": "OFFER" }, "voiceMailSettings": { "toneMap": 3, "callWaitingDurationEnabled": false, "callWaitingDuration": 20, "maxQueuePositionEnabled": false, "maxQueuePosition": 6, "estimatedWaitTimeEnabled": false, "estimatedWaitTime": 25, "locale": [ { "isActive": true, "language": "en", "message": "Looks like it might take a while for an agent to become available. If you prefer, you may leave a voicemail that will be assigned to an agent. To choose to leave a voicemail press 3 at anytime during your wait." }, { "isActive": false, "language": "es", "message": "" }, { "isActive": false, "language": "ar", "message": "" } ], "operationType": "OFFER" }, "initialMessageEnabled": true, "periodicMessageEnabled": true, "chatDeflectionEnabled": false, "callBackEnabled": false, "voiceMailEnabled": false }, "chatExperience": { "initialMessageSettings": { "locale": [ { "isActive": true, "language": "en", "message": "Please hold while I find the right agent for you." }, { "isActive": false, "language": "es", "message": "" }, { "isActive": false, "language": "ar", "message": "" } ] }, "agentTransferMessageSettings": { "locale": [] }, "periodicMessageSettings": { "duration": 10, "order": "RANDOM", "play_style": "LOOPED", "messages": [ { "order": 1, "locale": [ { "language": "en", "isActive": true, "message": "Please hold while I find the right agent for you." }, { "language": "es", "isActive": false, "message": "" }, { "language": "ar", "isActive": false, "message": "" } ] } ] }, "initialMessageEnabled": true, "periodicMessageEnabled": true }, "lname": "customwaitingexperience", "iId": "st-9a5e4e7d-f540-5cb3-83ed-639cdc4dxxxx", "createdByAId": "a-48e9755-03b2-4751-81a6-15382c45xxxx", "id": "we-d7bb728-54b3-4c5e-b982-bb31e06axxxx", "agentGroups": [], "agents": [] } ]