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
reasonA brief explanation of why the recommendation was generatedstringClarification needed
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
recommendation_typeThe type of recommendation (matter_next_best_action, schedule, estimate)stringmatter_next_best_action
statusMetadata about the status of the recommendationobjectSee Status Properties below

Actions Properties

See AIRecommendedAction

Display Properties

NameDescriptionTypeExample
titleA human-readable title describing 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 (matter, client, business)stringclient

Target Properties

NameDescriptionTypeExample
target_actor_uidA unique identifier for the target actorstringstaff-789
target_actor_typeThe type of target actor (staff, directory)stringstaff

Status Properties

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

Example

{
  "uid": "rec-123",
  "created_at": "2025-02-04T12:00:00Z",
  "updated_at": "2025-02-04T12:30:00Z",
  "actions": [
    {
      "uid": "act-456",
      "action": "reply",
      "display": {
        "title": "Follow up with the client"
      },
      "reason": "User needs clarification on pricing",
      "payload": {"content":"Please tell me more about your carpet so I can send you a quote"},
      "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": "client"
  },
   "recommendation_type": "client_incoming_message",
  "target": {
    "target_actor_uid": "staff-789",
    "target_actor_type": "staff"
  },
  "status":{
    "dismissed": false,
    "dismissed_source_type": "user",
    "viewed": true
  }
}