{"id":2,"date":"2020-11-05T14:59:29","date_gmt":"2020-11-05T14:59:29","guid":{"rendered":"http:\/\/docs.tellya.ai\/?page_id=2"},"modified":"2021-01-12T11:02:34","modified_gmt":"2021-01-12T11:02:34","slug":"rating-controller","status":"publish","type":"page","link":"https:\/\/docs.tellya.ai\/index.php\/rating-controller\/","title":{"rendered":"Rating Controller"},"content":{"rendered":"\n<p>Il Rating Controller consente all&#8217;operatore di fornire un feedback sulle risposte fornite dall&#8217;agente virtuale.<\/p>\n\n\n\n<p>Potrebbe essere utilizzato in caso di intenti &#8220;untrusted&#8221; (intenti con valore &#8220;trusted&#8221; impostato a  &#8220;false&#8221;) o quando l&#8217;agente virtuale \u00e8 di supporto all&#8217;operatore.<\/p>\n\n\n\n<h2>Method<\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--noicon is-style-info\"><strong>POST\u200b<\/strong>: \u200b\/api\u200b\/v1\u200b\/ratings<\/p>\n\n\n\n<h3>Request body<\/h3>\n\n\n\n<table class=\"table api-table table-responsive\">\n  <thead>\n    <tr>\n      <th scope=\"col\" colspan=\"2\">Parameters<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <th scope=\"row\">dfConfidence<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Double<\/p>\n        <p>La confidenza del motore di NLU nel rilevamento dell&#8217;intento proposto. Valore compreso da 0,0 (totale incertezza) a 1,0 (totale certezza).<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">dfIntentName<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Nome dell&#8217;intento a cui il motore di NLU ha ricondotto il messaggio proveniente dall&#8217;utente finale.<\/p>\n      <\/td>\n    <\/tr>\n<tr>\n      <th scope=\"row\">dfOutputMessage<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Risposta fornita dall\u2019agente virtuale a seguito del messaggio dell&#8217;utente finale.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">dfSentiment<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Double<\/p>\n        <p>Punteggio di sentiment attributo alla messaggio dell&#8217;utente finale. Valore compreso tra -1,0 (sentiment negativo) e 1,0 (sentiment positivo).<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">idMessage<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Identificativo univoco del messaggio.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">lang<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Lingua dell&#8217;interazione conversazionale.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">operatorComment<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Commento fornito dall&#8217;operatore umano come valutazione dell&#8217;associazioni frase-intento proposta dal motore di NLU.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">operatorOutputMessage<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Risposta fornita dall&#8217;operatore umano all&#8217;utente finale (potrebbe non coincidere con la risposta <span class=\"api-parameter-type\">dfOutputMessage<\/span> proposta dall&#8217;agente virtuale).<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">operatorRatings<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Integer<\/p>\n        <p>Voto fornito fornito dall&#8217;operatore umano come valutazione dell&#8217;associazioni frase-intento proposta dal motore di NLU.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">query<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Messaggio proveniente dall&#8217;utente finale.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">sessionId<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Identificativo univoco della sessione.<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">timestamp<\/th>\n      <td>\n        <p class=\"api-parameter-type\">String<\/p>\n        <p>Data e ora in cui viene invocato il motore di NLU per risolvere l&#8217;interazione conversazionale.<\/p>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<h4>Esempio<\/h4>\n\n\n\n<table class=\"table api-table table-responsive\">\n  <thead>\n    <tr>\n      <th scope=\"col\">JSON representation<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr class=\"json-example\">\n      <td>\n        <pre><code>{\n  <span class=\"str\">\"dfConfidence\"<\/span>: <span class=\"num\">0.8946831<\/span>:,\n  <span class=\"str\">\"dfIntentName\"<\/span>: <span class=\"str\">\"Default Welcome Intent\"<\/span>,\n  <span class=\"str\">\"dfOutputMessage\"<\/span>: <span class=\"str\">\"Ciao, come posso aiutarti?\"<\/span>,\n  <span class=\"str\">\"dfSentiment\"<\/span>: <span class=\"num\">0.7<\/span>,\n  <span class=\"str\">\"idMessage\"<\/span>: <span class=\"str\">\"248d76bx-e0d1-46d8-b867-1ezz70322bh2\"<\/span>,\n  <span class=\"str\">\"lang\"<\/span>: <span class=\"str\">\"it\"<\/span>,\n  <span class=\"str\">\"operatorComment\"<\/span>: <span class=\"str\">\"Intento corretto\"<\/span>,\n  <span class=\"str\">\"operatorOutputMessage\"<\/span>: <span class=\"str\">\"Buongiorno, come posso posso aiutarti?\"<\/span>,\n  <span class=\"str\">\"operatorRatings\"<\/span>: <span class=\"num\">1<\/span>,\n  <span class=\"str\">\"query\"<\/span>: <span class=\"str\">\"Buongiorno\"<\/span>,\n  <span class=\"str\">\"sessionId\"<\/span>: <span class=\"str\">\"20axf69b-f7d9-45bc-8e11-d7ec6970d661-sp5e18z4\"<\/span>,\n  <span class=\"str\">\"timestamp\"<\/span>: <span class=\"str\">\"2020-07-21T08:09:41.488Z\"<\/span>\n}\n<\/code><\/pre>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<h2>Response<\/h2>\n\n\n\n<table class=\"table api-table table-responsive\">\n  <thead>\n    <tr>\n      <th scope=\"col\">Code<\/th>\n<th scope=\"col\">Description<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <th scope=\"row\">200<\/th>\n      <td>\n        <p class=\"api-parameter-type\">OK<\/p>\n      <\/td>\n    <\/tr>\n<tr>\n      <th scope=\"row\">401<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Unauthorized<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">403<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Forbidden<\/p>\n      <\/td>\n    <\/tr>\n    <tr>\n      <th scope=\"row\">404<\/th>\n      <td>\n        <p class=\"api-parameter-type\">Not Found<\/p>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Il Rating Controller consente all&#8217;operatore di fornire un feedback sulle risposte fornite dall&#8217;agente virtuale. Potrebbe essere utilizzato in caso di intenti &#8220;untrusted&#8221; (intenti con valore &#8220;trusted&#8221; impostato a &#8220;false&#8221;) o quando l&#8217;agente virtuale \u00e8 di supporto all&#8217;operatore. Method Request body Parameters dfConfidence Double La confidenza del motore di NLU nel&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/pages\/2"}],"collection":[{"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":20,"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":482,"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions\/482"}],"wp:attachment":[{"href":"https:\/\/docs.tellya.ai\/index.php\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}