{
  "conversation": {
    "meta": {
      "sender": {
        "additional_attributes": {
          "company_name": "<redacted>",
          "avatar_url_hash": "<redacted>",
          "last_avatar_sync_at": "2026-10-24T11:48:36Z"
        },
        "availability_status": "online",
        "email": "lab-visitor+1792842468016@example.com",
        "id": 19,
        "name": "Lab Visitor",
        "phone_number": null,
        "blocked": false,
        "identifier": null,
        "company_id": 1,
        "thumbnail": "",
        "custom_attributes": {},
        "last_activity_at": 1792842487,
        "created_at": 1792842470
      },
      "channel": "Channel::WebWidget",
      "team": {
        "id": 1,
        "name": "scheduling",
        "description": "Scheduling requests",
        "allow_auto_assign": false,
        "icon": "",
        "icon_color": "",
        "account_id": 1,
        "is_member": true
      },
      "hmac_verified": false
    },
    "id": 5,
    "messages": [
      {
        "id": 31,
        "content": "Scripted agent-user reply (posted via API token, not a human response)",
        "account_id": 1,
        "inbox_id": 1,
        "conversation_id": 5,
        "message_type": 1,
        "created_at": 1792842520,
        "updated_at": "2026-10-24T11:48:41.394Z",
        "private": false,
        "status": "read",
        "source_id": null,
        "content_type": "text",
        "content_attributes": {},
        "sender_type": "User",
        "sender_id": 2,
        "external_source_ids": {},
        "additional_attributes": {},
        "processed_message_content": "Scripted agent-user reply (posted via API token, not a human response)",
        "sentiment": {},
        "conversation": {
          "assignee_id": null,
          "unread_count": 2,
          "last_activity_at": 1792842520,
          "contact_inbox": {
            "source_id": "57691246-18df-45b3-a716-4a7434e60147"
          }
        },
        "sender": {
          "id": 2,
          "name": "Lab Agent",
          "available_name": "Lab Agent",
          "avatar_url": "",
          "type": "user",
          "availability_status": "offline",
          "thumbnail": ""
        }
      }
    ],
    "account_id": 1,
    "uuid": "87131954-f7e5-447e-a69c-c663175e207a",
    "additional_attributes": {
      "browser": {
        "device_name": "Unknown",
        "browser_name": "Chrome",
        "platform_name": "macOS",
        "browser_version": "156.0.8078.4",
        "platform_version": "10.15.7"
      },
      "referer": "https://chatwoot-bot.railsfanatics.com/",
      "initiated_at": {
        "timestamp": "Sat Oct 24 2026 17:17:59 GMT+0530 (India Standard Time)"
      },
      "browser_language": null
    },
    "agent_last_seen_at": 0,
    "assignee_last_seen_at": 0,
    "can_reply": true,
    "contact_last_seen_at": 1792842521,
    "custom_attributes": {
      "issue": "Dishwasher will not drain"
    },
    "inbox_id": 1,
    "labels": [],
    "muted": false,
    "snoozed_until": null,
    "status": "open",
    "created_at": 1792842479,
    "updated_at": 1792842521.289969,
    "timestamp": 1792842520,
    "first_reply_created_at": 1792842520,
    "unread_count": 2,
    "last_non_activity_message": {
      "id": 31,
      "content": "Scripted agent-user reply (posted via API token, not a human response)",
      "account_id": 1,
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 1,
      "created_at": 1792842520,
      "updated_at": "2026-10-24T11:48:41.394Z",
      "private": false,
      "status": "read",
      "source_id": null,
      "content_type": "text",
      "content_attributes": {},
      "sender_type": "User",
      "sender_id": 2,
      "external_source_ids": {},
      "additional_attributes": {},
      "processed_message_content": "Scripted agent-user reply (posted via API token, not a human response)",
      "sentiment": {},
      "conversation": {
        "assignee_id": null,
        "unread_count": 2,
        "last_activity_at": 1792842520,
        "contact_inbox": {
          "source_id": "57691246-18df-45b3-a716-4a7434e60147"
        }
      },
      "sender": {
        "id": 2,
        "name": "Lab Agent",
        "available_name": "Lab Agent",
        "avatar_url": "",
        "type": "user",
        "availability_status": "offline",
        "thumbnail": ""
      }
    },
    "last_activity_at": 1792842520,
    "priority": null,
    "waiting_since": 0,
    "sla_policy_id": null
  },
  "messages": [
    {
      "id": 25,
      "content": "I need to book a repair appointment",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 0,
      "content_type": "text",
      "status": "sent",
      "content_attributes": {
        "in_reply_to": null
      },
      "created_at": 1792842480,
      "private": false,
      "source_id": null,
      "sender": {
        "additional_attributes": {
          "company_name": "<redacted>",
          "avatar_url_hash": "<redacted>",
          "last_avatar_sync_at": "2026-10-24T11:48:36Z"
        },
        "custom_attributes": {},
        "email": "lab-visitor+1792842468016@example.com",
        "id": 19,
        "identifier": null,
        "name": "Lab Visitor",
        "phone_number": null,
        "thumbnail": "",
        "blocked": false,
        "contact_type": "lead",
        "type": "contact",
        "company_id": 1
      }
    },
    {
      "id": 26,
      "content": "Thanks, we've received your request. A human at Maple Street Repairs will pick this up shortly.",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 1,
      "content_type": "text",
      "status": "read",
      "content_attributes": {},
      "created_at": 1792842480,
      "private": false,
      "source_id": null,
      "sender": {
        "id": 1,
        "name": "Maple Street Lab Bot",
        "avatar_url": "",
        "type": "agent_bot"
      }
    },
    {
      "id": 27,
      "content": "Handoff summary (scripted, from pre-chat values)\nname: Lab Visitor\nemail: lab-visitor+1792842468016@example.com\nissue: Dishwasher will not drain\nRun mode: correct_handoff",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 1,
      "content_type": "text",
      "status": "read",
      "content_attributes": {},
      "created_at": 1792842480,
      "private": true,
      "source_id": null,
      "sender": {
        "id": 1,
        "name": "Maple Street Lab Bot",
        "avatar_url": "",
        "type": "agent_bot"
      }
    },
    {
      "id": 28,
      "content": "Assigned to scheduling by Maple Street Lab Bot",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 2,
      "content_type": "text",
      "status": "read",
      "content_attributes": {},
      "created_at": 1792842482,
      "private": false,
      "source_id": null
    },
    {
      "id": 29,
      "content": "Conversation was reopened by Maple Street Lab Bot",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 2,
      "content_type": "text",
      "status": "read",
      "content_attributes": {
        "activity": {
          "type": "conversation_status_changed",
          "status": "open"
        }
      },
      "created_at": 1792842482,
      "private": false,
      "source_id": null
    },
    {
      "id": 30,
      "content": "Second visitor message: any update?",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 0,
      "content_type": "text",
      "status": "sent",
      "content_attributes": {
        "in_reply_to": null
      },
      "created_at": 1792842487,
      "private": false,
      "source_id": null,
      "sender": {
        "additional_attributes": {
          "company_name": "<redacted>",
          "avatar_url_hash": "<redacted>",
          "last_avatar_sync_at": "2026-10-24T11:48:36Z"
        },
        "custom_attributes": {},
        "email": "lab-visitor+1792842468016@example.com",
        "id": 19,
        "identifier": null,
        "name": "Lab Visitor",
        "phone_number": null,
        "thumbnail": "",
        "blocked": false,
        "contact_type": "lead",
        "type": "contact",
        "company_id": 1
      }
    },
    {
      "id": 31,
      "content": "Scripted agent-user reply (posted via API token, not a human response)",
      "inbox_id": 1,
      "conversation_id": 5,
      "message_type": 1,
      "content_type": "text",
      "status": "read",
      "content_attributes": {},
      "created_at": 1792842520,
      "private": false,
      "source_id": null,
      "sender": {
        "id": 2,
        "name": "Lab Agent",
        "available_name": "Lab Agent",
        "avatar_url": "",
        "type": "user",
        "availability_status": "offline",
        "thumbnail": ""
      }
    }
  ],
  "waiting_since_before": 1792842481
}
