molroo docs
WorldAPI ReferenceWorldsIdChat

Chat within world context

POST
/worlds/{id}/chat

Path Parameters

id*string

World 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/worlds/uuid/chat" \  -H "Content-Type: application/json" \  -d '{    "from": "string",    "to": "string",    "message": "string"  }'
{
  "result": {
    "entityName": "string",
    "response": {
      "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"
    },
    "affected": [
      {
        "entityName": "string",
        "response": {
          "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"
        }
      }
    ],
    "groupAwareness": [
      {
        "entityName": "string",
        "response": {
          "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"
  }
}