Tipo de evento:
CampaignFinishedEnviado quando uma campanha é finalizada. O payload contém a configuração da campanha, incluindo os timestamps startedAt e endedAt.
Valores possíveis para os enums usados no payload:
Estado da campanha
DraftActivePausedFinishedCanceledModo do discador
PowerPredictiveProgressiveProvisionamento de números
StaticDynamicSeleção de números
FifoLifoPrioridade de números
RetryPendingNotContactedTipos de gestão de chamadas
CallflowAiAgentDetectores de tipo de atendimento
DisabledStandardAmdAgentTipos de tratamento de atendimento desconhecido
HumanVoicemailTipos de mensagem para caixa postal
NeverOnFirstDetectionOnLastAttemptOnEveryAttemptPayload CampaignFinished (v2)
{
"id": "01928735-88af-7fc5-ae74-81ff77bf6e61",
"object": "event",
"apiVersion": 2,
"createdAt": "2024-10-13T18:48:05.526",
"type": "CampaignFinished",
"data": {
"customer": {
"id": "0192830c-58a0-7be2-8e3d-dc8997d0a631",
"name": "SIP Caller (Demo account)"
},
"campaign": {
"id": "0192831a-fbbe-735f-b385-a3252781817d",
"name": "Campaign 1",
"phoneSystem": {
"id": "01928310-2d96-7a70-bdfc-4bcd24c22c95",
"name": "My Phone System",
"extension": {
"id": "07bcd1de-1e5d-47b5-99bf-b846c7a12f09",
"name": "SIP Caller Extension"
}
},
"dialer": {
"mode": "Power"
},
"state": "Finished",
"numberProvisioning": "Static",
"numberSelection": "Fifo",
"numberPriority": "RetryPending",
"runningPriority": 0,
"startDate": "2024-10-12",
"endDate": "2024-10-13",
"timeZoneId": "America/Argentina/Buenos_Aires",
"callHandling": {
"$t": "Callflow",
"answerTypeDetector": {
"$t": "AmdAgent",
"amdAgent": {
"id": "019f8f68-f2d9-7ae9-9e8c-790ee1c1413a",
"name": "Voicemail Detector AI Agent"
},
"unknownAnswerTreatment": "Human",
"messageForVoicemail": {
"$t": "OnFirstDetection",
"callflow": {
"id": "019f8c61-daf6-762d-b23a-a0199de9cba3",
"name": "Leave voicemail"
},
"isCallRetryEnabled": true
}
},
"callflow": {
"id": "019f944f-d5ab-717e-a36f-06097fe6be3c",
"name": "Survey"
},
"ttsVoiceId": "azu-es-AR-ElenaNeural"
},
"varNames": [
"Customer Name",
"Due Balance"
],
"startedAt": "2024-10-12T23:48:05.603",
"endedAt": "2024-10-13T18:48:05.526"
},
"origin": null
}
}