Get Session Attributes

Getting session attributes

Retrieve the attributes of a session using this method
Parameter NameDefault ValueRequiredDescription
session_idNULLTrueThe Session ID given when creating a session with the Create Session method

Example Success Response

This response is given when a session was successfully found and the attributes are available to view
  "success": true,
  "response_code": 200,
  "results": {
    "ai_emotion": "NEUTRAL",
    "ai_emotion_probability": 68.7434,
    "current_language": "en",
    "current_language_probability": 70.36489999999999

Session Object Structure

ai_emotionstringThe current emotion of the AI, can be 'NEUTRAL', 'HAPPINESS', 'AFFECTION', 'SADNESS' or 'ANGER'
ai_emotion_probabilityfloatThe probability calculation of the current emotion
current_languagestringThe current language that the AI predicts the conversation is based in
current_language_probabilityfloatThe probability calculation of the language detection

Example Session Not Found Response

This response is given when the given session id was not found
  "success": false,
  "response_code": 404,
  "error": {
    "error_code": 4,
    "type": "CLIENT",
    "message": "The session was not found"