molroo docs
PersonaAPI ReferencePersonasIdPerceive

Send perception to persona

POST
/personas/{id}/perceive

Path Parameters

id*string

Persona ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.molroo.io/personas/uuid/perceive" \  -H "Content-Type: application/json" \  -d '{    "message": "string"  }'
{
  "result": {
    "emotion": {
      "V": -1,
      "A": -1,
      "D": -1
    },
    "discrete": {
      "primary": "string",
      "secondary": "string",
      "intensity": 0
    },
    "socialUpdates": [
      {
        "entityId": "string",
        "field": "string",
        "oldValue": 0,
        "newValue": 0
      }
    ],
    "memoryEpisode": {
      "id": "string",
      "timestamp": 0,
      "sourceEntity": "string",
      "context": "string",
      "appraisal": {
        "goal_relevance": 0,
        "goal_congruence": 0,
        "expectedness": 0,
        "controllability": 0,
        "agency": 0,
        "norm_compatibility": 0
      },
      "emotionSnapshot": {
        "V": 0,
        "A": 0,
        "D": 0
      },
      "intensity": 0,
      "importance": 0
    },
    "reflectionPrompt": {
      "system": "string",
      "user": "string"
    },
    "stageTransition": "string",
    "maskExposure": {
      "integrity": 0,
      "exposed": true,
      "triggers": [
        "string"
      ]
    },
    "goalChanges": {
      "achieved": [
        "string"
      ],
      "abandoned": [
        "string"
      ],
      "activated": [
        "string"
      ]
    },
    "text": "string",
    "property1": null,
    "property2": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
{
  "error": {
    "code": "string",
    "message": "string"
  }
}