{
  "version": 1,
  "site": "Noris Crusher Dashboard",
  "fallback": "I'm not sure about that one yet. I can help with: Dashboards, Sales, Purchases, Materials, Vehicles, Production, Accounts, Inventory, Employees, Diesel, GST/Invoices, Reports, and Authentication. Try asking something like 'how do I add a vehicle' or 'where are sales reports'.",
  "smalltalk": [
    {
      "topic": "greeting",
      "keywords": ["hi", "hello", "hey", "hai", "hii", "namaste", "namaskaram", "good morning", "good evening", "good afternoon"],
      "answer": "Hello! I'm the Noris Crusher assistant. Ask me anything about the system — sales, vehicles, materials, reports, you name it."
    },
    {
      "topic": "thanks",
      "keywords": ["thanks", "thank you", "thx", "ty", "appreciate"],
      "answer": "You're welcome! Let me know if anything else comes up."
    },
    {
      "topic": "bye",
      "keywords": ["bye", "goodbye", "see you", "cya", "later"],
      "answer": "Goodbye! Have a great day."
    },
    {
      "topic": "identity",
      "keywords": ["who are you", "what are you", "your name", "what is this", "what can you do"],
      "answer": "I'm the Noris Crusher Assistant — built specifically for this dashboard. I know every module: Sales, Purchases, Materials, Vehicles, Production, Accounts, Inventory, Employees, Diesel, GST, Reports, and the Masters/Setup screens. Ask me how to do anything."
    },
    {
      "topic": "help-general",
      "keywords": ["help", "support", "what can i ask", "menu", "options", "modules"],
      "answer": "Here are the main areas I know about:\n• Dashboards — Financial, Material, AI Analytics\n• Sales — invoices, debitors, GST/non-GST, aging, reports\n• Purchases & Creditors\n• Materials — master data, rates, stock\n• Vehicles — fleet, maintenance, KM readings\n• Production — daily/monthly/yearly\n• Accounts — ledgers, vouchers, cash in/out, journals\n• Inventory — issue, stock, balance\n• Diesel — issue, flow, mileage, reports\n• Employees — attendance, advances, statements\n• Yard — weight, stock, reports\n• Quarry — contractors, DC slips, compressor, transport\n• GST Invoices\n• Reports — Income Statement, Aging, Statements\n• Masters/Setup — Sources, Logins, Banks, Materials, Roles\n• Company Setup\n\nAsk me about any of these."
    },
    {
      "topic": "date-today",
      "keywords": ["today", "date", "what day", "current date"],
      "answer": "I'll show you the current server date when I generate this reply (handled by the API)."
    }
  ],
  "auth": [
    {
      "topic": "login",
      "keywords": ["login", "sign in", "log in", "signin", "cannot login", "can't login", "unable to login"],
      "answer": "Sign in from the Login screen using your registered mobile number and password. If you can't get in, double-check your credentials and ask your administrator to confirm your account is active.",
      "route": "/login"
    },
    {
      "topic": "register",
      "keywords": ["register", "signup", "sign up", "create account", "new account"],
      "answer": "New accounts can be created from the Register screen.",
      "route": "/register"
    },
    {
      "topic": "forgot-password",
      "keywords": ["forgot password", "reset password", "lost password", "password reset", "can't remember password"],
      "answer": "Use the Forgot Password screen — you'll receive a reset link by email. After resetting, sign in with the new password.",
      "route": "/forgot-password"
    },
    {
      "topic": "logout",
      "keywords": ["logout", "log out", "sign out", "signout"],
      "answer": "Click your profile avatar in the top-right of the header — there's a Logout option in the dropdown."
    },
    {
      "topic": "2fa",
      "keywords": ["two step", "two-step", "2fa", "otp", "verification code", "two factor"],
      "answer": "If two-step verification is enabled for your account, you'll be asked for a one-time code after entering your password.",
      "route": "/two-step-verification"
    },
    {
      "topic": "lock-screen",
      "keywords": ["lock screen", "screen locked", "unlock", "session locked"],
      "answer": "If your session is locked, re-enter your password on the lock screen to resume.",
      "route": "/lock-screen"
    },
    {
      "topic": "permissions",
      "keywords": ["permission", "access denied", "no access", "role", "not allowed", "restricted", "can't see"],
      "answer": "What you can see depends on the role assigned to you. If a module is missing or you can't open a page, ask your administrator to grant the right permissions under the Roles master."
    }
  ],
  "modules": [
    {
      "topic": "financial-dashboard",
      "keywords": ["financial dashboard", "finance dashboard", "money dashboard", "revenue dashboard", "main dashboard", "home"],
      "answer": "The Financial Dashboard shows key financial KPIs — revenue, receivables, payables, cash position. Open it from the sidebar.",
      "route": "/financial-dashborad"
    },
    {
      "topic": "material-dashboard",
      "keywords": ["material dashboard", "stock dashboard", "inventory dashboard", "materials overview"],
      "answer": "The Material Dashboard shows inventory and material KPIs at a glance.",
      "route": "/material"
    },
    {
      "topic": "ai-analytics",
      "keywords": ["ai analytics", "analytics", "insights", "ai dashboard", "smart analytics"],
      "answer": "AI Analytics gives you data-driven insights across the business. Open it from the sidebar.",
      "route": "/ai-analytics"
    },

    {
      "topic": "sources",
      "keywords": ["sources", "source list", "source master", "data source"],
      "answer": "Manage your data sources from Masters → Sources. You can Add, Edit, or Delete entries.",
      "route": "/sources-list"
    },
    {
      "topic": "login-master",
      "keywords": ["user list", "manage users", "logins master", "create user", "add user"],
      "answer": "Add or manage user logins from Masters → Logins.",
      "route": "/login-list"
    },
    {
      "topic": "banks",
      "keywords": ["banks", "bank master", "bank account", "add bank"],
      "answer": "Bank accounts are configured under Masters → Banks. Use Add to create a new bank record.",
      "route": "/banks-list"
    },
    {
      "topic": "materials-master",
      "keywords": ["material master", "add material", "material list", "material types", "gst material"],
      "answer": "Define materials and map them to GST rates under Masters → Materials.",
      "route": "/material-list"
    },
    {
      "topic": "roles",
      "keywords": ["roles", "role master", "user roles", "permissions list", "set permissions", "assign role"],
      "answer": "Create or edit user roles — and assign which modules each role can see — under Masters → Roles.",
      "route": "/roles"
    },

    {
      "topic": "contractors",
      "keywords": ["contractor", "contractor list", "quarry contractor", "contractor payable", "contractor paid"],
      "answer": "Manage quarry contractors with payable/paid tracking from Quarry → Contractors. You can Add, Edit, Bulk Import, and Export.",
      "route": "/contractor-list"
    },
    {
      "topic": "contractor-statement",
      "keywords": ["contractor statement", "contractor payments", "contractor balance", "contractor account"],
      "answer": "View each contractor's payment statement and balance under Quarry → Contractor Statement.",
      "route": "/contractor-statement"
    },
    {
      "topic": "dc-slips",
      "keywords": ["dc slip", "delivery challan", "dc", "rmc slip", "challan"],
      "answer": "Delivery challan slips for RMC operations are managed under Quarry → DC Slips.",
      "route": "/dc-slips"
    },
    {
      "topic": "input-materials",
      "keywords": ["input material", "raw material", "rmc input", "incoming material"],
      "answer": "Track raw materials going into RMC under Quarry → Input Materials.",
      "route": "/input-materials"
    },
    {
      "topic": "compressor",
      "keywords": ["compressor", "compressor list", "compressor equipment"],
      "answer": "Manage compressor equipment under Quarry → Compressor.",
      "route": "/compresser-list"
    },
    {
      "topic": "quarry-transport",
      "keywords": ["quarry transport", "transport list", "transport operations"],
      "answer": "Quarry transport and logistics records are under Quarry → Transport.",
      "route": "/transport-list"
    },
    {
      "topic": "quarry-reports",
      "keywords": ["quarry report", "quarry reports", "quarry summary"],
      "answer": "Reports on quarry operations are under Quarry → Reports.",
      "route": "/report-list"
    },

    {
      "topic": "daily-production",
      "keywords": ["daily production", "production today", "today output", "boulders", "daily output"],
      "answer": "Daily production — boulders, sales, balances — is under Production → Daily.",
      "route": "/daily-list"
    },
    {
      "topic": "monthly-production",
      "keywords": ["monthly production", "month production", "production summary monthly"],
      "answer": "Monthly production summary is under Production → Monthly.",
      "route": "/monthly-list"
    },
    {
      "topic": "yearly-production",
      "keywords": ["yearly production", "annual production", "production summary yearly", "year output"],
      "answer": "Yearly production summary is under Production → Yearly.",
      "route": "/yearly-list"
    },
    {
      "topic": "sales-amount",
      "keywords": ["sales amount", "production value", "sales value"],
      "answer": "Production value and sales tracking is under Production → Sales Amount.",
      "route": "/sales-amount"
    },

    {
      "topic": "sales-overview",
      "keywords": ["sales", "sell", "selling", "revenue", "income"],
      "answer": "The Sales module covers debitors (registered & unregistered), GST and Non-GST sales, statements, debitor reports, summary, and aging. Pick a specific area in the sidebar or ask me about it."
    },
    {
      "topic": "reg-debitors",
      "keywords": ["registered debitor", "reg debitor", "registered customer", "gst customer"],
      "answer": "Registered debitor accounts (with balances) are under Sales → Reg Debitors. You can Add, Edit, and Filter.",
      "route": "/sales-reg-debitors-1"
    },
    {
      "topic": "unreg-debitors",
      "keywords": ["unregistered debitor", "un reg debitor", "non-gst customer", "walk-in customer", "un-reg debitor"],
      "answer": "Unregistered customer accounts are under Sales → Un-Reg Debitors.",
      "route": "/sale-un-reg-debitors"
    },
    {
      "topic": "sales-reports",
      "keywords": ["sales report", "sales reports", "sales analytics", "sales summary"],
      "answer": "Open Sales → Sales Reports for comprehensive sales reporting. You can filter and export.",
      "route": "/sales-reports"
    },
    {
      "topic": "non-gst-sales",
      "keywords": ["non gst sales", "non-gst", "no gst sales", "untaxed sales"],
      "answer": "Non-taxable sales transactions are under Sales → Non-GST Sales.",
      "route": "/non-gst-sales"
    },
    {
      "topic": "gst-sales",
      "keywords": ["gst sales", "taxable sales", "gst transactions"],
      "answer": "GST-taxable sales transactions are under Sales → GST Sales.",
      "route": "/sale-gst-sales"
    },
    {
      "topic": "sales-statement",
      "keywords": ["sales statement", "customer statement", "party statement"],
      "answer": "Customer-wise sales statements are under Sales → Sales Statement.",
      "route": "/sales-statement"
    },
    {
      "topic": "debitor-report",
      "keywords": ["debitor report", "debtor report", "customer report", "receivable analysis"],
      "answer": "Debitor account analysis is under Sales → Debitor Report.",
      "route": "/sales-debitor-report"
    },
    {
      "topic": "debitor-summary",
      "keywords": ["debitor summary", "debtor summary", "outstanding summary", "balance summary"],
      "answer": "A summary of all debitor balances is under Sales → Debitor Summary.",
      "route": "/sale-debitor-summary"
    },
    {
      "topic": "aging",
      "keywords": ["aging", "ageing", "receivables aging", "overdue", "old dues"],
      "answer": "Receivables aging analysis is under Sales → Aging.",
      "route": "/aging"
    },

    {
      "topic": "yard-weight",
      "keywords": ["yard weight", "normal wmt", "yard wmt"],
      "answer": "Yard weight management is under Yard → Normal Wmt.",
      "route": "/yard-normal-wmt"
    },
    {
      "topic": "yard-stock",
      "keywords": ["yard stock", "yard inventory", "yard balance"],
      "answer": "Current yard inventory levels are under Yard → Yard Stock.",
      "route": "/yard-stock"
    },
    {
      "topic": "yard-reports",
      "keywords": ["yard report", "yard reports", "yard summary"],
      "answer": "Yard operations and performance reports are under Yard → Reports.",
      "route": "/yard-reports"
    },

    {
      "topic": "transporters",
      "keywords": ["transporter", "transporter list", "haulage company"],
      "answer": "Manage transporter entities from Transporter → Transporters.",
      "route": "/trans-porter-list"
    },
    {
      "topic": "transporter-vehicles",
      "keywords": ["transporter vehicle", "transporter trucks", "vehicles by transporter"],
      "answer": "Vehicles managed by transporters are under Transporter → Vehicles.",
      "route": "/transporter-vehicle"
    },
    {
      "topic": "transporter-reports",
      "keywords": ["transporter report", "transport billing", "transporter summary"],
      "answer": "Transport performance and billing reports are under Transporter → Reports.",
      "route": "/trans-port-reports"
    },
    {
      "topic": "transporter-statement",
      "keywords": ["transporter statement", "transporter payment", "transporter balance"],
      "answer": "Payment statements for transporters are under Transporter → Statement.",
      "route": "/transporter-statement"
    },

    {
      "topic": "ledger-creation",
      "keywords": ["ledger creation", "create ledger", "new ledger", "gl account", "general ledger"],
      "answer": "Create or manage GL ledger accounts under Accounts → Ledger Creation.",
      "route": "/account-ledger-list"
    },
    {
      "topic": "ledger-type",
      "keywords": ["ledger type", "ledger category", "asset liability", "ledger group"],
      "answer": "Ledger categories (Asset, Liability, Income, Expense) are managed under Accounts → Ledger Type.",
      "route": "/account-ledger-type"
    },
    {
      "topic": "spares",
      "keywords": ["spares", "spare parts", "maintenance parts"],
      "answer": "The maintenance spare parts ledger is under Accounts → Spares.",
      "route": "/spares"
    },
    {
      "topic": "vouchers",
      "keywords": ["voucher", "vouchers", "accounting voucher", "voucher entry"],
      "answer": "Enter accounting vouchers under Accounts → Vouchers.",
      "route": "/account-voucher"
    },
    {
      "topic": "contra",
      "keywords": ["contra", "bank transfer", "bank to bank", "contra voucher"],
      "answer": "Bank-to-bank transfer vouchers are entered under Accounts → Contra.",
      "route": "/account-contra"
    },
    {
      "topic": "reg-creditors",
      "keywords": ["creditor", "supplier", "vendor", "registered creditor", "reg creditor", "payable"],
      "answer": "Supplier/creditor accounts are under Accounts → Reg Creditors.",
      "route": "/account-reg-list"
    },
    {
      "topic": "purchase-bills",
      "keywords": ["purchase bill", "purchase entry", "day book", "purchase invoice", "vendor bill"],
      "answer": "Enter and track purchase bills under Accounts → Purchase Bills (Day Book).",
      "route": "/account-day-book"
    },
    {
      "topic": "journals",
      "keywords": ["journal", "journal entry", "manual entry", "adjustment"],
      "answer": "Record journal entries under Accounts → Journals.",
      "route": "/account-jourmal"
    },
    {
      "topic": "cash-in",
      "keywords": ["cash in", "receipts", "money received", "collection", "incoming cash", "received payment"],
      "answer": "Record money received (with bulk update support) under Accounts → Cash In / Receipts.",
      "route": "/acccount-cash-in"
    },
    {
      "topic": "cash-out",
      "keywords": ["cash out", "payments", "money paid", "outgoing cash", "made payment", "paid"],
      "answer": "Record money disbursed (with bulk update support) under Accounts → Cash Out / Payments.",
      "route": "/account-cash-out"
    },
    {
      "topic": "weight-bridge",
      "keywords": ["weight bridge", "weighbridge", "weight reconcile"],
      "answer": "Weight measurement reconciliation is under Accounts → Weight Bridge.",
      "route": "/WeightBridge"
    },
    {
      "topic": "accounts-reports",
      "keywords": ["account report", "accounting report", "trial balance", "financial report"],
      "answer": "Trial balance and other financial reports are under Accounts → Reports.",
      "route": "/account-reports"
    },

    {
      "topic": "inventory-issue",
      "keywords": ["inventory issue", "issue material", "material consumption", "stock issue"],
      "answer": "Track material issue/consumption under Inventory → Issue.",
      "route": "/inventory-issue"
    },
    {
      "topic": "inventory-stock",
      "keywords": ["inventory stock", "current stock", "stock levels", "available stock"],
      "answer": "Current inventory levels are under Inventory → Stock.",
      "route": "/inventory-stock"
    },
    {
      "topic": "inventory-balance",
      "keywords": ["inventory balance", "balance list", "stock reconciliation"],
      "answer": "Inventory balance reconciliation is under Inventory → Balance.",
      "route": "/balance-list"
    },

    {
      "topic": "diesel-issue",
      "keywords": ["diesel issue", "fuel issue", "fuel distribution", "diesel given"],
      "answer": "Track fuel distribution under Diesel → Issue.",
      "route": "/diesel-issue-list"
    },
    {
      "topic": "diesel-reports",
      "keywords": ["diesel report", "fuel report", "diesel consumption"],
      "answer": "Fuel consumption reports are under Diesel → Reports.",
      "route": "/diesel-reports"
    },
    {
      "topic": "diesel-flow",
      "keywords": ["diesel flow", "fuel flow", "diesel movement"],
      "answer": "Fuel flow analysis is under Diesel → Flow.",
      "route": "/diesel-flow"
    },
    {
      "topic": "diesel-mileage",
      "keywords": ["diesel mileage", "fuel mileage", "vehicle mileage", "fuel efficiency", "kmpl"],
      "answer": "Vehicle fuel efficiency tracking is under Diesel → Mileage.",
      "route": "/diesel-mileage"
    },

    {
      "topic": "vehicles",
      "keywords": ["vehicle", "vehicles", "fleet", "trucks", "lorry", "lorries", "add vehicle", "new vehicle", "vehicle list"],
      "answer": "Manage the fleet — with document expiry dates (insurance, pollution, fitness, permit, tax) — under Vehicles. Use Add to create a new vehicle, Edit to update, Delete to remove.",
      "route": "/vehicle-list"
    },
    {
      "topic": "maintenance",
      "keywords": ["maintenance", "service", "vehicle service", "repair", "maintain", "service log"],
      "answer": "Vehicle service and maintenance logs are under Vehicles → Maintenance.",
      "route": "/maintainance-list"
    },
    {
      "topic": "km-reading",
      "keywords": ["km reading", "odometer", "kilometer", "km log"],
      "answer": "Track odometer readings under Vehicles → KM Reading.",
      "route": "/km-reading"
    },

    {
      "topic": "employees",
      "keywords": ["employee", "employees", "staff", "worker", "add employee", "new employee"],
      "answer": "Manage staff records (with designation and joining/leaving dates) under Employee → Employees.",
      "route": "/employee-list"
    },
    {
      "topic": "attendance",
      "keywords": ["attendance", "daily attendance", "mark attendance", "present absent"],
      "answer": "Mark and review daily attendance under Employee → Attendance.",
      "route": "/employee-attendance"
    },
    {
      "topic": "advances",
      "keywords": ["advance", "advances", "salary advance", "loan to employee"],
      "answer": "Record salary advances under Employee → Advances.",
      "route": "/employee-advances"
    },
    {
      "topic": "employee-statement",
      "keywords": ["employee statement", "staff statement", "salary statement"],
      "answer": "Employee financial statements are under Employee → Statement.",
      "route": "/employee-statement"
    },

    {
      "topic": "gst-invoices",
      "keywords": ["invoice", "invoices", "gst invoice", "tax invoice", "create invoice", "new invoice"],
      "answer": "GST invoice generation and tracking is under Invoices. You can Add, Edit, Delete, and Export.",
      "route": "/invoices"
    },

    {
      "topic": "income-statement",
      "keywords": ["income statement", "p&l", "profit and loss", "pnl", "profit loss"],
      "answer": "The Profit & Loss statement is under Financial Reports → Income Statement.",
      "route": "/income-statement"
    },

    {
      "topic": "material-rates",
      "keywords": ["material rate", "material price", "rate master", "pricing"],
      "answer": "Material prices are managed under Material Rates.",
      "route": "/material-rates"
    },

    {
      "topic": "company-list",
      "keywords": ["company", "companies", "company list", "multi company", "switch company", "add company"],
      "answer": "Multi-company configuration is under Company List. You can Add, Edit, or Delete companies.",
      "route": "/Company-list"
    }
  ],
  "howto": [
    {
      "topic": "howto-add-vehicle",
      "keywords": ["add vehicle", "new vehicle", "create vehicle", "register vehicle"],
      "answer": "Go to Vehicles → Vehicles, click the Add button at the top right, fill in the vehicle details (number, type, documents like insurance/pollution/fitness/permit/tax with expiry dates), and Save.",
      "route": "/vehicle-list"
    },
    {
      "topic": "howto-add-invoice",
      "keywords": ["create invoice", "new invoice", "make invoice", "raise invoice", "generate invoice"],
      "answer": "Open Invoices, click Add, pick the customer, add line items with quantities and rates, apply GST, then Save. You can export the invoice as PDF.",
      "route": "/invoices"
    },
    {
      "topic": "howto-add-customer",
      "keywords": ["add customer", "new customer", "create customer", "add debitor", "new debitor"],
      "answer": "For GST customers go to Sales → Reg Debitors and click Add. For non-GST/walk-in customers, go to Sales → Un-Reg Debitors and click Add.",
      "route": "/sales-reg-debitors-1"
    },
    {
      "topic": "howto-add-employee",
      "keywords": ["add employee", "new employee", "hire", "create employee", "add staff"],
      "answer": "Go to Employee → Employees and click Add. Fill in name, designation, joining date, and other details, then Save.",
      "route": "/employee-list"
    },
    {
      "topic": "howto-add-supplier",
      "keywords": ["add supplier", "new supplier", "add vendor", "new vendor", "add creditor"],
      "answer": "Go to Accounts → Reg Creditors and click Add. Enter the supplier's details and Save.",
      "route": "/account-reg-list"
    },
    {
      "topic": "howto-record-receipt",
      "keywords": ["record receipt", "received payment", "money in", "log payment received", "log receipt"],
      "answer": "Go to Accounts → Cash In / Receipts, click Add, choose the customer and bank, enter the amount, and Save. Bulk update is available too.",
      "route": "/acccount-cash-in"
    },
    {
      "topic": "howto-record-payment",
      "keywords": ["record payment", "pay supplier", "money out", "log payment", "made payment"],
      "answer": "Go to Accounts → Cash Out / Payments, click Add, pick the creditor/expense ledger and bank, enter the amount, and Save.",
      "route": "/account-cash-out"
    },
    {
      "topic": "howto-export",
      "keywords": ["export", "download", "excel", "pdf", "save as", "csv"],
      "answer": "Most list/report pages have an Export button at the top right — you can usually export to PDF and Excel. Use the filters first to narrow the data, then export."
    },
    {
      "topic": "howto-filter",
      "keywords": ["filter", "search", "find", "look up", "narrow down"],
      "answer": "List and report pages have filter controls at the top — date range, party name, status, etc. Apply filters then click Search/Apply."
    },
    {
      "topic": "howto-change-role",
      "keywords": ["change role", "assign role", "give permission", "grant access", "add permission"],
      "answer": "Go to Masters → Roles. Create a role or edit an existing one, then tick the modules/actions you want that role to access. Save. Then assign the role to the user under Masters → Logins."
    },
    {
      "topic": "howto-switch-company",
      "keywords": ["switch company", "change company", "select company", "multi company"],
      "answer": "Open the Company List screen and pick the company you want to work in. The dashboard will reload with that company's data."
    }
  ]
}
