curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/insights/gaps \
--header 'Authorization: Bearer <token>'import requests
url = "https://{space}.{region}.api.niadra.com/v1/insights/gaps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{space}.{region}.api.niadra.com/v1/insights/gaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{space}.{region}.api.niadra.com/v1/insights/gaps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{space}.{region}.api.niadra.com/v1/insights/gaps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{space}.{region}.api.niadra.com/v1/insights/gaps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/insights/gaps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gaps": [
{
"could_record": [
{
"name": "<string>",
"source_id": "<string>",
"via": "mapping"
}
],
"customers": 123,
"key": "<string>",
"kind": "no_record",
"subject": "<string>",
"topic": "<string>",
"turns": 123,
"answered_share": 123,
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"proposals": [
{
"key": "<string>",
"kind": "not_recorded",
"subject": "<string>",
"text": "<string>",
"topic": "<string>",
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"recurring": [
{
"answered_share": 123,
"customers": 123,
"key": "<string>",
"subject": "<string>",
"topic": "<string>",
"turns": 123,
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"since": "2023-12-25",
"until": "2023-12-25",
"withheld_groups": 123
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Lacunas de conhecimento
O que os clientes perguntam e a memória não tem, qual fonte poderia gravar, as perguntas que ela responde sempre e as respostas prontas propostas; contagens, nunca um cliente.
curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/insights/gaps \
--header 'Authorization: Bearer <token>'import requests
url = "https://{space}.{region}.api.niadra.com/v1/insights/gaps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{space}.{region}.api.niadra.com/v1/insights/gaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{space}.{region}.api.niadra.com/v1/insights/gaps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{space}.{region}.api.niadra.com/v1/insights/gaps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{space}.{region}.api.niadra.com/v1/insights/gaps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/insights/gaps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gaps": [
{
"could_record": [
{
"name": "<string>",
"source_id": "<string>",
"via": "mapping"
}
],
"customers": 123,
"key": "<string>",
"kind": "no_record",
"subject": "<string>",
"topic": "<string>",
"turns": 123,
"answered_share": 123,
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"proposals": [
{
"key": "<string>",
"kind": "not_recorded",
"subject": "<string>",
"text": "<string>",
"topic": "<string>",
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"recurring": [
{
"answered_share": 123,
"customers": 123,
"key": "<string>",
"subject": "<string>",
"topic": "<string>",
"turns": 123,
"review": {
"decided_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"decision": "accepted",
"note": "<string>"
}
}
],
"since": "2023-12-25",
"until": "2023-12-25",
"withheld_groups": 123
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Autorizações
nia_sk_...
Parâmetros de consulta
A janela, em dias; as contagens contam cada cliente uma vez dentro dela.
1 <= x <= 90Resposta
As lacunas, as perguntas recorrentes e as propostas da janela, com os grupos retidos.
O que os clientes perguntam e a memória não consegue responder, e o que ela responde sempre. Contagens por assunto e categoria, nunca um cliente, um valor ou um texto.
O que os clientes pediram e a memória não tinha registro, ou os agentes tiveram de perguntar a clientes que voltaram.
Show child attributes
Show child attributes
Respostas prontas propostas por regra; nada chega aos agentes até o time aprovar a configuração.
Show child attributes
Show child attributes
As perguntas que a memória responde sempre, por assunto e categoria.
Show child attributes
Show child attributes
Início da janela.
Fim da janela.
Grupos deixados de fora: menos clientes do que o tamanho mínimo de grupo, ou uma categoria que a política do analista nega.

