The Activity object

{
  "id": "activity-001",
  "type": "email-sent",
  "agentId": "PZxEFRfTGb7QEnFW63xC",
  "customerId": "ZvohVUmUXJ4ZpXFCTt2A",
  "content": {
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Meeting Reminder",
    "body": "Hello, this is a reminder for our meeting scheduled for tomorrow at 10 AM."
  },
  "createdBy": {
    "uid": "agent123",
    "role": "agent"
  },
  "createdAt": "2025-10-20T19:14:49.053Z",
  "updatedAt": "2025-10-20T19:14:49.053Z"
}

Attributes

  • id (string): A unique identifier for the activity.

  • type (string): The type of activity. Possible values include "message-sent" and "email-sent".

  • agentId (string) — ID of the agent associated with this activity.

  • customerId (string) — ID of the customer linked to this activity.

  • content (object): Activity-specific details. The structure of this object depends on the type of activity (e.g., for "email-sent", it includes from, to, subject, body).

  • createdBy (object): The info of the user that generated the activity. Can be a customer, a user or an agent.

Last updated