// conversations.jsx — 15 conversation scripts driving the hero story loop.
// Each conversation has a transcript (caller/agent lines) and a summary that
// matches the real email template fields (subject, caller info, what the
// agent did, action items, notes).
//
// Time-of-day is mixed: most are after-hours, some are during business hours
// (rush, owner stepped out) — supports the broader positioning that OpenLines
// can be a primary line, not just after-hours backup.

window.OL_CONVERSATIONS = [
  {
    business: "Sample Bakery",
    timestamp: "Fri May 16 · 09:42 PM",
    duration: "1m 14s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "agent", text: "Thanks for calling Sample Bakery — we're closed right now, but I can help with hours, our menu, or take a message." },
      { who: "caller", text: "Hi — are you open Saturday? And do you have anything gluten-free?" },
      { who: "agent", text: "Yes, Saturday we're open seven to four. Our gluten-free almond cake and oat cookies are available daily." },
      { who: "caller", text: "Perfect — I'll come by tomorrow." },
    ],
    summary: {
      summary: "Caller asked about Saturday hours and gluten-free options. Planning a visit tomorrow.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Confirmed Saturday hours (7 AM – 4 PM)", "Listed gluten-free options"],
      actions: "No follow-up needed",
      notes: "None",
    },
  },
  {
    business: "Sample Restaurant",
    timestamp: "Thu May 15 · 11:18 PM",
    duration: "2m 32s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "Hi — do you have a table open for 12 next Friday?" },
      { who: "agent", text: "Large parties are booked directly with the manager. Can I take your name and number?" },
      { who: "caller", text: "Sure, Marisol Perez, 503-555-0142." },
      { who: "agent", text: "Got it. The manager will call you back tomorrow morning to confirm." },
    ],
    summary: {
      summary: "Party of 12 reservation request for next Friday. Needs manager callback.",
      caller: { name: "Marisol Perez", phone: "(503) 555-0142" },
      handled: ["Explained large-party policy", "Captured name + callback number"],
      actions: "Manager to call Marisol tomorrow AM to confirm party of 12",
      notes: "None",
    },
  },
  {
    business: "Sample Dental",
    timestamp: "Sun May 11 · 06:14 AM",
    duration: "1m 48s",
    endReason: "Callback requested · urgent",
    transcript: [
      { who: "caller", text: "I think I cracked a tooth last night and it's killing me." },
      { who: "agent", text: "I'm sorry. We have an emergency line for situations like this — let me get your name and number and Dr. Reyes will call you within the hour." },
      { who: "caller", text: "Tom Whitfield, 971-555-0188." },
      { who: "agent", text: "Thank you Tom. Hang tight — you'll hear back shortly." },
    ],
    summary: {
      summary: "Caller reports possible cracked tooth with significant pain. Marked urgent.",
      caller: { name: "Tom Whitfield", phone: "(971) 555-0188" },
      handled: ["Triaged as dental emergency", "Captured callback info"],
      actions: "Dr. Reyes to call Tom within 1 hour (URGENT)",
      notes: "Caller in pain. Recommend prioritizing.",
    },
  },
  {
    business: "Sample Salon",
    timestamp: "Tue May 13 · 08:55 PM",
    duration: "1m 02s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "agent", text: "Linden and Co — how can I help?" },
      { who: "caller", text: "Do you do balayage? And how much usually?" },
      { who: "agent", text: "We do. Pricing depends on length and condition — a consult is free and runs about 15 minutes. Want me to note your interest for the front desk?" },
      { who: "caller", text: "No, I'll book online. Thanks." },
    ],
    summary: {
      summary: "Caller asked about balayage services. Will book online.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Confirmed balayage offered", "Explained consult process"],
      actions: "No follow-up needed",
      notes: "None",
    },
  },
  {
    business: "Sample Gym",
    timestamp: "Wed May 14 · 10:08 PM",
    duration: "1m 51s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "I need to pause my membership for two months — I'm having surgery." },
      { who: "agent", text: "I can flag this for the manager. Can I get your name and the email on the account?" },
      { who: "caller", text: "Devon Asaro, devon dot asaro at gmail." },
      { who: "agent", text: "Thanks Devon. The manager will reach out tomorrow to process the pause." },
    ],
    summary: {
      summary: "Member needs to pause account for two months due to upcoming surgery.",
      caller: { name: "Devon Asaro", phone: "Not collected" },
      handled: ["Logged pause request", "Captured email on file"],
      actions: "Manager to process 2-month pause for devon.asaro@gmail.com",
      notes: "Medical context — handle with care.",
    },
  },
  {
    business: "Sample Plumbing",
    timestamp: "Sat May 17 · 02:31 AM",
    duration: "2m 09s",
    endReason: "Callback requested · urgent",
    transcript: [
      { who: "caller", text: "I have water coming through my kitchen ceiling. Like, a lot." },
      { who: "agent", text: "That sounds like an emergency. I'm flagging this for the on-call tech right now. Can I get your name and a callback number?" },
      { who: "caller", text: "Beth Tanaka, 503-555-0167." },
      { who: "agent", text: "Got it Beth. Someone will call you back within 20 minutes." },
    ],
    summary: {
      summary: "Active water leak through kitchen ceiling.",
      caller: { name: "Beth Tanaka", phone: "(503) 555-0167" },
      handled: ["Triaged as emergency", "Flagged for on-call tech"],
      actions: "On-call tech to call Beth within 20 min (URGENT)",
      notes: "Active flooding. Priority.",
    },
  },
  {
    business: "Sample Pet Groomer",
    timestamp: "Mon May 12 · 07:14 PM",
    duration: "0m 56s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "caller", text: "What time can I drop off my dog Wednesday?" },
      { who: "agent", text: "Drop-off is between 8 and 9 AM on appointment days. Pickup's by 3." },
      { who: "caller", text: "Got it, thanks." },
    ],
    summary: {
      summary: "Caller confirmed drop-off and pickup windows for Wednesday appointment.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Stated drop-off (8–9 AM) and pickup (by 3 PM)"],
      actions: "No follow-up needed",
      notes: "None",
    },
  },
  {
    business: "Sample Auto Shop",
    timestamp: "Fri May 16 · 06:47 AM",
    duration: "1m 38s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "I've got a grinding noise when I brake. Can someone look at it today?" },
      { who: "agent", text: "I'll need to check the schedule with the shop, but brake issues are usually fit in same-day. Can I get your name, vehicle, and a callback number?" },
      { who: "caller", text: "Ramon Vega, 2017 Subaru Outback, 971-555-0193." },
      { who: "agent", text: "Thanks Ramon. The shop will call you back by 8 AM." },
    ],
    summary: {
      summary: "Same-day brake inspection request — grinding noise on braking.",
      caller: { name: "Ramon Vega", phone: "(971) 555-0193" },
      handled: ["Captured vehicle (2017 Subaru Outback)", "Logged brake symptom"],
      actions: "Shop to call Ramon by 8 AM to schedule same-day inspection",
      notes: "Safety issue — recommend prioritizing.",
    },
  },
  {
    business: "Sample Florist",
    timestamp: "Thu May 15 · 06:02 AM",
    duration: "1m 25s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "I know this is a long shot — I need ceremony arrangements for a wedding tomorrow. The original florist canceled." },
      { who: "agent", text: "Same-day weddings are case by case — let me get the details to the owner. What's your name and number?" },
      { who: "caller", text: "Priya Kuruvilla, 503-555-0124. Ceremony's at four." },
      { who: "agent", text: "Got it Priya — the owner will call you within the hour." },
    ],
    summary: {
      summary: "Last-minute wedding florals request after original florist canceled.",
      caller: { name: "Priya Kuruvilla", phone: "(503) 555-0124" },
      handled: ["Captured event details (ceremony tomorrow at 4 PM)", "Flagged for owner"],
      actions: "Owner to call Priya within 1 hour to confirm capacity",
      notes: "Time-sensitive — wedding is tomorrow.",
    },
  },
  {
    business: "Sample Cleaning Service",
    timestamp: "Wed May 14 · 09:18 PM",
    duration: "1m 12s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "caller", text: "What's your rate for a three-bedroom deep clean?" },
      { who: "agent", text: "Three-bedroom deep cleans typically run between 280 and 360 depending on square footage and condition. We give exact quotes after a 10-minute walkthrough." },
      { who: "caller", text: "Okay, I'll request a walkthrough on your site." },
    ],
    summary: {
      summary: "Caller asked for a three-bedroom deep-clean estimate. Will request walkthrough online.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Gave estimated range ($280–$360)", "Explained walkthrough process"],
      actions: "No follow-up needed",
      notes: "None",
    },
  },
  {
    business: "Sample Electric",
    timestamp: "Tue May 13 · 11:46 PM",
    duration: "1m 44s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "Half my house lost power but the breaker won't reset. Is this something you do?" },
      { who: "agent", text: "That sounds like a panel issue. I'll get an electrician on the line tonight — can I get your name and number?" },
      { who: "caller", text: "Jordan Pace, 971-555-0156." },
      { who: "agent", text: "Thanks Jordan. Expect a call within 30 minutes." },
    ],
    summary: {
      summary: "Partial power loss with breaker that won't reset.",
      caller: { name: "Jordan Pace", phone: "(971) 555-0156" },
      handled: ["Triaged as electrical issue", "Flagged for on-call electrician"],
      actions: "On-call electrician to call Jordan within 30 min",
      notes: "Possible safety concern — do not delay.",
    },
  },
  {
    business: "Sample Coffee Shop",
    timestamp: "Mon May 12 · 03:24 PM",
    duration: "2m 18s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "Hi — do you do off-site catering? We need coffee and pastries for 50 next Tuesday morning." },
      { who: "agent", text: "We do catering for groups of 20+. I'll pass this to the catering lead. Can I get your name, the event location, and a callback number?" },
      { who: "caller", text: "Aaron Sokolov, downtown Salem office, 503-555-0173." },
      { who: "agent", text: "Thanks Aaron. The catering lead will be in touch by end of day." },
    ],
    summary: {
      summary: "Catering request: coffee + pastries for 50 next Tuesday morning, Salem.",
      caller: { name: "Aaron Sokolov", phone: "(503) 555-0173" },
      handled: ["Confirmed catering offered", "Captured event details"],
      actions: "Catering lead to call Aaron by EOD with quote",
      notes: "Note: call came in mid-day — owner stepped out, OpenLines covered.",
    },
  },
  {
    business: "Sample Pediatric Clinic",
    timestamp: "Sat May 17 · 07:48 PM",
    duration: "1m 06s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "agent", text: "Thanks for calling — the office is closed right now. How can I help?" },
      { who: "caller", text: "I just need to know if you can fax shot records to my son's school." },
      { who: "agent", text: "Yes — records requests are handled during business hours, and the front desk can fax them with a signed release on file." },
      { who: "caller", text: "Okay, thanks." },
    ],
    summary: {
      summary: "Caller asked about faxing shot records to a school. Directed to business hours.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Explained release-on-file requirement for records request"],
      actions: "No follow-up needed (caller will call back during hours)",
      notes: "None",
    },
  },
  {
    business: "Sample Bookkeeping",
    timestamp: "Thu May 15 · 08:33 PM",
    duration: "1m 56s",
    endReason: "Callback requested",
    transcript: [
      { who: "caller", text: "Are you taking new clients for tax season? I'm a sole prop with a small Etsy shop." },
      { who: "agent", text: "We are, with a short intake call. Can I get your name, business name, and the best number?" },
      { who: "caller", text: "Hana Yi, Hana Makes Things, 503-555-0119." },
      { who: "agent", text: "Thanks Hana. We'll be in touch within two business days to set up the intake." },
    ],
    summary: {
      summary: "New-client inquiry for tax season — sole proprietor with an Etsy shop.",
      caller: { name: "Hana Yi (Hana Makes Things)", phone: "(503) 555-0119" },
      handled: ["Confirmed new clients welcome", "Captured business details"],
      actions: "Schedule intake call with Hana within 2 business days",
      notes: "None",
    },
  },
  {
    business: "Sample Music School",
    timestamp: "Wed May 14 · 08:01 PM",
    duration: "1m 27s",
    endReason: "Caller hung up · resolved",
    transcript: [
      { who: "caller", text: "How much are private piano lessons for a 9-year-old?" },
      { who: "agent", text: "Thirty-minute lessons are 38 dollars, forty-five are 52. We start with a free meet-and-greet to match teachers." },
      { who: "caller", text: "Okay, I'll sign up online." },
    ],
    summary: {
      summary: "Parent asked about pricing for a child's private piano lessons.",
      caller: { name: "Not collected", phone: "Not collected" },
      handled: ["Gave 30-min ($38) and 45-min ($52) pricing", "Explained meet-and-greet"],
      actions: "No follow-up needed",
      notes: "None",
    },
  },
];
