{
  "$schema": "https://pinlyx.com/resources/schema/widget-triggers.json",
  "version": 1,
  "description": "Five core proactive triggers plus five industry variants. Set under Live Chat > Widgets > [yours] > Triggers. Run at most two at a time; a widget that opens on every page reads as a popup.",
  "core": [
    {
      "id": "pricing-dwell",
      "name": "Pricing page dwell",
      "condition": {
        "path": "/pricing",
        "secondsOnPage": 10
      },
      "message": "Any questions about which plan fits? Happy to help.",
      "why": "The single highest-converting trigger on almost every site."
    },
    {
      "id": "exit-intent",
      "name": "Exit intent",
      "condition": {
        "event": "exit_intent",
        "minSecondsOnSite": 20
      },
      "message": "Before you go: anything I can answer?",
      "why": "Desktop only. Mobile has no reliable exit signal."
    },
    {
      "id": "long-read",
      "name": "Long-form scroll",
      "condition": {
        "scrollPercent": 60,
        "minWords": 800
      },
      "message": "Enjoying the read? I can point you at the practical version.",
      "why": "For blog and guide pages. Never on a landing page."
    },
    {
      "id": "returning-visitor",
      "name": "Returning visitor",
      "condition": {
        "visitCount": 3
      },
      "message": "Welcome back. Want a walkthrough this time?",
      "why": "Third visit is where curiosity becomes intent."
    },
    {
      "id": "checkout-hesitation",
      "name": "Checkout hesitation",
      "condition": {
        "path": "/checkout",
        "secondsOnPage": 45
      },
      "message": "Stuck on anything? I can help right now.",
      "why": "Highest revenue-per-trigger of the five."
    }
  ],
  "industryVariants": [
    {
      "id": "saas-docs",
      "name": "SaaS: docs frustration",
      "condition": {
        "pathPrefix": "/docs",
        "pagesViewed": 4,
        "withinMinutes": 5
      },
      "message": "Looks like you are hunting for something. What are you trying to do?",
      "why": "Four docs pages in five minutes means the docs failed."
    },
    {
      "id": "ecom-cart",
      "name": "Ecommerce: cart page",
      "condition": {
        "path": "/cart",
        "secondsOnPage": 30
      },
      "message": "Question about shipping or sizing? Ask away.",
      "why": "Shipping cost is the top abandonment reason."
    },
    {
      "id": "agency-case-study",
      "name": "Agency: case study viewer",
      "condition": {
        "pathPrefix": "/work",
        "pagesViewed": 2
      },
      "message": "Want to see something closer to your industry?",
      "why": "Two case studies means they are shortlisting."
    },
    {
      "id": "education-course",
      "name": "Education: course page",
      "condition": {
        "pathPrefix": "/courses",
        "secondsOnPage": 60
      },
      "message": "Not sure which course is right? Tell me your goal.",
      "why": "Long dwell on a course page is choice paralysis."
    },
    {
      "id": "b2b-enterprise",
      "name": "B2B: security or compliance page",
      "condition": {
        "pathIn": [
          "/security",
          "/compliance",
          "/dpa"
        ],
        "secondsOnPage": 20
      },
      "message": "Need our security documentation? I can send it over.",
      "why": "Only serious buyers read the security page."
    }
  ],
  "rules": {
    "maxTriggersPerSession": 1,
    "cooldownHours": 24,
    "suppressIfChatOpenedManually": true,
    "suppressOnMobileFor": [
      "exit-intent"
    ]
  }
}
