Connection


HTTP
golem.ai:3004/http

HTTPS
golem.ai:3005/http

Web Socket
golem.ai:3004/ws

Web Socket Sécurisé (WSS)
golem.ai:3005/ws

TCP
golem.ai:3003

Answer to a request

Content

Content of what we are answered to a "request" message.

Example

Example of a simple answer

request
   {
     "type": "request",
     "token": "55dfc6b3c95e07e57ee78fe34b66891d",
     "text": "rouen toulouze demain",
     "language": "fr",
     "labelling": false,
     "parameters_detail": false,
     "disable_verbose": true
   }
request_answer
   {
     "type": "answer_request",
     "call": {
       "id_interaction": "simple",
       "parameters": {
         "arrival_town": [
           "Toulouse"
         ],
         "departure_date": [
           {
             "day": 31,
             "month": 7,
             "year": 2018
           }
         ],
         "departure_town": [
           "Rouen"
         ]
       },
       "incomplete": false
     },
     "request_language": "fr",
     "request_text": "rouen toulouze demain",
     "id_request": 0,
     "time_ai": "875.057406ms",
     "time_total": "1.27298436s"
   }

Example of an answer with all the details

request
   {
     "type": "request",
     "token": "55dfc6b3c95e07e57ee78fe34b66891d",
     "text": "rouen toulouze demain",
     "language": "fr",
     "labelling": true,
     "parameters_detail": true,
     "disable_verbose": false
   }
request_answer
   {
     "type": "answer_request",
     "call": {
       "id_interaction": "simple",
       "parameters": {
         "arrival_town": [
           "Toulouse"
         ],
         "departure_date": [
           {
             "day": 31,
             "month": 7,
             "year": 2018
           }
         ],
         "departure_town": [
           "Rouen"
         ]
       },
       "incomplete": false
     },
     "request_language": "fr",
     "request_text": "rouen toulouze demain",
     "id_request": 0,
     "time_ai": "983.73469ms",
     "time_total": "1.118660826s",
     "labels": [
       {
         "type": "archetype",
         "expression": "rouen",
         "archetype": "city_france",
         "source_kind": "dict",
         "used_parameter": "departure_town"
       },
       {
         "type": "archetype",
         "expression": "toulouze",
         "archetype": "city_france",
         "source_kind": "dict",
         "used_parameter": "arrival_town",
         "spell_errors": 1,
         "corrected": "toulouse"
       },
       {
         "type": "archetype",
         "expression": " demain",
         "archetype": "date_time",
         "source_kind": "builtin",
         "used_parameter": "departure_date"
       }
     ]
   }

Do you have a question that has not been answered here ?
tech@golem.ai