コンタクト センター

あるコンタクト センターが午前 8 時 30 分から午後 8 時まで営業していて、 さまざまな言語での通話に対応できます次の 3 つが考えられる 8:30 ~ 16:30、9:00 ~ 17:00、および 10:00-18:00.これまでの予測から、それぞれの需要は 言語は曜日によって異なります。通常、月曜日は英語で、 そのため、これらの言語を知っているエージェントを少なくとも 1 名置く必要があります。 火曜日の通話は通常スペイン語とフランス語で行われているため、 その各言語に習熟したエージェントを 1 名以上在籍している必要があります。特定の 常に 2 人以上のエージェントが対応可能である必要があります。

1 日に数回のシフト

このコンタクト センターの例では、1 日あたり 3 つのシフトがあり、 期間は 2 日間ですたとえば、特定の月曜日の 8:30 ~ 16:30 シフト 次のように表されます。

  {
   
"shifts": [
     
{
       
"id": "Monday-2024-7-1 8:30-16:30",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 8,
         
"minutes": 30
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 16,
         
"minutes": 30
       
}
     
}
   
]
 
}

   
{
     
"shifts": [
     
{
       
"id": "Monday-2024-7-1 8:30-16:30",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 8,
         
"minutes": 30
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 16,
         
"minutes": 30
       
}
     
},
     
{
       
"id": "Monday-2024-7-1 9:00-17:00",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 9
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 17
       
}
     
},
     
{
       
"id": "Monday-2024-7-1 10:00-18:00",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 10
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 18
       
}
     
},
     
{
       
"id": "Tuesday-2024-7-2 8:30-16:30",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 8,
         
"minutes": 30
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 16,
         
"minutes": 30
       
}
     
},
     
{
       
"id": "Tuesday-2024-7-2 9:00-17:00",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 9
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 17
       
}
     
},
     
{
       
"id": "Tuesday-2024-7-2 10:00-18:00",
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 10
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 18
       
}
     
}
   
]
 
}
 

従業員のスキルとしての言語

エージェントが知っている言語は skill として表されます。最初のエージェントは Lauren はスペイン語とポルトガル語を知り、次のように表現されています。

  {
   
"employees": [
     
{
       
"id": "Lauren",
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"ES",
         
"PR"
       
]
     
}
   
]
 
}

他のタイプのスケジュール制約、シフト リクエスト、 その他の情報で説明されているとおりに、


 
{
   
"employees": [
     
{
       
"id": "Lauren",
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"ES",
         
"PR"
       
]
     
},
     
{
       
"id": "Markus",
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"EN",
         
"PR"
       
]
     
},
     
{
       
"id": "Hans",
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"EN",
         
"ES"
       
],
       
"shiftRequests": [
         
{
           
"shiftIds": [
             
"Monday-2024-7-1 10:00-18:00"
           
],
           
"type": "STATUS_NOT_WORK"
         
}
       
]
     
},
     
{
       
"id": "Peter",
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"EN",
         
"FR"
       
],
       
"shiftPreferences": [
         
{
           
"shiftId": "Monday-2024-7-1 10:00-18:00",
           
"preference": 1
         
}
       
]
     
}
   
]
 
}
 

エージェントと言語の需要への対応

エージェントや特定の言語の需要がカバレッジで示されている 要件をご覧ください。2 つのエージェントが必要であることは、 roleRequirements。言語の要件は skillRequirements。月曜日と火曜日の保証範囲の要件は次のとおりです。 次のように表されます。

  {
   
"coverageRequirements": [
     
{
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 8,
         
"minutes": 30
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 1,
         
"hours": 18
       
},
       
"roleRequirements": [
         
{
           
"role_id": "Agent",
           
"target_employee_count": 1,
           
"priority": "PRIORITY_HIGH"
         
}
       
],
       
"skillRequirements": [
         
{
           
"skill_id": "EN",
           
"target_employee_count": 1
         
},
         
{
           
"skill_id": "PR",
           
"target_employee_count": 1
         
}
       
]
     
},
     
{
       
"startDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 8,
         
"minutes": 30
       
},
       
"endDateTime": {
         
"year": 2024,
         
"month": 7,
         
"day": 2,
         
"hours": 18,
         
"minutes": 0
       
},
       
"roleRequirements": [
         
{
           
"role_id": "Agent",
           
"target_employee_count": 1,
           
"priority": "PRIORITY_HIGH"
         
}
       
],
       
"skillRequirements": [
         
{
           
"skill_id": "ES",
           
"target_employee_count": 1
         
},
         
{
           
"skill_id": "FR",
           
"target_employee_count": 1
         
}
       
]
     
}
   
],
   
"role_ids": [
   
"Agent"
   
],
   
