{
  "format": "retrochat-flow",
  "version": 1,
  "name": "Northwind Hours: sales and support",
  "exported_at": "2026-11-17T09:00:00.000Z",
  "graph": {
    "start": "welcome",
    "steps": [
      {
        "id": "welcome",
        "type": "message",
        "text": "Hi! 👋 Welcome to Northwind Hours.",
        "next": "topic"
      },
      {
        "id": "topic",
        "type": "question",
        "text": "What can we help you with today?",
        "input": "choice",
        "variable": "topic",
        "options": [
          { "id": "o_pricing", "label": "Pricing & plans", "next": "team_size" },
          { "id": "o_demo", "label": "Booking a demo", "next": "demo_email" },
          { "id": "o_question", "label": "A quick question", "next": "ask_ai" },
          { "id": "o_person", "label": "Talk to a person", "next": "who_is_online" }
        ],
        "next": null
      },
      {
        "id": "team_size",
        "type": "question",
        "text": "Great! Roughly how many people will track time?",
        "input": "number",
        "variable": "team_size",
        "options": [],
        "next": "size_check"
      },
      {
        "id": "size_check",
        "type": "condition",
        "rules": [
          { "id": "r_large", "variable": "team_size", "op": "gt", "value": "25", "next": "sales_email" }
        ],
        "else_next": "small_tip"
      },
      {
        "id": "sales_email",
        "type": "question",
        "text": "Teams your size get volume pricing. What's the best email to reach you?",
        "input": "email",
        "variable": "email",
        "options": [],
        "next": "who_is_online"
      },
      {
        "id": "small_tip",
        "type": "message",
        "text": "Good news: the Team plan covers {{team_size}} people, and you can try it free for 14 days.",
        "next": "anything_else"
      },
      {
        "id": "demo_email",
        "type": "question",
        "text": "Happy to show you around. What's your email so we can send you some times?",
        "input": "email",
        "variable": "email",
        "options": [],
        "next": "demo_done"
      },
      {
        "id": "demo_done",
        "type": "end",
        "text": "Thanks! We'll email {{email}} with a few times for a 20-minute demo."
      },
      {
        "id": "ask_ai",
        "type": "ai",
        "text": "Ask me anything about Northwind Hours: features, importing your data or billing.",
        "instructions": "Keep answers short and friendly. Suggest the free trial when it fits.",
        "max_turns": 3,
        "on_unsure": "handoff",
        "next": "anything_else"
      },
      {
        "id": "anything_else",
        "type": "question",
        "text": "Is there anything else I can help with?",
        "input": "choice",
        "variable": "more",
        "options": [
          { "id": "o_yes", "label": "Yes, talk to a person", "next": "who_is_online" },
          { "id": "o_no", "label": "No, that's all", "next": "bye" }
        ],
        "next": null
      },
      {
        "id": "who_is_online",
        "type": "condition",
        "rules": [
          { "id": "r_online", "variable": "agents_online", "op": "equals", "value": "true", "next": "to_team" }
        ],
        "else_next": "offline"
      },
      {
        "id": "to_team",
        "type": "handoff",
        "text": "Connecting you with our team now. It usually takes a minute or two."
      },
      {
        "id": "offline",
        "type": "handoff",
        "text": "Our team is offline right now. Leave your question here and we'll reply by email first thing tomorrow."
      },
      {
        "id": "bye",
        "type": "end",
        "text": "Thanks for stopping by. Happy tracking! ⏱️"
      }
    ]
  }
}
