AIRecommendation

Entity description

An AIRecommendation entity represents an AI-generated suggestion provided to a specific target. The recommendation includes actions, context, display details, and metadata regarding its status.

Properties

NameDescriptionTypeExample
uidA unique identifier for the recommendationstringrec-123
created_atThe timestamp when the recommendation was created, in ISO 8601 formatstring2025-02-04T12:00:00Z
updated_atThe timestamp when the recommendation was last updated, in ISO 8601 formatstring2025-02-04T12:30:00Z
actionsA list of recommended actions related to this entityarraySee Actions Properties below
displayContains display-related information for the recommendationobjectSee Display Properties below
contextThe context in which the recommendation was generatedobjectSee Context Properties below
targetThe target entity for this recommendation, typically representing the user or business involvedobjectSee Target Properties below
statusMetadata about the status of the recommendationobjectSee Status Properties below

Actions Properties

NameDescriptionTypeExample
actionSuggested action to takestringreply
reasonExplanation for the recommendationstringClarification needed
evidenceSupporting evidence for the recommendationarray["User asked for price estimate"]
confidenceConfidence level of the recommendation (0-1)number0.85

Display Properties

NameDescriptionTypeExample
titleTitle for the recommendationstringWe recommend replying to the user's message.

Context Properties

NameDescriptionTypeExample
context_uidA unique identifier for the context associatedstringctx-456
context_typeThe type of context (e.g., 'user_message')stringuser_message

Target Properties

NameDescriptionTypeExample
target_actor_uidA unique identifier for the target actorstringuser-789
target_actor_typeThe type of target actor (e.g., 'customer')stringcustomer

Status Properties

NameDescriptionTypeExample
dismissedIndicates whether the recommendation has been dismissedbooleanfalse
dismissed_source_typeSource of dismissal (user, system)stringuser
viewedIndicates whether the recommendation has been viewedbooleantrue

Example

{
  "uid": "rec-123",
  "created_at": "2025-02-04T12:00:00Z",
  "updated_at": "2025-02-04T12:30:00Z",
  "actions": [
    {
      "action": "reply",
      "reason": "Clarification needed",
      "evidence": ["User asked for price estimate"],
      "confidence": 0.85
    }
  ],
  "display": {
    "title": "We recommend replying to the user's message."
  },
  "context": {
    "context_uid": "ctx-456",
    "context_type": "user_message"
  },
  "target": {
    "target_actor_uid": "user-789",
    "target_actor_type": "customer"
  },
  "status":{ 
    "dismissed": false,
    "dismissed_source_type": "user",
    "viewed": true
  }
}