"skill_ids": [
     
"EN",
     
"ES",
     
"FR",
     
"PR"
   
]
 
}

リクエストではすべてのロールとスキル ID を定義する必要があります。一致している必要があります 従業員を定義するために使用される ID です。


   
{
     
{
       
"requestId": "contact_center_examples",
       
"solve_parameters": {
         
"time_limit": {
           
"seconds": 60
         
}
       
},
       
"employees": [
         
{
           
"id": "Lauren",
           
"role_ids": [
             
"Agent"
           
],
           
"skill_ids": [
             
"ES",
             
"PR"
           
]
         
},
         
{
           
"id": "Markus",
           
"role_ids": [
             
"Agent"
           
],
           
"skill_ids": [
             
"EN",
             
"PR"
           
]
         
},
         
{
           
"id": "Hans",
           
"role_ids": [
             
"Agent"
           
],
           
"skill_ids": [
             
"EN",
             
"ES"
           
],
           
"shiftRequests": [
             
{
               
"shiftIds": [
                 
"Monday-2024-7-1 10:00-18:00"
               
],
               
"type": "STATUS_NOT_WORK"
             
}
           
]
         
},
         
{
           
"id": "Peter",
           
"role_ids": [
             
"Agent"
           
],
           
"skill_ids": [
             
"EN",
             
"FR"
           
],
           
"shiftPreferences": [
             
{
               
"shiftId": "Monday-2024-7-1 10:00-18:00",
               
"preference": 1
             
}
           
]
         
}
       
],
       
"shifts": [
         
{
           
"id": "Monday-2024-7-1 8:30-16:30",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 8,
             
"minutes": 30
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 16,
             
"minutes": 30
           
}
         
},
         
{
           
"id": "Monday-2024-7-1 9:00-17:00",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 9
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 17
           
}
         
},
         
{
           
"id": "Monday-2024-7-1 10:00-18:00",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 10
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 18
           
}
         
},
         
{
           
"id": "Tuesday-2024-7-2 8:30-16:30",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 8,
             
"minutes": 30
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 16,
             
"minutes": 30
           
}
         
},
         
{
           
"id": "Tuesday-2024-7-2 9:00-17:00",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 9
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 17
           
}
         
},
         
{
           
"id": "Tuesday-2024-7-2 10:00-18:00",
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 10
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 18
           
}
         
}
       
],
       
"coverageRequirements": [
         
{
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 8,
             
"minutes": 30
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 1,
             
"hours": 18
           
},
           
"roleRequirements": [
             
{
               
"role_id": "Agent",
               
"target_employee_count": 1,
               
"priority": "PRIORITY_HIGH"
             
}
           
],
           
"skillRequirements": [
             
{
               
"skill_id": "EN",
               
"target_employee_count": 1
             
},
             
{
               
"skill_id": "PR",
               
"target_employee_count": 1
             
}
           
]
         
},
         
{
           
"startDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 8,
             
"minutes": 30
           
},
           
"endDateTime": {
             
"year": 2024,
             
"month": 7,
             
"day": 2,
             
"hours": 18,
             
"minutes": 0
           
},
           
"roleRequirements": [
             
{
               
"role_id": "Agent",
               
"target_employee_count": 1,
               
"priority": "PRIORITY_HIGH"
             
}
           
],
           
"skillRequirements": [
             
{
               
"skill_id": "ES",
               
"target_employee_count": 1
             
},
             
{
               
"skill_id": "FR",
               
"target_employee_count": 1
             
}
           
]
         
}
       
],
       
"role_ids": [
         
"Agent"
       
],
       
"skill_ids": [
         
"EN",
         
"ES",
         
"FR",
         
"PR"
       
]
     
}
   
}
   

レスポンスの例

解法のレスポンスには、シフトに対するエージェントの割り当てと、 最適化手順のステータス。

次の例は、割り当てられたシフトを示しています。

  {
   
"solutionStatus": "OPTIMAL",
   
"shiftAssignments": [
     
{
       
"employeeId": "Lauren",
       
"shiftId": "Tuesday-2024-7-2 10:00-18:00",
       
"roleId": "Agent"
     
},
     
{
       
"employeeId": "Markus",
       
"shiftId": "Monday-2024-7-1 8:30-16:30",
       
"roleId": "Agent"
     
},
     
{
       
"employeeId": "Peter",
       
"shiftId": "Monday-2024-7-1 10:00-18:00",
       
"roleId": "Agent"
     
},
     
{
       
"employeeId": "Peter",
       
"shiftId": "Tuesday-2024-7-2 8:30-16:30",
       
"roleId": "Agent"
     
}
   
],
   
"requestId": "contact_center_examples"
 
}