{
"source":"studio",
"hostname":"ip-10-42-43-177.ec2.internal",
"sequence":1,
"call_uuid":"3871550a-3571-3321-bec8-d110c12a86ee",
"project_id":1,
"who_hangup":null,
"exit_reason":"transfer",
"call_flow_id":7,
"incoming_did":null,
"project_name":"Projeto Demo",
"session_uuid":"b68345cf-db70-434d-851e-196464197cc9",
"exported_vars":{
},
"tenant_domain":"homologacao-cs.evolux.net.br",
"call_flow_name":"v1 - Projeto Demo - inicial",
"caller_id_name":"9998",
"executed_tasks":[
{
"task_id":"a9914a1a-ae29-4ef8-89c3-52753b1f6f08",
"task_name":"start",
"end_time_epoch":1663276130,
"task_raw_params":{
},
"start_time_epoch":1663276130,
"task_description":"Iniciar",
"task_execution_info":null
},
{
"task_id":"233ea79c-33e5-4af5-8ff8-d46f982ae884",
"task_name":"timecondition",
"end_time_epoch":1663276130,
"task_raw_params":{
"timezone":"America/Recife",
"time_conditions":[
{
"days":[
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31"
],
"years":[
"all"
],
"months":[
"jan",
"feb",
"mar",
"apr",
"may",
"jun",
"jul",
"aug",
"sep",
"oct",
"nov",
"dec"
],
"intervals":[
{
"end":"18:59:00",
"start":"08:00:00"
}
],
"description":"Seg a Sex - 08h as 19h",
"days_of_week":[
"mon",
"tue",
"wed",
"thu",
"fri"
],
"next_task_id":"16e40c03-2071-494d-a74b-497e04c5a1d2"
}
]
},
"start_time_epoch":1663276130,
"task_description":"Horário de Funcionamento",
"task_execution_info":{
"date":"2022-09-15T18:08:50.507255-03:00",
"evaluated_time_conditions":[
{
"pass":true,
"order":1,
"description":"Seg a Sex - 08h as 19h"
}
],
"matched_time_condition_order":1
}
},
{
"task_id":"16e40c03-2071-494d-a74b-497e04c5a1d2",
"task_name":"playback",
"end_time_epoch":1663276132,
"task_raw_params":{
"audio_url":"https://homologacao-cs.evolux.net.br/api/v1/audios/tts?token=*********&text=Bem+vindo+ao+teste+Evolux&voice_id=Camila&engine=neural"
},
"start_time_epoch":1663276130,
"task_description":"Que bom tê-lo conosco",
"task_execution_info":{
"audio_url":"https://homologacao-cs.evolux.net.br/api/v1/audios/tts?token=*********&text=Bem+vindo+ao+teste+Evolux&voice_id=Camila&engine=neural"
}
},
{
"task_id":"45c1d1e3-d754-402f-aeb6-edbe9b0998f6",
"task_name":"playandgetdigits",
"end_time_epoch":1663276145,
"task_raw_params":{
"options":[
],
"timeout":8000,
"error_file":"silence_stream://500",
"max_digits":14,
"min_digits":11,
"prompt_file":"https://homologacao-cs.evolux.net.br/api/v1/audio/listen/1?token=*********",
"terminators":"#",
"digits_regex":"\\d+",
"max_attempts":1,
"digit_timeout":5000,
"variable_name":"cpf_cnpj"
},
"start_time_epoch":1663276132,
"task_description":"Digite o CPF ou CNPJ do titular",
"task_execution_info":{
"digits":"*********",
"error_file":"silence_stream://500",
"prompt_file":"https://homologacao-cs.evolux.net.br/api/v1/audio/listen/1?token=*********"
}
},
{
"task_id":"d941ac49-90e4-4b9a-9fe3-fbc845f997a1",
"task_name":"router",
"end_time_epoch":1663276145,
"task_raw_params":{
"routes":[
{
"match":"any",
"conditions":[
{
"operator":"length",
"left_value":"cpf_cnpj",
"right_value":"11"
},
{
"operator":"length",
"left_value":"cpf_cnpj",
"right_value":"14"
}
],
"description":"Documento tem 11 ou 14 digitos?",
"next_task_id":"0c669b5b-9aed-4ecf-a3c4-ce40fbb2e555"
}
]
},
"start_time_epoch":1663276145,
"task_description":"Roteador",
"task_execution_info":{
"matched_route":"Documento tem 11 ou 14 digitos?",
"evaluated_routes":[
{
"match":"any",
"result":true,
"conditions":[
{
"result":true,
"condition":"********* length 11",
"error_msg":null
},
{
"result":false,
"condition":"********* length 14",
"error_msg":null
}
],
"description":"Documento tem 11 ou 14 digitos?"
}
],
"matched_route_order":1
}
},
{
"task_id":"0c669b5b-9aed-4ecf-a3c4-ce40fbb2e555",
"task_name":"http",
"end_time_epoch":1663276148,
"task_raw_params":{
"url":"http://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"data":"{ ""cpfcnpj"" : "{
{
"cpf_cnpj"
}
}" }",
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"IntegrationSecret":"*********"
},
"timeout":20,
"data_type":"json",
"variable_name":"cliente",
"sensitive_return_keys":[
"email",
"cpfcnpj",
"chavebase",
"nomebase",
"descricaocarteira",
"logradouro",
"bairro",
"telefone",
"telefones",
"nomeregional",
"nomeassinante"
],
"sensitive_request_keys":[
"IntegrationSecret",
"cpf_cnpj",
"cpfcnpj"
],
"return_contains_sensitive_info":true
},
"start_time_epoch":1663276145,
"task_description":"Interfocus - Consultar cliente por CPF",
"task_execution_info":{
"status":"http_success",
"error_msg":null,
"http_status":200,
"request_data":{
"url":"http://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"json":{
"cpfcnpj":"*********"
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"IntegrationSecret":"*********"
},
"timeout":20
},
"response_data":{
"uf":"SP",
"email":"*********",
"cpfcnpj":"*********",
"faturas":null,
"nomebase":"*********",
"chavebase":"*********",
"contratos":[
{
"cep":"13733554",
"bairro":"*********",
"numero":"596",
"situacao":5,
"idcarteira":4,
"idcontrato":767496,
"logradouro":"*********",
"complemento":"",
"codigoempresa":31,
"diavencimento":10,
"ordemservicos":null,
"codigocarteira":41,
"manutencaonode":false,
"numerocontrato":767496,
"idclassificacao":null,
"descricaocarteira":"*********",
"descricaosituacao":"Cancelado",
"codigoclassificacao":null,
"vencimentospermitidos":"05;08;10;12;14;15;",
"descricaoclassificacao":null,
"podeliberacaoconfianca":false
},
{
"cep":"13733554",
"bairro":"*********",
"numero":"596",
"situacao":2,
"idcarteira":4,
"idcontrato":827458,
"logradouro":"*********",
"complemento":"",
"codigoempresa":31,
"diavencimento":10,
"ordemservicos":null,
"codigocarteira":41,
"manutencaonode":false,
"numerocontrato":827458,
"idclassificacao":null,
"descricaocarteira":"*********",
"descricaosituacao":"Conectado/Ativo",
"codigoclassificacao":null,
"vencimentospermitidos":"05;08;10;12;14;15;",
"descricaoclassificacao":null,
"podeliberacaoconfianca":false
}
],
"telefones":[
{
"ddd":19,
"telefone":"*********"
},
{
"ddd":19,
"telefone":"*********"
}
],
"nomecidade":"MOCOCA",
"idassinante":610012,
"nomeregional":"*********",
"nomeassinante":"*********",
"codigoassinante":610012,
"idclassificacao":16,
"codigoclassificacao":81,
"descricaoclassificacao":"RESIDENCIAL"
}
}
},
{
"task_id":"d215de0d-b886-42e1-ab8f-9c5da7e1f6b6",
"task_name":"http",
"end_time_epoch":1663276148,
"task_raw_params":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"data":{
"DDR":"*********",
"crm":"*********",
"cliente":"{{cliente|tojson}}"
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"x-api-key":"*********"
},
"timeout":10,
"data_type":"formdata",
"variable_name":"status_contrato",
"sensitive_return_keys":[
"nome",
"documento",
"bairro",
"logradouro",
"cpfcnpj",
"nomeassinante",
"email",
"crm",
"ddr",
"chavebase",
"descricaocarteira"
],
"sensitive_request_keys":[
"x-api-key",
"cliente",
"DDR"
],
"return_contains_sensitive_info":true
},
"start_time_epoch":1663276148,
"task_description":"Lambda - Organizar Contratos - Interfocus",
"task_execution_info":{
"status":"http_success",
"error_msg":null,
"http_status":200,
"request_data":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"data":{
"DDR":"*********",
"crm":"*********",
"cliente":"*********"
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"x-api-key":"*********"
},
"timeout":10
},
"response_data":{
"crm":"*********",
"ddr":"*********",
"nome":"*********",
"email":null,
"cidade":"MOCOCA - SP",
"status":"Normal",
"bairros":[
"*********",
"*********"
],
"empresa":"*********",
"faturas":[
],
"bloqueado":[
],
"cancelado":[
767496
],
"chavebase":"*********",
"contratos":[
{
"cep":"13733554",
"bairro":"*********",
"numero":"596",
"situacao":5,
"idcarteira":4,
"idcontrato":767496,
"logradouro":"*********",
"complemento":"",
"codigoempresa":31,
"diavencimento":10,
"ordemservicos":null,
"codigocarteira":41,
"manutencaonode":false,
"numerocontrato":767496,
"idclassificacao":null,
"descricaocarteira":"*********",
"descricaosituacao":"Cancelado",
"codigoclassificacao":null,
"vencimentospermitidos":"05;08;10;12;14;15;",
"descricaoclassificacao":null,
"podeliberacaoconfianca":false
},
{
"cep":"13733554",
"bairro":"*********",
"numero":"596",
"situacao":2,
"idcarteira":4,
"idcontrato":827458,
"logradouro":"*********",
"complemento":"",
"codigoempresa":31,
"diavencimento":10,
"ordemservicos":null,
"codigocarteira":41,
"manutencaonode":false,
"numerocontrato":827458,
"idclassificacao":null,
"descricaocarteira":"*********",
"descricaosituacao":"Conectado/Ativo",
"codigoclassificacao":null,
"vencimentospermitidos":"05;08;10;12;14;15;",
"descricaoclassificacao":null,
"podeliberacaoconfianca":false
}
],
"documento":"*********",
"duplicado":false,
"resultado":"sucesso",
"manutencao":[
],
"corporativo":[
],
"data_inicio":null,
"idassinante":610012,
"codigocarteira":41,
"dados_a_liberar":[
],
"dados_bloqueado":[
],
"contrato_recente":false,
"dados_manutencao":[
],
"outros_contratos":[
],
"status_bloqueado":false,
"status_cancelado":false,
"contratos_com_faturas":[
],
"assinantes_com_faturas":[
],
"contrato_sem_liberacao":[
],
"assinantes_com_bloqueio":[
]
}
}
},
{
"task_id":"c8d79390-f9a8-4382-be8e-9ff123672aa8",
"task_name":"http",
"end_time_epoch":1663276149,
"task_raw_params":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"data":{
"crm":"*********",
"faturas":"{{status_contrato.faturas|tojson}}"
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"x-api-key":"*********"
},
"timeout":10,
"data_type":"formdata",
"variable_name":"status_faturas",
"sensitive_request_keys":[
"x-api-key"
],
"return_contains_sensitive_info":false
},
"start_time_epoch":1663276148,
"task_description":"Lambda - Status Faturas - Interfocus",
"task_execution_info":{
"status":"http_success",
"error_msg":null,
"http_status":200,
"request_data":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]",
"auth":null,
"data":{
"crm":"*********",
"faturas":"[]"
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
"x-api-key":"*********"
},
"timeout":10
},
"response_data":{
"status":"nenhuma_fatura",
"faturas":[
],
"resultado":"sucesso",
"quantidade":0,
"vencimentos":[
],
"codigo_barras":false,
"todas_faturas":[
]
}
}
},
{
"task_id":"481a4a59-0fa1-4246-b7e1-1f2e8a503095",
"task_name":"http",
"end_time_epoch":1663276150,
"task_raw_params":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]/api/v2/tickets.json",
"auth":{
"password":"[SUPRIMIDO POR SEGURANÇA]",
"username":"[SUPRIMIDO POR SEGURANÇA]"
},
"data":"{ ""ticket"":{ ""requester_id"":"**********", ""submitter_id"":"**********", ""tags"":[ ""protocolo"", ""ura_evolux"" ], ""description"":""Opção escolhida":1 - Cliente Evolux Satisfeito!", ""subject"":""Protocolo de Atendimento | Evolux | #"{
{
"caller_id_number"
}
}", ""custom_fields"":[ { ""id"":*********, ""value"":"{
{
"caller_id_number"
}
}" } ] } }",
"method":"POST",
"params":{
},
"verify":true,
"headers":{
},
"timeout":30,
"data_type":"json",
"variable_name":"ticket",
"sensitive_request_keys":[
"requester_id",
"submitter_id",
"id",
"password",
"username"
],
"return_contains_sensitive_info":false
},
"start_time_epoch":1663276149,
"task_description":"Criar Ticket no Zendesk",
"task_execution_info":{
"status":"http_success",
"error_msg":null,
"http_status":201,
"request_data":{
"url":"https://[SUPRIMIDO POR SEGURANÇA]/api/v2/tickets.json",
"auth":{
"password":"[SUPRIMIDO POR SEGURANÇA]",
"username":"[SUPRIMIDO POR SEGURANÇA]"
},
"json":{
"ticket":{
"tags":[
"protocolo",
"ura_evolux"
],
"subject":"Protocolo de Atendimento | Evolux | #9998",
"description":"Opção escolhida: 1 - Cliente Evolux Satisfeito!",
"requester_id":"*********",
"submitter_id":"*********",
"custom_fields":[
{
"id":"*********",
"value":"9998"
}
]
}
},
"method":"POST",
"params":{
},
"verify":true,
"headers":{
},
"timeout":30
},
"response_data":{
"audit":{
"id":9200246941197,
"via":{
"source":{
"to":{
},
"rel":null,
"from":{
}
},
"channel":"api"
},
"events":[
{
"id":9200246941325,
"body":"Opção escolhida: 1 - Cliente Evolux Satisfeito!",
"type":"Comment",
"public":true,
"audit_id":9200246941197,
"author_id":"*********",
"html_body":"<div class=""zd-comment"" dir=""auto""><p dir=""auto"">Opção escolhida: 1 - Cliente Evolux Satisfeito!</p></div>",
"plain_body":"Opção escolhida: 1 - Cliente Evolux Satisfeito!",
"attachments":[
]
},
{
"id":9200246941453,
"type":"Create",
"value":"*********",
"field_name":"requester_id"
},
{
"id":9200246941581,
"type":"Create",
"value":"Protocolo de Atendimento | Evolux | #9998",
"field_name":"subject"
},
{
"id":9200246941709,
"type":"Create",
"value":[
"9997",
"protocolo",
"ura_evolux"
],
"field_name":"tags"
},
{
"id":9200246941837,
"type":"Create",
"value":null,
"field_name":"priority"
},
{
"id":9200246941965,
"type":"Create",
"value":null,
"field_name":"type"
},
{
"id":9200246942093,
"type":"Create",
"value":"new",
"field_name":"status"
},
{
"id":9200246942221,
"type":"Create",
"value":"360001142672",
"field_name":"group_id"
},
{
"id":9200246942349,
"type":"Create",
"value":"361544975392",
"field_name":"organization_id"
},
{
"id":9200246942477,
"type":"Create",
"value":"360000684872",
"field_name":"brand_id"
},
{
"id":9200246942605,
"type":"Create",
"value":"360000074252",
"field_name":"ticket_form_id"
},
{
"id":9200246942733,
"via":{
"source":{
"rel":"trigger",
"from":{
"id":360026926772,
"title":"Notificar solicitante sobre a solicitação recebida",
"deleted":false,
"revision_id":3
}
},
"channel":"rule"
},
"body":"Sua solicitação ({{ticket.id}}) foi recebida e está sendo analisada por nossa equipe de suporte. Para adicionar outros comentários, responda a este email. {{ticket.comments_formatted}} ",
"type":"Notification",
"subject":"[Solicitação recebida] {{ticket.title}}",
"recipients":[
"*********"
]
},
{
"id":9200246942861,
"via":{
"source":{
"rel":"trigger",
"from":{
"id":360026926872,
"title":"Notificar o grupo sobre a atribuição",
"deleted":false,
"revision_id":1
}
},
"channel":"rule"
},
"body":"Este ticket (#{{ticket.id}}) foi atribuído ao grupo "{
{
"ticket.group.name"
}
}", do qual você faz parte. {{ticket.comments_formatted}}",
"type":"Notification",
"subject":"Atribuição [{{ticket.account}}] "{
{
"ticket.group.name"
}
}": {{ticket.title}}",
"recipients":[
369947011932,
7451865528589,
364908301652,
7451652654861
]
},
{
"id":9200246942989,
"via":{
"source":{
"rel":"trigger",
"from":{
"id":360026926892,
"title":"Notificar todos os agentes sobre a solicitação recebida",
"deleted":false,
"revision_id":3
}
},
"channel":"rule"
},
"body":"Um ticket (nº #{{ticket.id}}) de {{ticket.requester.name}} foi recebido. Ele não foi atribuído. {{ticket.comments_formatted}}",
"type":"Notification",
"subject":"[{{ticket.account}}] {{ticket.title}}",
"recipients":[
369947011932,
364908301652
]
}
],
"metadata":{
"custom":{
},
"system":{
"client":"python-requests/2.21.0",
"latitude":38.6583,
"location":"VA, United States",
"longitude":-77.2481,
"ip_address":"54.164.183.197"
}
},
"author_id":364908301652,
"ticket_id":7204,
"created_at":"2022-09-15T21:09:10Z"
},
"ticket":{
"id":7204,
"url":"https://d3v-evolux.zendesk.com/api/v2/tickets/7204.json",
"via":{
"source":{
"to":{
},
"rel":null,
"from":{
}
},
"channel":"api"
},
"tags":[
"9997",
"protocolo",
"ura_evolux"
],
"type":null,
"due_at":null,
"fields":[
{
"id":4687176821005,
"value":null
},
{
"id":360030047171,
"value":null
}
],
"status":"new",
"subject":"Protocolo de Atendimento | Evolux | #9998",
"brand_id":360000684872,
"group_id":360001142672,
"priority":null,
"is_public":true,
"recipient":null,
"created_at":"2022-09-15T21:09:10Z",
"problem_id":null,
"updated_at":"2022-09-15T21:09:10Z",
"assignee_id":null,
"description":"Opção escolhida: 1 - Cliente Evolux Satisfeito!",
"external_id":null,
"raw_subject":"Protocolo de Atendimento | Evolux | #9998",
"email_cc_ids":[
],
"follower_ids":[
],
"followup_ids":[
],
"requester_id":"*********",
"submitter_id":"*********",
"custom_fields":[
{
"id":4687176821005,
"value":null
},
{
"id":360030047171,
"value":null
}
],
"has_incidents":false,
"forum_topic_id":null,
"ticket_form_id":360000074252,
"organization_id":361544975392,
"collaborator_ids":[
],
"allow_attachments":true,
"allow_channelback":false,
"satisfaction_rating":null,
"sharing_agreement_ids":[
]
}
}
}
},
{
"task_id":"90a6b9fa-1dcb-41bc-8e01-bfad1e7cb808",
"task_name":"bindprotocol",
"end_time_epoch":1663276150,
"task_raw_params":{
"feature_enabled":true,
"protocol_number":"{{ticket.ticket.id}}"
},
"start_time_epoch":1663276150,
"task_description":"Vincula Ticket como Protocolo",
"task_execution_info":{
"protocol_number":"7204"
}
},
{
"task_id":"9e5d4638-c0f0-4bfc-9f83-c0cff4cb31fd",
"task_name":"playback",
"end_time_epoch":1663276155,
"task_raw_params":{
"audio_url":"{{ticket.ticket.id}}+&voice_id=Camila&engine=neural"">https"://homologacao-cs.evolux.net.br/api/v1/audios/tts?token=*********&text=<speak>O+número+do+seu+protocolo+é.+<prosody+rate="70%""><say-as+interpret-as=""digits"">"{
{
"ticket.ticket.id"
}
}"</say-as></prosody>+</speak>&voice_id=Camila&engine=neural""
},
start_time_epoch: 1663276150,
task_description: ""Diz o número do ticket"",
task_execution_info: {
audio_url: "7204+&voice_id=Camila&engine=neural">https://homologacao-cs.evolux.net.br/api/v1/audios/tts?token=*********&text=<speak>O+número+do+seu+protocolo+é.+<prosody+rate="70%"><say-as+interpret-as=""digits"">7204</say-as></prosody>+</speak>&voice_id=Camila&engine=neural"
}
},
{
"task_id":"11b0c335-fb68-4e10-906e-6c8ac4fcb0f0",
"task_name":"callinfo",
"end_time_epoch":1663276155,
"task_raw_params":{
"items":[
{
"type":"text",
"label":"Nome",
"value":"FULANO DE TAL"
},
{
"type":"text",
"label":"CPF/CNPJ",
"value":"111.111.111-11"
},
{
"type":"text",
"label":"Cidade",
"value":"Acapulco"
},
{
"type":"text",
"label":"ID do Assinante",
"value":"{{ status_contrato.idassinante }}"
}
]
},
"start_time_epoch":1663276155,
"task_description":"Informação da chamada",
"task_execution_info":{
"error_msg":null,
"request_data":[
{
"type":"text",
"label":"Nome",
"value":"FULANO DE TAL"
},
{
"type":"text",
"label":"CPF/CNPJ",
"value":"111.111.111-11"
},
{
"type":"text",
"label":"Cidade",
"value":"Acapulco"
},
{
"type":"text",
"label":"ID do Assinante",
"value":"610012"
}
],
"response_data":"OK"
}
},
{
"task_id":"fe222224-5031-4f25-98c8-0f91b98bde41",
"task_name":"transfer",
"end_time_epoch":1663276155,
"task_raw_params":{
"context":"out-extensions",
"variables":{
},
"destination_id":"1",
"destination_name":"Customer Success",
"destination_type":"queue",
"destination_number":"1005"
},
"start_time_epoch":1663276155,
"task_description":"Fila CS",
"task_execution_info":{
"context":"out-extensions",
"destination_number":"1005"
}
}
],
"studio_version":"6d29b96",
"exit_time_epoch":1663276155,
"caller_id_number":"9998",
"enter_time_epoch":1663276130,
"call_flow_version":16,
"destination_number":"99990001",
"system_hangup_reason":null,
"hangup_classification":null,
"exit_transfer_destination":"1005",
"exit_transfer_destination_id":"1"
} |