This API triggers an automatic QA process for a specified resource. It creates a new QA scorecard and populates it with relevant scores and feedback based on predefined or custom criteria.
This API triggers an automatic QA process for a specified resource. It creates a new QA scorecard and populates it with relevant scores and feedback based on predefined or custom criteria.
curl -i -X POST \
'https://{api-domain}.cresta.com/v1/{agentProgressionScorecardTemplate.name=customers/*/profiles/*/agentProgressionScorecardTemplates/*}' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "string",
"items": [
{
"section": {
"displayName": "string",
"items": [
{}
]
},
"criterion": {
"name": "string",
"type": "TRIGGER_TYPE_UNSPECIFIED"
},
"visible": true
}
],
"creator": {
"name": "string",
"userId": "string",
"username": "string",
"email": "string",
"displayName": "string",
"fullName": "string",
"isDevUser": true,
"roles": [
"ROLE_UNSPECIFIED"
],
"legacyRoles": [
"ROLE_UNSPECIFIED"
],
"agentProfiles": [
{
"agentProfileId": 0,
"agentExtension": "string",
"legacy": {
"platformLoginName": "string",
"platformUserId": "string"
}
}
],
"team": "string",
"state": "ACTIVE_STATE_UNSPECIFIED",
"loginStatus": {
"loginStatus": "LOGIN_STATUS_UNSPECIFIED"
},
"manager": "string",
"externalIdmId": "string",
"platformProfiles": [
{
"platformType": "PLATFORM_TYPE_UNSPECIFIED",
"platformId": "string",
"agentExtension": "string",
"liveperson": {
"accountNumber": "string",
"loginName": "string"
},
"cisco": {
"agentExtension": "string"
},
"userFeatureGate": {
"teleportFeatures": {
"enableScreenRecordingSamplingOverride": true,
"userScreenRecordingSamplingPercent": 0
}
}
}
],
"isGuestUser": true,
"type": "USER_TYPE_UNSPECIFIED",
"profileNames": [
"string"
],
"usecases": [
"string"
],
"profileStates": {
"property1": "PROFILE_STATE_UNSPECIFIED",
"property2": "PROFILE_STATE_UNSPECIFIED"
},
"preferredProfile": "string",
"authenticationFactors": [
{
"id": "string",
"label": "string",
"type": "TYPE_UNSPECIFIED",
"enrollmentTime": "2019-08-24T14:15:22Z",
"name": "string"
}
],
"requirePasswordReset": true,
"migratedEntities": [
"MIGRATABLE_ENTITY_UNSPECIFIED"
]
},
"lastEditor": {
"name": "string",
"userId": "string",
"username": "string",
"email": "string",
"displayName": "string",
"fullName": "string",
"isDevUser": true,
"roles": [
"ROLE_UNSPECIFIED"
],
"legacyRoles": [
"ROLE_UNSPECIFIED"
],
"agentProfiles": [
{
"agentProfileId": 0,
"agentExtension": "string",
"legacy": {
"platformLoginName": "string",
"platformUserId": "string"
}
}
],
"team": "string",
"state": "ACTIVE_STATE_UNSPECIFIED",
"loginStatus": {
"loginStatus": "LOGIN_STATUS_UNSPECIFIED"
},
"manager": "string",
"externalIdmId": "string",
"platformProfiles": [
{
"platformType": "PLATFORM_TYPE_UNSPECIFIED",
"platformId": "string",
"agentExtension": "string",
"liveperson": {
"accountNumber": "string",
"loginName": "string"
},
"cisco": {
"agentExtension": "string"
},
"userFeatureGate": {
"teleportFeatures": {
"enableScreenRecordingSamplingOverride": true,
"userScreenRecordingSamplingPercent": 0
}
}
}
],
"isGuestUser": true,
"type": "USER_TYPE_UNSPECIFIED",
"profileNames": [
"string"
],
"usecases": [
"string"
],
"profileStates": {
"property1": "PROFILE_STATE_UNSPECIFIED",
"property2": "PROFILE_STATE_UNSPECIFIED"
},
"preferredProfile": "string",
"authenticationFactors": [
{
"id": "string",
"label": "string",
"type": "TYPE_UNSPECIFIED",
"enrollmentTime": "2019-08-24T14:15:22Z",
"name": "string"
}
],
"requirePasswordReset": true,
"migratedEntities": [
"MIGRATABLE_ENTITY_UNSPECIFIED"
]
}
}'
{ "agentProgressionScorecardTemplate": { "name": "string", "displayName": "string", "items": [ … ], "creator": { … }, "lastEditor": { … }, "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z" }, "unconfiguredTriggers": [ { … } ] }
curl -i -X POST \
'https://{api-domain}.cresta.com/v1/{conversation}:calculateConversationAutoScoringEvidence' \
-H 'Content-Type: application/json' \
-d '{
"scorecardTemplates": [
"string"
]
}'
{ "templateAutoScoringResults": [ { … } ] }
curl -i -X GET \
'https://{api-domain}.cresta.com/v1/{name=customers/*/profiles/*/agentProgressionScorecardTemplates/*}'
{ "agentProgressionScorecardTemplate": { "name": "string", "displayName": "string", "items": [ … ], "creator": { … }, "lastEditor": { … }, "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z" }, "unconfiguredTriggers": [ { … } ] }