Add assessments against conversation to dynamo db. Used in assessments screen by user. Users can select the questionnaire and pick up answers for each and every question.
Add assessments against conversation to dynamo db. Used in assessments screen by user. Users can select the questionnaire and pick up answers for each and every question.
Body
-
The SID of the category
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FY[0-9a-fA-F]{32}$
. -
The name of the category
-
Segment Id of the conversation
-
The id of the Agent
-
The offset of the conversation.
-
The question SID selected for assessment
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^GE[0-9a-fA-F]{32}$
. -
The question name of the assessment
-
The answer text selected by user
-
The id of the answer selected by user
-
Questionnaire SID of the associated question
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^GM[0-9a-fA-F]{32}$
.
curl \
--request POST 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "Authorization: string" \
--data 'Offset=6.985619&AgentId=583fcaa6-a4ef-5447-9077-900421e37a61&AnswerId=ed8697d3-558d-46c3-9b73-cd21cd93cbb3&MetricId=GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&SegmentId=dbdf1f7b-c776-5e78-9676-98a397fb3cdc&AnswerText=Fair&MetricName=Active+listening&CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&CategoryName=Good+for+Training&QuestionnaireSid=GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
{"Offset"=>"6.985619", "AgentId"=>"583fcaa6-a4ef-5447-9077-900421e37a61", "AnswerId"=>"ed8697d3-558d-46c3-9b73-cd21cd93cbb3", "MetricId"=>"GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "SegmentId"=>"dbdf1f7b-c776-5e78-9676-98a397fb3cdc", "AnswerText"=>"Fair", "MetricName"=>"Active listening", "CategorySid"=>"FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "CategoryName"=>"Good for Training", "QuestionnaireSid"=>"GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{
"url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments/FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"offset": "0.0",
"report": true,
"weight": "1",
"agent_id": "5d80ee80-7608-55df-b2b2-5ab5608b9831",
"answer_id": "ed8697d3-558d-46c3-9b73-cd21cd93cbb3",
"timestamp": "1657329694199",
"user_name": "Supervisor",
"assessment": {
"questionnaire": {
"name": "Customer Experience",
"question": {
"name": "Active listening",
"category": {
"name": "Good for Training",
"category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"questionnaire_sid": "GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
},
"segment_id": "dbdf1f7b-c776-5e78-9676-98a397fb3cdc",
"user_email": "supervisor@example.com",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"answer_text": "Fair",
"assessment_sid": "FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}