{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LedgerSync","description":"Connect your users' bank accounts and pull their transactions, statements, and balances through one uniform API.","colors":{"primary":"#0891B2","light":"#22D3EE","dark":"#0E7490"},"logo":{"light":"https://mintcdn.com/ledgersync/NVbCdX0lsP_TgYmH/logo/ledgersync-wordmark.png?fit=max\u0026auto=format\u0026n=NVbCdX0lsP_TgYmH\u0026q=85\u0026s=b149d57dc2f40804f937b11e31060496","dark":"https://mintcdn.com/ledgersync/NVbCdX0lsP_TgYmH/logo/ledgersync-wordmark.png?fit=max\u0026auto=format\u0026n=NVbCdX0lsP_TgYmH\u0026q=85\u0026s=b149d57dc2f40804f937b11e31060496"},"favicon":"https://mintcdn.com/ledgersync/NVbCdX0lsP_TgYmH/favicon.png?fit=max\u0026auto=format\u0026n=NVbCdX0lsP_TgYmH\u0026q=85\u0026s=223187cbc5ee95ae162ffd35e5935db1","navbar":{"links":[{"href":"mailto:support@ledgersync.com","label":"Support"}],"primary":{"type":"button","label":"Request access","href":"https://portal.ledgersyncappv2.com"}},"footer":{"socials":{"website":"https://ledgersync.com"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ledgersync","hasAudioNarration":false,"actualSubdomain":"ledgersync","customDomains":["docs.ledgersyncappv2.com"],"gitSource":{"type":"github","owner":"ledgersync-app","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6add29d60504bfbbf7e80db6"},"chroma":{"collectionId":"68e52e63-b211-4c95-a72c-609b9574ab53","liveDeploymentHistoryId":"6aeccae690fdd8a86a9d1ce6","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeccae690fdd8a86a9d1ce6"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeccae690fdd8a86a9d1ce6","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":58},{"language":"default","tag":"v2 API (legacy)","count":50},{"language":"default","tag":"LedgerSync MCP","count":29},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"Connections","count":9},{"language":"default","tag":"account-api","count":9},{"language":"default","tag":"Clients","count":8},{"language":"default","tag":"client-api","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Webhooks","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"ai-connector.css","content":".lsai-page{--lsai-green: #1b7a52;--lsai-green-dark: #155f40;--lsai-fill: #1b7a52;--lsai-fill-hover: #155f40;--lsai-green-soft: #e8f5ee;--lsai-green-line: #c9e3d5;--lsai-ink: #1f2937;--lsai-muted: #6b7280;--lsai-line: #e3e8ec;--lsai-card: #ffffff;--lsai-gray-soft: #f3f5f7;--lsai-yellow-soft: #fdf6dd;--lsai-yellow-line: #efd78f;--lsai-red-soft: #fdecec;--lsai-red-line: #f3b9b9;--lsai-bg: rgb(var(--background-light, 255 255 255));max-width:880px;margin:0 auto;padding:32px 24px 48px;color:var(--lsai-ink);font-size:16px;line-height:1.6}.dark .lsai-page{--lsai-green: #3fb27f;--lsai-green-dark: #57c592;--lsai-green-soft: #12291f;--lsai-green-line: #24513a;--lsai-ink: #e5e7eb;--lsai-muted: #9ca3af;--lsai-line: #2b3138;--lsai-card: #14181c;--lsai-gray-soft: #1a1f24;--lsai-yellow-soft: #2a2412;--lsai-yellow-line: #5c4c1c;--lsai-red-soft: #2c1717;--lsai-red-line: #6a2c2c;--lsai-bg: rgb(var(--background-dark, 10 13 16))}.lsai-title{font-size:2rem;line-height:1.2;font-weight:700;margin:0 0 8px;color:var(--lsai-ink)}.lsai-subtitle{font-size:1.05rem;color:var(--lsai-muted);margin:0 0 20px}.lsai-page h2{font-size:1.3rem;font-weight:700;margin:28px 0 12px;color:var(--lsai-ink)}.lsai-page h3{font-size:1.1rem;font-weight:700;margin:20px 0 8px;color:var(--lsai-ink)}.lsai-page p,.lsai-page span[data-as=\"p\"]{display:block;margin:0 0 10px}.lsai-step-text>span[data-as=\"p\"]:last-child,.lsai-note>span[data-as=\"p\"]:last-child,.lsai-choice-text>span[data-as=\"p\"]:last-child,.lsai-box-text>span[data-as=\"p\"]:last-child,.lsai-test-more>span[data-as=\"p\"]:last-child{margin-bottom:0}.lsai-page a:not(.lsai-btn):not(.lsai-thumb){color:var(--lsai-green);font-weight:600;text-decoration:none}.lsai-page a:not(.lsai-btn):not(.lsai-thumb):hover{text-decoration:underline}.lsai-page ul,.lsai-page ol:not(.lsai-progress){margin:4px 0 10px;padding-left:22px}.lsai-page li{margin:2px 0}.lsai-page ul li{list-style:disc}.lsai-page .prose li{list-style:none}.lsai-page ol:not(.lsai-progress) li{list-style:decimal}.lsai-page code:not(.lsai-copy-text){font-size:0.9em;background:var(--lsai-gray-soft);border-radius:4px;padding:1px 5px}.lsai-page table{width:100%;border-collapse:collapse;margin:8px 0 16px;font-size:0.95rem}.lsai-page th{text-align:left;background:var(--lsai-gray-soft);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--lsai-line)}.lsai-page td{padding:8px 10px;border-bottom:1px solid var(--lsai-line);vertical-align:top}.lsai-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px}.lsai-head-text{flex:1 1 420px;min-width:0}.lsai-video-button{display:flex;flex:0 0 auto;align-items:center;gap:10px;width:max-content;max-width:100%;cursor:pointer;border:1px solid var(--lsai-line);border-radius:12px;padding:10px 16px 10px 10px;background:var(--lsai-card);box-shadow:0 1px 2px rgba(0, 0, 0, 0.06);font:inherit;color:var(--lsai-ink);text-align:left}.lsai-video-button:hover{border-color:var(--lsai-green)}.lsai-video-button:focus-visible{outline:3px solid var(--lsai-green);outline-offset:2px}.lsai-video-play{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--lsai-fill);color:#ffffff;font-size:0.85rem;padding-left:2px}.lsai-video-label{display:flex;flex-direction:column;line-height:1.25;font-size:0.85rem;color:var(--lsai-muted)}.lsai-video-label strong{color:var(--lsai-ink);font-size:0.95rem}.lsai-lightbox.lsai-video-box{cursor:default}.lsai-video-box .lsai-lightbox-note{pointer-events:none}.lsai-video-player{display:block;width:min(1100px, 100%);max-height:calc(100vh - 120px);border-radius:8px;background:#000000;box-shadow:0 12px 40px rgba(0, 0, 0, 0.45)}.lsai-progress{display:grid;grid-template-columns:repeat(5, 1fr);gap:6px;list-style:none;margin:0 0 24px;padding:0}.lsai-progress-item{list-style:none;margin:0}.lsai-progress-bar{display:block;height:4px;border-radius:2px;background:var(--lsai-line);margin-bottom:6px}.lsai-progress-label{display:flex;align-items:center;gap:6px;font-size:0.8rem;color:var(--lsai-muted);line-height:1.3}.lsai-done .lsai-progress-bar{background:var(--lsai-green-line)}.lsai-done .lsai-progress-label{color:var(--lsai-green)}.lsai-current .lsai-progress-bar{background:var(--lsai-green)}.lsai-current .lsai-progress-label{color:var(--lsai-ink);font-weight:700}.lsai-progress-now{display:none;font-size:0.85rem;font-weight:700;color:var(--lsai-ink);margin:-14px 0 20px}.lsai-step{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--lsai-line)}.lsai-step-num{flex:none;width:32px;height:32px;border-radius:50%;background:var(--lsai-fill);color:#ffffff;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:2px}.lsai-step-main{flex:1;min-width:0}.lsai-step-label{font-size:0.72rem;letter-spacing:0.08em;text-transform:uppercase;color:var(--lsai-muted);font-weight:600}.lsai-step-title{font-size:1.1rem;font-weight:700;margin:2px 0 6px}.lsai-step-text p:last-child{margin-bottom:0}.lsai-thumbs{flex:none;width:190px;display:flex;flex-direction:column;gap:10px}.lsai-thumb{width:100%;text-decoration:none;display:block;cursor:zoom-in}.lsai-lightbox{position:fixed;inset:0;z-index:1000;background:rgba(15, 23, 42, 0.86);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;cursor:zoom-out}.lsai-lightbox img{max-width:min(1280px, 100%);max-height:calc(100vh - 90px);border-radius:8px;box-shadow:0 12px 40px rgba(0, 0, 0, 0.45);background:#ffffff}.lsai-lightbox-note{color:#ffffff;font-size:0.95rem}.lsai-lightbox-close{position:absolute;top:16px;right:16px;background:#ffffff;color:#111827;border:0;border-radius:6px;padding:8px 16px;font-weight:700;font-size:0.95rem;cursor:pointer}.lsai-page td code{white-space:nowrap}.lsai-page div[class*=\"--page-padding:20px\"]{margin-top:4px!important;margin-bottom:8px!important;padding-top:0!important;padding-bottom:0!important}.lsai-route #topbar-cta-button,.lsai-route a[href=\"https://portal.ledgersyncappv2.com\"].whitespace-nowrap,.lsai-route li:has(>a[href=\"https://portal.ledgersyncappv2.com\"].whitespace-nowrap),.lsai-route li.whitespace-nowrap>a[href=\"https://portal.ledgersyncappv2.com\"]{display:none!important}.lsai-thumb img{display:block;width:100%;height:auto;border:1px solid var(--lsai-line);border-radius:6px;margin:0;box-shadow:0 1px 2px rgba(0, 0, 0, 0.06)}.lsai-thumb:hover img{border-color:var(--lsai-green)}.lsai-page a.lsai-thumb,.lsai-page a.lsai-thumb:hover{text-decoration:none!important;border-bottom:0!important}.lsai-page a.lsai-thumb .lsai-thumb-caption{color:var(--lsai-muted)!important;font-weight:400!important;text-decoration:none!important}.lsai-thumb-caption{display:block;font-size:0.75rem;color:var(--lsai-muted);text-align:center;margin-top:4px}.lsai-btn{display:inline-block;background:var(--lsai-fill);color:#ffffff!important;font-weight:600;font-size:0.9rem;border:1px solid var(--lsai-green);border-radius:6px;padding:6px 14px;text-decoration:none!important;cursor:pointer;line-height:1.4}.lsai-btn:hover{background:var(--lsai-fill-hover);border-color:var(--lsai-green-dark)}.lsai-btn-outline{background:transparent;color:var(--lsai-green)!important}.lsai-btn-outline:hover{background:var(--lsai-green-soft)}.lsai-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.lsai-grid-2{display:grid;grid-template-columns:repeat(2, 1fr);gap:12px;margin:0 0 8px}.lsai-grid-3{display:grid;grid-template-columns:repeat(3, 1fr);gap:12px;margin:0 0 8px}@media (min-width: 1024px) and (max-width: 1099px){.lsai-grid-3{grid-template-columns:1fr}}.lsai-choice{display:flex;flex-direction:column;border:1px solid var(--lsai-green-line);border-radius:10px;padding:16px;background:var(--lsai-card)}.lsai-choice-title{font-weight:700;font-size:1.02rem;margin-bottom:4px}.lsai-choice-text{color:var(--lsai-muted);font-size:0.93rem;flex:1}.lsai-choice-text p{margin:0 0 6px}.lsai-choice-action{margin-top:12px}.lsai-note{border-left:4px solid #c3ccd4;background:var(--lsai-gray-soft);border-radius:6px;padding:12px 14px;margin:12px 0;font-size:0.95rem}.lsai-note p:last-child{margin-bottom:0}.lsai-note-green{border-left-color:var(--lsai-green);background:var(--lsai-green-soft)}.lsai-note-yellow{border-left-color:var(--lsai-yellow-line);background:var(--lsai-yellow-soft)}.lsai-note-red{border-left-color:var(--lsai-red-line);background:var(--lsai-red-soft)}.lsai-step-text .lsai-note{margin:8px 0 0;font-size:0.9rem}.lsai-copy{margin:0 0 16px}.lsai-copy-label{font-size:0.85rem;color:var(--lsai-muted);margin-bottom:4px}.lsai-copy-row{display:flex;align-items:center;gap:8px;border:1px solid var(--lsai-line);border-radius:8px;background:var(--lsai-gray-soft);padding:6px 6px 6px 12px}.lsai-copy-text{flex:1;min-width:0;font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size:0.95rem;overflow-wrap:anywhere;background:transparent;padding:0}.lsai-copy-button{flex:none;background:var(--lsai-fill);color:#ffffff;border:0;border-radius:6px;padding:6px 14px;font-weight:600;font-size:0.9rem;cursor:pointer}.lsai-copy-button:hover{background:var(--lsai-fill-hover)}.lsai-prompt .lsai-copy-row{align-items:flex-start}.lsai-prompt .lsai-copy-text{white-space:pre-wrap;line-height:1.5}.lsai-test{display:flex;align-items:center;gap:12px;border:1px solid var(--lsai-green-line);background:var(--lsai-green-soft);border-radius:10px;padding:14px 16px;margin:20px 0}.lsai-test-main{flex:1;min-width:0}.lsai-test-title{font-weight:700}.lsai-test-text{font-style:italic}.lsai-test-more{font-size:1rem;color:var(--lsai-ink);margin-top:6px}.lsai-test-more p:last-child{margin-bottom:0}.lsai-test-button{flex:none}.lsai-box{border:1px solid var(--lsai-line);background:var(--lsai-gray-soft);border-radius:10px;padding:16px;margin:16px 0}.lsai-box-title{font-weight:700;margin-bottom:4px}.lsai-box-text p:last-child{margin-bottom:0}.lsai-page [id]{scroll-margin-top:128px}.lsai-box-thumb{max-width:220px;margin-top:12px}.lsai-badge{display:inline-block;font-size:0.75rem;font-weight:700;line-height:1;padding:4px 8px;border-radius:999px;background:var(--lsai-green-soft);color:var(--lsai-green);vertical-align:middle;margin-left:6px}.lsai-grid-2 .lsai-box{margin:0;background:var(--lsai-card)}.lsai-stuck{border-top:1px solid var(--lsai-line);margin-top:28px;padding-top:14px;font-size:0.88rem;color:var(--lsai-muted)}@media (max-width: 760px){.lsai-page{padding:20px 16px 40px}.lsai-title{font-size:1.6rem}.lsai-grid-2,.lsai-grid-3{grid-template-columns:1fr}.lsai-progress-label{display:none}.lsai-progress-now{display:block}.lsai-step{flex-wrap:wrap}.lsai-step-main{flex-basis:calc(100% - 48px)}.lsai-thumbs{width:calc(100% - 48px);margin-left:48px;max-width:360px}.lsai-test{flex-direction:column;align-items:flex-start}}@media (min-width: 1024px) and (min-height: 600px){.lsai-page.lsai-page-pinned{--lsai-nav-h: calc(var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px));padding-top:20px}.lsai-page-pinned .lsai-top{position:sticky;top:var(--lsai-nav-h);z-index:20;margin:0 0 12px;padding:12px 0 11px;background:var(--lsai-bg);border-bottom:1px solid var(--lsai-line)}.lsai-page-pinned .lsai-head{flex-wrap:nowrap}.lsai-page-pinned .lsai-progress{margin-bottom:0}.lsai-page-pinned .lsai-top.lsai-top-stuck{padding-top:8px}.lsai-page-pinned .lsai-top-stuck .lsai-subtitle{display:none}.lsai-page-pinned .lsai-top-stuck .lsai-title{font-size:1.5rem;margin-bottom:0}.lsai-page-pinned .lsai-top-stuck .lsai-head{align-items:center;margin-bottom:8px}.lsai-page-pinned .lsai-top-stuck .lsai-video-button{padding:6px 12px 6px 6px}.lsai-page-pinned .lsai-top-stuck .lsai-video-play{width:28px;height:28px}html:has(.lsai-page-pinned){scroll-padding-top:calc(var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px) + var(--lsai-pinned-h, 110px) + 12px)}.lsai-page.lsai-page-pinned [id]{scroll-margin-top:0}.lsai-page-pinned .lsai-top-stuck .lsai-video-button{scroll-margin-top:calc(-1 * (var(--lsai-pinned-h, 110px) + 12px))}html:has(.lsai-page-pinned) :is(#navbar,#sidebar) :is(a,button,input,[tabindex]){scroll-margin-top:calc(-1 * (var(--mintlify-slot-header-height, calc(4rem + var(--topbar-tabs-height, 3rem))) + var(--banner-height, 0px) + var(--lsai-pinned-h, 110px) + 12px))}}"}],"page":{"pagePath":"ai/rules-setup","slug":"/ai/rules-setup","pageMetadata":{"title":"Set up rules for a client","description":"Your AI proposes rules that categorize a client's waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.","mode":"frame","href":"/ai/rules-setup"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Your AI proposes rules that categorize a client’s waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const AiStuck=()=>_jsxs(`div`,{className:`lsai-stuck`,children:[`Stuck? `,_jsx(`a`,{href:`https://ledgersync.com/book-a-demo`,target:`_blank`,rel:`noopener noreferrer`,children:`Book a call with our team`}),` and we'll help you, or email`,` `,_jsx(`a`,{href:`mailto:support@ledgersync.com`,children:`support@ledgersync.com`}),` with the step and what the screen says. Never send passwords or card numbers.`]});const AiEmail=()=>_jsx(`a`,{href:`mailto:support@ledgersync.com`,children:`support@ledgersync.com`});const AiNote=({tone,children})=>_jsx(`div`,{className:`lsai-note lsai-note-`+(tone||`gray`),children});const AiCopy=({label,text})=>{const[copied,setCopied]=useState(false);const copy=()=>{if(navigator.clipboard){navigator.clipboard.writeText(text).then(()=>{setCopied(true);setTimeout(()=>setCopied(false),1600)}).catch(()=>{})}};return _jsxs(`div`,{className:`lsai-copy`,children:[label\u0026\u0026_jsx(`div`,{className:`lsai-copy-label`,children:label}),_jsxs(`div`,{className:`lsai-copy-row`,children:[_jsx(`code`,{className:`lsai-copy-text`,children:text}),_jsx(`button`,{type:`button`,className:`lsai-copy-button`,onClick:copy,children:copied?`Copied`:`Copy`})]})]})};const AiStep=({id,n,total,label,title,img,caption,imgs,stage,children})=>{const _components={a:`a`,..._provideComponents()};const[open,setOpen]=useState(null);const closeRef=useRef(null);const openerRef=useRef(null);useEffect(()=>{if(!open)return undefined;const root=document.documentElement;const overflow=root.style.overflow;root.style.overflow=`hidden`;if(closeRef.current)closeRef.current.focus({preventScroll:true});return()=>{root.style.overflow=overflow;if(openerRef.current)openerRef.current.focus({preventScroll:true})}},[open]);const pictures=imgs||(img?[{src:img,caption}]:[]);return _jsxs(`div`,{className:`lsai-step`,id,\"data-stage\":stage,children:[_jsx(`div`,{className:`lsai-step-num`,\"aria-hidden\":`true`,children:n}),_jsxs(`div`,{className:`lsai-step-main`,children:[_jsx(`div`,{className:`lsai-step-label`,children:label||`Step `+n+` of `+total}),_jsx(`div`,{className:`lsai-step-title`,children:title}),_jsx(`div`,{className:`lsai-step-text`,children})]}),pictures.length>0\u0026\u0026_jsx(`div`,{className:`lsai-thumbs`,children:pictures.map(pic=>_jsxs(_components.a,{className:`lsai-thumb`,href:pic.src,title:`Click to see it larger`,onClick:e=>{e.preventDefault();openerRef.current=e.currentTarget;setOpen(pic)},children:[_jsx(`img`,{src:pic.src,alt:``,loading:`lazy`}),_jsxs(`span`,{className:`lsai-thumb-caption`,children:[pic.caption?pic.caption+` · `:``,`click to enlarge`]})]},pic.src))}),open\u0026\u0026_jsxs(`div`,{className:`lsai-lightbox`,role:`dialog`,\"aria-modal\":`true`,\"aria-label\":open.caption||title,onClick:e=>{if(e.detail\u003c2)setOpen(null)},onKeyDown:e=>{if(e.key===`Escape`)setOpen(null);if(e.key===`Tab`)e.preventDefault()},children:[_jsx(`button`,{ref:closeRef,type:`button`,className:`lsai-lightbox-close`,onClick:()=>setOpen(null),children:`Close`}),_jsx(`img`,{src:open.src,alt:open.caption||title}),_jsxs(`span`,{className:`lsai-lightbox-note`,children:[open.caption?open.caption+` · `:``,`Click anywhere to close`]})]})]})};const AiPage=({title,subtitle,video,poster,stage,children})=>{const[playing,setPlaying]=useState(false);const[current,setCurrent]=useState(stage);const pageRef=useRef(null);const markRef=useRef(null);const topRef=useRef(null);const watchRef=useRef(null);const closeRef=useRef(null);useEffect(()=>{if(!stage||!topRef.current||!pageRef.current)return undefined;const page=pageRef.current;const top=topRef.current;let frame=0;const update=()=>{frame=0;const css=getComputedStyle(top);const stuck=css.position===`sticky`\u0026\u0026markRef.current.getBoundingClientRect().top\u003c(parseFloat(css.top)||0);if(stuck!==top.classList.contains(`lsai-top-stuck`)){const root=document.documentElement;root.style.overflowAnchor=`none`;requestAnimationFrame(()=>requestAnimationFrame(()=>{root.style.overflowAnchor=``}));if(stuck){const before=top.offsetHeight;const margin=parseFloat(css.marginBottom)||0;top.style.marginBottom=margin+before+`px`;top.classList.add(`lsai-top-stuck`);top.style.marginBottom=margin+before-top.offsetHeight+`px`}else{top.classList.remove(`lsai-top-stuck`);top.style.marginBottom=``}}const atEnd=window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-8;const line=atEnd?Infinity:top.getBoundingClientRect().bottom+120;if(stuck){const height=top.offsetHeight+`px`;if(document.documentElement.style.getPropertyValue(`--lsai-pinned-h`)!==height){document.documentElement.style.setProperty(`--lsai-pinned-h`,height)}}let next=stage;page.querySelectorAll(`[data-stage]`).forEach(el=>{if(el.getBoundingClientRect().top\u003cline)next=Number(el.getAttribute(`data-stage`))});setCurrent(next)};const schedule=()=>{if(!frame)frame=requestAnimationFrame(update)};const reset=()=>{top.classList.remove(`lsai-top-stuck`);top.style.marginBottom=``;schedule()};const observer=typeof ResizeObserver===`undefined`?null:new ResizeObserver(schedule);if(observer){observer.observe(top,{box:`border-box`});observer.observe(page)}window.addEventListener(`scroll`,schedule,{passive:true});window.addEventListener(`resize`,reset);update();return()=>{document.documentElement.style.removeProperty(`--lsai-pinned-h`);if(observer)observer.disconnect();window.removeEventListener(`scroll`,schedule);window.removeEventListener(`resize`,reset);if(frame)cancelAnimationFrame(frame)}},[stage,title]);useEffect(()=>{if(!playing)return undefined;const root=document.documentElement;const overflow=root.style.overflow;root.style.overflow=`hidden`;if(closeRef.current)closeRef.current.focus({preventScroll:true});return()=>{root.style.overflow=overflow;if(watchRef.current)watchRef.current.focus({preventScroll:true})}},[playing]);const stages=[`Get ready`,`Add it to your AI`,`Sign in`,`Click Allow`,`Ask a question`];return _jsxs(`div`,{ref:pageRef,className:stage?`lsai-page lsai-page-pinned`:`lsai-page`,children:[_jsx(`div`,{ref:markRef,className:`lsai-top-mark`,\"aria-hidden\":`true`}),_jsxs(`div`,{ref:topRef,className:`lsai-top`,children:[_jsxs(`div`,{className:`lsai-head`,children:[_jsxs(`div`,{className:`lsai-head-text`,children:[_jsx(`h1`,{className:`lsai-title`,children:title}),subtitle\u0026\u0026_jsx(`p`,{className:`lsai-subtitle`,children:subtitle})]}),video\u0026\u0026_jsxs(`button`,{ref:watchRef,type:`button`,className:`lsai-video-button`,onClick:()=>setPlaying(true),children:[_jsx(`span`,{className:`lsai-video-play`,\"aria-hidden\":`true`,children:`▶`}),_jsxs(`span`,{className:`lsai-video-label`,children:[_jsx(`strong`,{children:`Watch it first`}),_jsx(`span`,{children:`Short setup video`})]})]})]}),stage\u0026\u0026_jsxs(`div`,{className:`lsai-progress-wrap`,children:[_jsx(`ol`,{className:`lsai-progress`,\"aria-label\":`Setup progress`,children:stages.map((label,i)=>{const n=i+1;const state=n\u003ccurrent?`lsai-done`:n===current?`lsai-current`:`lsai-todo`;return _jsxs(`li`,{className:`lsai-progress-item `+state,\"aria-current\":n===current?`step`:undefined,children:[_jsx(`span`,{className:`lsai-progress-bar`}),_jsx(`span`,{className:`lsai-progress-label`,children:label})]},label)})}),_jsx(`div`,{className:`lsai-progress-now`,children:stages[current-1]})]})]}),playing\u0026\u0026_jsxs(`div`,{className:`lsai-lightbox lsai-video-box`,role:`dialog`,\"aria-modal\":`true`,\"aria-label\":title+`: setup video`,tabIndex:-1,onClick:e=>{if(e.target===e.currentTarget)setPlaying(false)},onKeyDown:e=>{if(e.key===`Escape`)setPlaying(false);if(e.key===`Tab`){e.preventDefault();const close=e.currentTarget.querySelector(`button`);(document.activeElement===close?e.currentTarget.querySelector(`video`):close).focus({preventScroll:true})}},children:[_jsx(`button`,{ref:closeRef,type:`button`,className:`lsai-lightbox-close`,onClick:()=>setPlaying(false),children:`Close`}),_jsx(`video`,{className:`lsai-video-player`,controls:true,autoPlay:true,playsInline:true,tabIndex:0,poster,src:video}),_jsx(`span`,{className:`lsai-lightbox-note`,children:`Click Close when you are done`})]}),children]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,h2:`h2`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Table,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Table)_missingMdxReference(`Table`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`AiPage`,children:_jsxs(AiPage,{title:`Set up rules for a client`,video:`/videos/rules-setup.mp4`,poster:`/videos/rules-setup-poster.jpg`,subtitle:`Ask your AI. It suggests rules, you say yes or no, and LedgerSync fills the client's waiting transactions. It can also change the rules you have.`,children:[_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`green`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`For Manual and QuickBooks Online clients.`}),` Not set up yet? Go to `,_jsx(_components.a,{href:`/ai/start-here`,children:`Start here`}),`. Added it a while ago? Do\n`,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),` once.`]})})}),_jsx(_components.h2,{children:`Start`}),_jsx(_MdxComponentBoundary,{name:`AiStep`,children:_jsx(AiStep,{id:`new-chat`,n:1,total:4,title:`Start a new chat`,children:_jsxs(_components.p,{children:[`In Claude, ChatGPT or Grok. In ChatGPT, also type `,_jsx(_components.strong,{children:`@`}),` and pick `,_jsx(_components.strong,{children:`LedgerSync`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiStep`,children:_jsx(AiStep,{id:`ask`,n:2,total:4,title:`Ask the AI`,img:`https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=806d2c472e19771f4408b307b7e3c9a7`,caption:`Your request`,\"data-og-width\":`679`,width:`679`,\"data-og-height\":`123`,height:`123`,\"data-path\":`images/ai-rules/rules-1-ask.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=280\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=50da5f15b60a3bfe038d0f56521264f4 280w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=560\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=5e367b19eb6039731414c6e26fd89742 560w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=840\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=1076ba0077526bf6e0e3c8f0faf9d8a1 840w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=288bb0799372d8c3dbcd8e112beeb95b 1100w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=a3be452b054599577a312fbed324569a 1650w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-1-ask.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=c873b1121796be53a1da21a55083b19f 2500w`,children:_jsxs(_components.p,{children:[`Type `,_jsx(_components.em,{children:`“Set up rules for Acme”`}),`, with your client’s name, and press `,_jsx(_components.strong,{children:`Enter`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiStep`,children:_jsx(AiStep,{id:`answer`,n:3,total:4,title:`Say yes or no`,img:`https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=ba369acb4fa7be08f597ef02f95753b3`,caption:`Rules it suggests`,\"data-og-width\":`775`,width:`775`,\"data-og-height\":`722`,height:`722`,\"data-path\":`images/ai-rules/rules-2-suggestions.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=280\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=8f8684e39f14e2e0987831bd48cd649a 280w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=560\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=290c721c0917bbe7ef4d29f52df153cc 560w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=840\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=e496c1c249099907be7fe4373378de69 840w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=f640684fb135d29377b4332ae6f8406c 1100w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=9fa309469073412521b6f0002fd920d2 1650w, https://mintcdn.com/ledgersync/Z8SemgCZL-VJ6FJt/images/ai-rules/rules-2-suggestions.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Z8SemgCZL-VJ6FJt\u0026q=85\u0026s=9e7cadf7d12b3eca73464129997ff556 2500w`,children:_jsxs(_components.p,{children:[`The AI lists the rules it suggests, each by name. For example: `,_jsx(_components.em,{children:`Square`}),` files Square deposits to Sales Revenue. Say\nyes, no, or what to change.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiStep`,children:_jsx(AiStep,{id:`preview`,n:4,total:4,title:`Say yes to the preview`,imgs:[{src:`/images/ai-rules/rules-3-preview.png`,caption:`The preview`},{src:`/images/ai-rules/rules-4-allow.png`,caption:`Allow once circled`}],children:_jsx(_components.p,{children:`The AI shows what it will save. Say yes, and allow it if Claude or ChatGPT asks. Nothing changes before that.`})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`yellow`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Using Grok?`}),` It may save without asking. Tell it to wait for your yes.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`green`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Or let the AI offer.`}),` Ask it to show a client’s transactions. If some have no rule yet, it offers to suggest\nrules.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`green`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Change a rule you have.`}),` Ask, for example: `,_jsx(_components.em,{children:`“Turn off Acme’s Shell rule.”`}),` The AI shows you a preview first. See\n`,_jsx(_components.a,{href:`#changing-your-rules`,children:`Changing your rules`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`green`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Then accept the filled transactions.`}),` Ask, for example: `,_jsx(_components.em,{children:`“Move Acme’s For review transactions with rules to\nCategorized.”`}),` The AI shows you a preview first. See `,_jsx(_components.a,{href:`/ai/accept-transactions`,children:`Accept For review transactions`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Changed your mind?`}),` Ask: `,_jsx(_components.em,{children:`“Undo the rules setup you just did for Acme.”`}),` See `,_jsx(_components.a,{href:`#undo`,children:`Undo`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`yellow`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your client’s bank data goes through your AI account.`}),` Check its data settings first.`]})})}),_jsx(_components.h2,{children:`More details`}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`What happens after you ask`,id:`what-happens-after-you-ask`,children:[_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The AI checks the client: a Manual client, or a QuickBooks client and its QuickBooks connection. It reads what\nthe client already has: its categories, vendors (and, for a QuickBooks client, its customers) and rules. It also\nreads your firm’s global categories, global vendors and global rules.`}),`\n`,_jsx(_components.li,{children:`It reads the client’s waiting transactions that no rule has filled yet. It groups them by their bank text,\nlargest groups first.`}),`\n`,_jsx(_components.li,{children:`For each group, it proposes a rule: the words to look for in the bank text, a category and a vendor. It uses the\ncategories and vendors you have, or proposes new ones and tells you they are new. It names the rules like your\nexisting ones. When it is not sure, it asks you. For transactions that look like they should be left out of the\nbooks, such as transfers between the client’s own accounts, it proposes an exclusion rule instead: the words and a\ncategory, with no vendor needed.`}),`\n`,_jsxs(_components.li,{children:[`It proposes each rule to you by name, saying what it does and whether it is for this client only or for every\nclient of your firm. For example: `,_jsx(_components.em,{children:`Can I create a global rule ‘Square’ that leaves Square deposits out of the\nbooks for every client?`}),` You say yes, no, or what to change. You never have to ask for a client rule, a global\nrule or an exclusion rule yourself.`]}),`\n`,_jsxs(_components.li,{children:[`It proposes a link for each of your global categories that the client has no category linked to yet, all at\nonce. See `,_jsx(_components.a,{href:`#link-your-global-categories`,children:`Link your global categories`}),`.`]}),`\n`,_jsx(_components.li,{children:`It shows you a preview: what would be created and linked, how many waiting transactions each rule would fill (or,\nfor an exclusion rule, mark for exclusion) for this client and for your other clients, and every warning. For a\nQuickBooks client, it also names your other QuickBooks clients that still need a link. Nothing has changed yet.`}),`\n`,_jsx(_components.li,{children:`You say yes. Claude and ChatGPT also ask you to allow it: allow it if the preview looked right.`}),`\n`,_jsxs(_components.li,{children:[`LedgerSync saves the rules, the links, and any new categories and vendors. For a QuickBooks client, it first\ncreates the new categories and vendors in the client’s QuickBooks. Then it fills the waiting transactions. An\nexclusion rule’s transactions are also marked for exclusion: they stay on `,_jsx(_components.strong,{children:`For review`}),`, and move to\n`,_jsx(_components.strong,{children:`Excluded`}),` when you accept them. The AI checks until it is done. Then it tells you what was created, how many\ntransactions were filled, and what failed, with the reason.`]}),`\n`,_jsxs(_components.li,{children:[`For a QuickBooks client, the AI then offers to post the filled transactions into QuickBooks, with\n`,_jsx(_components.a,{href:`/ai/quickbooks-bookkeeping`,children:`Bookkeeping into QuickBooks`}),`.`]}),`\n`]}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Which transactions?`}),` The ones waiting on the client’s `,_jsx(_components.strong,{children:`For review`}),` list in LedgerSync that no rule has filled\nand nobody has given a category. Transactions still pending at the bank, and excluded ones, are left out.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your existing rules stay as they are, unless you ask for a change.`}),` New rules never take a transaction that a rule\nalready filled or that someone gave a category. New rules go at the end of the list, after the rules you have. If\none of your existing rules matches one of this client’s waiting transactions that it had not filled yet, LedgerSync\nfills that one too. At a QuickBooks client, that includes the ones your global rules can file once a new link is\nsaved. The preview and the result show how many. To change a rule you have, see\n`,_jsx(_components.a,{href:`#changing-your-rules`,children:`Changing your rules`}),`.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A big setup goes in batches.`}),` One preview takes up to 100 rules and 50 changes to existing rules. For more, the\nAI works in batches. Each batch has its own preview and needs your yes.`]})})}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`yellow`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Give each rule a vendor.`}),` A rule puts its vendor on each transaction it fills, as the payee. In LedgerSync you can\naccept a transaction only when it has a payee, so for a rule without a vendor you add the payee yourself before you\naccept. The AI gives every rule a vendor. To pick one yourself, tell the AI. For example: `,_jsx(_components.em,{children:`Use Shell as the vendor.`}),`\nFor a QuickBooks client, a client rule’s payee can also be one of the client’s customers. An exclusion rule needs no\nvendor: accepting its transactions moves them to `,_jsx(_components.strong,{children:`Excluded`}),`.`]})})})]}),_jsxs(Accordion,{title:`Client rules and global rules`,id:`client-rules-and-global-rules`,children:[_jsx(_components.p,{children:`The AI picks the kind of each rule and says it when it proposes the rule: a global rule for vendors that mean the\nsame for every client, such as bank fees, software or fuel, and a client rule otherwise. If your login cannot make\nglobal rules, it proposes client rules only. You decide: say yes, or ask for the other kind.`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Client rule`}),_jsx(_components.th,{children:`Global rule`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Works for`}),_jsx(_components.td,{children:`This client only`}),_jsx(_components.td,{children:`Every client of your firm with the same accounting app: your Manual clients, or your QuickBooks clients`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Puts the transaction in`}),_jsx(_components.td,{children:`One of the client’s categories`}),_jsx(_components.td,{children:`One of your firm’s global categories (at a QuickBooks client, through the client’s own category linked to it)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Payee`}),_jsx(_components.td,{children:`One of the client’s vendors or, at a QuickBooks client, one of its customers`}),_jsx(_components.td,{children:`One of your firm’s global vendors`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Fills when it is saved`}),_jsx(_components.td,{children:`This client’s waiting transactions`}),_jsx(_components.td,{children:`This client’s waiting transactions, and the ones at your other clients with the same accounting app`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`After that`}),_jsx(_components.td,{children:`This client’s new transactions`}),_jsx(_components.td,{children:`New transactions at every client of your firm with the same accounting app`})]})]})]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A client’s own rules always come first. A global rule fills a transaction only when none of that client’s rules\nmatch it.`}),`\n`,_jsxs(_components.li,{children:[`To make or change global rules, your login needs `,_jsx(_components.strong,{children:`Manage Global Rules`}),`, as in `,_jsx(_components.strong,{children:`Before you start`}),`.`]}),`\n`,_jsx(_components.li,{children:`Either kind can be an exclusion rule, as in the LedgerSync app. A global exclusion rule at a QuickBooks client\nworks only through the client’s category linked to its global category, like any global rule.`}),`\n`]})]}),_jsxs(Accordion,{title:`Link your global categories`,id:`link-your-global-categories`,children:[_jsx(_components.p,{children:`A global rule puts the transaction in one of your firm’s global categories. Each client can link one of its own\ncategories to each global category. What the link does depends on the client:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`QuickBooks client:`}),` the link is how a global rule files the client’s transactions. The rule puts each one in\nthe client’s QuickBooks category that is linked to the global category. Without a link, the rule cannot file it:\nthe transaction waits on `,_jsx(_components.strong,{children:`For review`}),` with a red badge showing the rule’s name, until the category is linked.\nThe AI calls it the “map this category” badge.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Manual client:`}),` linked, LedgerSync uses the GL code of the client’s own category, in the app and in the\nexports. The category name stays the global one, shown with that GL code in front. If the client’s category has\nno GL code, LedgerSync uses the global one. Not linked, LedgerSync uses the global category and its GL code.`]}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The AI proposes all the missing links at once.`}),` It goes through every global category the client has no link\nfor, starting with the ones the client’s waiting transactions need, then the ones your global rules use. For each\none, it looks for the client’s category that fits:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The client’s history shows it.`}),` The client’s past transactions that the category’s global rules match were\nbooked to one of the client’s categories (at least 3 of them, and at least 8 in 10). The AI proposes that one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A best guess.`}),` One of the client’s categories has the same name as the global category, or the same name as\nthe category your other clients link it to. The AI proposes its best guess and shows you the other options.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`How the client’s QuickBooks booked them.`}),` At a QuickBooks client, LedgerSync also looks at the client’s expenses\nand deposits of the last 12 months in QuickBooks. When nothing above fits, and the category’s global rules match at\nleast 3 of them with at least 8 in 10 booked to one of the client’s categories, the AI proposes that one. When it\ndisagrees with a best guess, the AI shows it as another option. Transactions LedgerSync sent to QuickBooks itself,\nand money moved to or from a bank or credit card account, do not count.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Nothing to go on.`}),` The AI asks you. At a QuickBooks client, it asks only about the links that transactions are\nwaiting for. It tells you how many others can wait: link them later, or ask for them now.`]}),`\n`]}),_jsxs(_components.p,{children:[`It puts every link it can into one preview and asks you about the rest. Check them: say yes, or tell the AI which\nones are wrong. For example: `,_jsx(_components.em,{children:`Link Fuel to Auto Expense, not to Fuel Surcharge.`}),` At a QuickBooks client, the\npreview also says how many waiting transactions your global rules would fill once each link is saved.`]}),_jsxs(_components.p,{children:[`To ask for one link yourself, tell the AI. For example: `,_jsx(_components.em,{children:`Link our global category Fuel to Acme’s category Auto\nFuel.`}),` LedgerSync saves the links after your yes, marked LS-AI. A link works when the client has no link yet for\nthat global category, and the client’s category is not linked to another global category. At a QuickBooks client,\nthe category must also be active in QuickBooks. One preview takes up to 100 links.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Link one global category at every client.`}),` Ask the AI. For example: `,_jsx(_components.em,{children:`Link our global category Fuel at every\nclient.`}),` The AI also offers this when it finds other clients that still need a link.`]}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The AI finds every client that has no category linked to the global category: your QuickBooks clients for a\nQuickBooks global category, your Manual clients for a Manual one. For each client, it proposes a category the\nsame way as above: from the client’s history, a best guess, or nothing to go on.`}),`\n`,_jsxs(_components.li,{children:[`It shows you the totals and a summary of the categories it would link. For example: `,_jsx(_components.em,{children:`Fuel at 120 clients,\nAuto:Fuel at 40, nothing to go on at 30.`}),` Then it shows the clients that need your answer. At QuickBooks\nclients, it also says how many waiting transactions your global rules would file once the links are saved.\nNothing has changed yet.`]}),`\n`,_jsxs(_components.li,{children:[`You say yes, or name the clients to change. For example: `,_jsx(_components.em,{children:`For Acme, use Fuel Surcharge. Leave Beta out.`}),` The AI\nchecks again with your changes. A client with nothing to go on gets no link unless you name its category. When\nyou say yes, Claude and ChatGPT also ask you to allow it.`]}),`\n`,_jsx(_components.li,{children:`After your yes, LedgerSync links the category client by client, in the background. Each link is marked LS-AI.\nAt each QuickBooks client, your global rules then file the transactions that were waiting for this link, and\ntheir “map this category” badge goes away. If one client fails, the others still get their link. The AI tells\nyou where it linked, how many transactions were filed, and what failed, with the reason.`}),`\n`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`One undo takes it all back.`}),` Ask the AI to undo it, as for any setup. It takes back every link of that setup.\nAt QuickBooks clients, the transactions filed through those links go back to waiting, with the badge where no\nother rule takes them. A link someone changed since stays as it is. Only someone who sees all of those clients in\nLedgerSync can undo it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your clients only.`}),` An employee sees only the clients assigned to them. The AI links the category only at\nthose, and only counts the others.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Limits.`}),` One preview links one global category, at up to 1,000 clients. With more, say yes to the first\npreview, and once it is done, ask the AI again for the rest. You can name up to 500 clients to change and 500 to\nleave out. If your global rules for that category have very many conditions, the AI may not have time to read\nevery client’s history. For those clients, it makes a best guess or asks you.`]}),`\n`]}),_jsxs(_components.p,{children:[`You can also link them in the LedgerSync app. Click `,_jsx(_components.strong,{children:`Rules Engine`}),`, then `,_jsx(_components.strong,{children:`Manual`}),` or `,_jsx(_components.strong,{children:`QuickBooks`}),`. In the menu\non the left, click `,_jsx(_components.strong,{children:`Settings`}),`, then `,_jsx(_components.strong,{children:`Initial Setup`}),`, then `,_jsx(_components.strong,{children:`Categories Mapping`}),`. This opens the list of global\ncategories. Click the global category. Under `,_jsx(_components.strong,{children:`Connect Client Categories`}),`, pick the client’s category next to the\nclient’s name, then click `,_jsx(_components.strong,{children:`Save`}),`.`]})]}),_jsxs(Accordion,{title:`QuickBooks clients`,id:`quickbooks-clients`,children:[_jsx(_components.p,{children:`For a QuickBooks Online client, rules setup works the same way, with these differences.`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The client’s categories and vendors are its QuickBooks ones.`}),` A client rule puts the transaction in one of the\nclient’s QuickBooks categories. Its payee is one of the client’s QuickBooks vendors or customers, never an\nemployee. A global rule uses your firm’s global categories and global vendors, as for any client.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`New categories and vendors are created in the client’s QuickBooks, after your yes.`}),` LedgerSync creates them\nbefore it saves the rules. When QuickBooks already has one with that name, LedgerSync uses it instead: for a\ncategory, only when it is of the same type and in the same place, under the same category or at the top level.\nLedgerSync never turns a deactivated QuickBooks category or vendor back on, so a name that belongs to one is\nrefused, and the AI tells you which.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A new category needs a QuickBooks account type`}),`, such as Expense or Income, unless it goes under another\ncategory. A setup never creates customers.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A new category goes at the top level, or under one of the client’s categories.`}),` For example: `,_jsx(_components.em,{children:`Make a new\ncategory Fuel under Auto.`}),` QuickBooks calls it a sub-account. It gets the type of the category it goes under. The\npreview, the result and the undo show it with that category’s name in front: `,_jsx(_components.em,{children:`Auto:Fuel`}),`. The preview checks that\ncategory in the client’s QuickBooks first: it must be active. QuickBooks allows 5 levels at most, and never puts a\ncategory under a few special ones, such as Undeposited Funds, Opening Balance Equity or Retained Earnings.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A new category can also have a QuickBooks detail type`}),`, such as Travel or Office/General Administrative\nExpenses. It must be one LedgerSync knows for the category’s account type: if not, the AI names some that are.\nUnder another category, a new one with no detail type gets that category’s. At the top level, the AI gives\nevery new category a detail type, since QuickBooks would otherwise pick its own (Travel, for an expense\ncategory). The preview shows the detail type each new category gets, before you say yes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The preview names your other QuickBooks clients that need a link.`}),` A new global rule files transactions at\nyour other QuickBooks clients only where they link its global category, and so does a global rule you edit or\nturn on. At the others, those transactions wait with the badge. The preview counts them, and names those clients\nif you can see them in LedgerSync (an employee sees the clients assigned to them). To link the category there, ask\nthe AI to link it at every client, as in `,_jsx(_components.a,{href:`#link-your-global-categories`,children:`Link your global categories`}),`, or link it\nin the LedgerSync app.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`If the client’s QuickBooks connection stopped working,`}),` the AI can still read what the client has (except its\ncustomers), make links and make rules. But the client’s new categories, its new vendors and customers as payees\nneed QuickBooks: the preview refuses them and asks you to reconnect QuickBooks first. To reconnect, click\n`,_jsx(_components.strong,{children:`Rules Engine`}),`, then `,_jsx(_components.strong,{children:`QuickBooks`}),` in the LedgerSync app. In the menu on the left, click\n`,_jsx(_components.strong,{children:`Settings`}),`, then `,_jsx(_components.strong,{children:`Client Settings`}),`, then `,_jsx(_components.strong,{children:`Manage Connections`}),`. Click `,_jsx(_components.strong,{children:`Reconnect`}),` next to the client and\nsign in to QuickBooks again. Then ask the AI to preview again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Then post the transactions into QuickBooks.`}),` The setup fills the transactions in LedgerSync only, on\n`,_jsx(_components.strong,{children:`For review`}),`. To post them into the client’s QuickBooks from the same chat, use\n`,_jsx(_components.a,{href:`/ai/quickbooks-bookkeeping`,children:`Bookkeeping into QuickBooks`}),`, for accounts with no QuickBooks bank feed. The AI keeps\nthe category and payee your rules set. Or ask the AI to accept them without posting them (see\n`,_jsx(_components.a,{href:`/ai/accept-transactions`,children:`Accept For review transactions`}),`), then sync them in the LedgerSync app. Or accept and\nsync them in the app.`]}),`\n`]})]}),_jsxs(Accordion,{title:`Changing your rules`,id:`changing-your-rules`,children:[_jsxs(_components.p,{children:[`Your AI can also change the rules you already have, for Manual and QuickBooks Online clients. Ask it in your own\nwords. For example: `,_jsx(_components.em,{children:`Turn off Acme’s Shell rule`}),`, `,_jsx(_components.em,{children:`Change Acme’s Amazon rule to Office Supplies`}),`, `,_jsx(_components.em,{children:`Move Acme’s Uber\nrule to the top`}),` or `,_jsx(_components.em,{children:`Delete our global Zoom rule`}),`.`]}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The AI finds the rule and reads all of it: its conditions, category, vendor, whether it is on, and its place in\nthe list.`}),`\n`,_jsx(_components.li,{children:`It shows you a preview: the rule before and after the change, and what happens to the client’s waiting\ntransactions. Nothing has changed yet.`}),`\n`,_jsx(_components.li,{children:`You say yes. Claude and ChatGPT also ask you to allow it. LedgerSync changes the rule, then its waiting\ntransactions, and the AI tells you what changed.`}),`\n`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`You ask to`}),_jsx(_components.th,{children:`The rule`}),_jsx(_components.th,{children:`Its waiting transactions`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Edit it`}),_jsx(_components.td,{children:`Gets the name, money in or out, conditions, category or vendor you asked for. The rest stays as it is.`}),_jsx(_components.td,{children:`The ones it still matches get its new category and vendor. The others go back to your other rules. It can also fill waiting transactions that no rule has filled yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Turn it off`}),_jsx(_components.td,{children:`Stays in the list, turned off.`}),_jsx(_components.td,{children:`They go back to your other rules.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Turn it on`}),_jsx(_components.td,{children:`Is turned on again.`}),_jsx(_components.td,{children:`It fills the waiting transactions it matches that no rule has filled yet, as a new rule does.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Move it`}),_jsx(_components.td,{children:`Goes before or after another rule, or first or last in the list.`}),_jsx(_components.td,{children:`They keep their rule. New transactions follow the new order.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Delete it`}),_jsx(_components.td,{children:`Is deleted.`}),_jsx(_components.td,{children:`They go back to your other rules.`})]})]})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Transactions that go back are filed again at once.`}),` Your other rules decide them the way they decide new\ntransactions. The ones no other rule matches wait on `,_jsx(_components.strong,{children:`For review`}),` with no category. The preview names the rules\nthat take them.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Transactions someone changed stay as they are.`}),` A change touches only the transactions the rule filled that\nnobody gave another category or payee since, and that are not posted yet. The ones someone changed that way, and\nthe ones you already moved to `,_jsx(_components.strong,{children:`Categorized`}),`, stay as they are, and so do the ones on `,_jsx(_components.strong,{children:`Excluded`}),` that an\nexclusion rule marked. The preview counts the ones someone changed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Transactions you excluded yourself are changed too.`}),` When a rule that is not an exclusion rule filled a\ntransaction that someone then excluded, by hand or with its bank account, a change to that rule changes it like a\nwaiting one. It stays on `,_jsx(_components.strong,{children:`Excluded`}),`, but the change takes the rule’s category and vendor off it, or gives it the\nedited rule’s, and your other rules do not file it again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global rules change at every client.`}),` A change to a global rule works at every client of your firm with the\nsame accounting app. Turning one off, deleting it, or editing it so it no longer matches puts back its waiting\ntransactions there, and each client’s other rules file them again. Turning one on fills waiting transactions here\nand at your other clients, as a new global rule does. The preview shows what happens at your other clients.\nChanging global rules needs `,_jsx(_components.strong,{children:`Manage Global Rules`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global rules at your QuickBooks clients.`}),` Turning a global rule off, deleting it or editing it also takes off\nits “map this category” badges. Those transactions are filed again at once, by each client’s other rules or by the\nedited rule. A global rule you edit or turn on files transactions only at the clients that link its global\ncategory. At the others, the transactions it matches wait with the badge. The preview counts them, and names those\nclients, as for a new global rule. To delete a global rule the LedgerSync app is still applying to transactions,\nthe setup waits up to about 15 minutes for that to finish.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global rules that share a priority.`}),` When some of your global rules have the same `,_jsx(_components.strong,{children:`Priority`}),` number in the\nLedgerSync app, the order between them is not certain. So the AI cannot move a global rule across them or next to\nthem, or delete one of them. Ask the AI for another place, or move or delete the rule in the LedgerSync app.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Exclusion rules change the same way.`}),` You can change an exclusion rule like any other rule. It stays an\nexclusion rule: the waiting transactions it keeps or fills are marked for exclusion, and move to `,_jsx(_components.strong,{children:`Excluded`}),`\nwhen you accept them. The preview and the result count them with the change, apart from what new exclusion rules\nmark. A change cannot make a rule an exclusion rule, or the other way around.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Rules can look at the amount.`}),` A condition can also check the amount: equals, doesn’t equal, is greater than or\nis less than. For example: `,_jsx(_components.em,{children:`Make a rule for Shell over 500`}),`. Write a plain amount, such as 1200.50, with no $ sign,\ncommas or minus sign. The amount is compared without its sign: money in or money out is set on the rule. A rule\nstill needs words to look for in the bank text. This works in new rules too.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Changes and new rules can go together.`}),` One preview takes up to 50 changes, one per rule, along with new rules.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`If a rule changes after the preview,`}),` for example in the LedgerSync app, LedgerSync does not make the change to\nit. If it finds this before it saves anything, nothing is saved. If it finds it while it saves, only that change\nfails, and the rest is saved. Either way, ask the AI to read the rule again and preview the change again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A changed rule is not marked LS-AI.`}),` Its history shows the change instead: in the LedgerSync app, open the rule\nand click the `,_jsx(_components.strong,{children:`Rule History`}),` button at the top right. A deleted rule has no page to open its history from. A\nQuickBooks global rule the AI edits also gets a line on the `,_jsx(_components.strong,{children:`Apply Status`}),` tab of `,_jsx(_components.strong,{children:`Global Rules`}),`: `,_jsx(_components.strong,{children:`Finished`}),`,\nwith 0 categorized transactions, because the setup files its transactions itself. Undoing the edit adds one more.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Changed your mind?`}),` Undo the setup, as for new rules. It puts the rules back as they were, and their waiting\ntransactions too. See `,_jsx(_components.a,{href:`#undo`,children:`Undo`}),`.`]}),`\n`]})]}),_jsxs(Accordion,{title:`What LedgerSync saves`,id:`what-ledgersync-saves`,children:[_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The rules. Each one looks for words in the bank text (contains, doesn’t contain or is exactly) and, if you want,\nat the amount, for money in, money out or both. It puts a category on the transaction and its vendor as the payee.`}),`\n`,_jsx(_components.li,{children:`New categories and vendors, for the client or for your firm (global). For a QuickBooks client, the client’s new\ncategories and vendors are also created in its QuickBooks. Global ones live in LedgerSync only.`}),`\n`,_jsxs(_components.li,{children:[`The changes to your existing rules that you said yes to, and what they do to the rules’ waiting transactions, as\nin `,_jsx(_components.a,{href:`#changing-your-rules`,children:`Changing your rules`}),`.`]}),`\n`,_jsx(_components.li,{children:`Links between one of the client’s categories and a global category, where the client has no link for either one\nyet.`}),`\n`,_jsxs(_components.li,{children:[`The category on each waiting transaction the rules fill and, when the rule has a vendor, that vendor as its payee.\nThe transactions stay on `,_jsx(_components.strong,{children:`For review`}),`, as when your own rules fill them.`]}),`\n`,_jsxs(_components.li,{children:[`For an exclusion rule, the waiting transactions it fills are also marked for exclusion, and stay on `,_jsx(_components.strong,{children:`For review`}),`.\nIn the LedgerSync app they are highlighted, and the `,_jsx(_components.strong,{children:`Exclusion Rule`}),` filter shows them. When you accept them,\nthey move to `,_jsx(_components.strong,{children:`Excluded`}),` instead of `,_jsx(_components.strong,{children:`Categorized`}),`, and they are never posted to QuickBooks.`]}),`\n`]}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`green`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Everything the AI makes is marked LS-AI.`}),` LedgerSync marks each rule, category, vendor and link the AI creates\n`,_jsx(_components.strong,{children:`LS-AI`}),`, with the setup it came from, so you can tell it apart from your own setup. LedgerSync also records who\nasked for the setup and from which AI app. To see what the AI made, ask it. For example: `,_jsx(_components.em,{children:`Show me the rules you set\nup for Acme.`})]})})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Where to find them in the LedgerSync app.`}),` Click `,_jsx(_components.strong,{children:`Rules Engine`}),`, then `,_jsx(_components.strong,{children:`Manual`}),` or `,_jsx(_components.strong,{children:`QuickBooks`}),`. In the menu\non the left, the rules are under `,_jsx(_components.strong,{children:`Rules`}),`: `,_jsx(_components.strong,{children:`Client Rules`}),` and `,_jsx(_components.strong,{children:`Global Rules`}),`. Categories and vendors are under\n`,_jsx(_components.strong,{children:`Settings`}),`: `,_jsx(_components.strong,{children:`Client Settings`}),` has the client’s (its categories and its vendors), and `,_jsx(_components.strong,{children:`Global Settings`}),` has\nyour firm’s (`,_jsx(_components.strong,{children:`Global Categories`}),`, `,_jsx(_components.strong,{children:`Global Vendors`}),`). A QuickBooks client’s new categories and vendors are also\nin its QuickBooks.`]})]}),_jsxs(Accordion,{title:`Undo`,id:`undo`,children:[_jsxs(_components.p,{children:[`Changed your mind? Ask the AI to undo the setup. For example: `,_jsx(_components.em,{children:`Undo the rules setup you just did for Acme.`})]}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`The AI first checks what the undo would do. Claude and ChatGPT already ask you to allow it here: allow it,\nbecause this check changes nothing. Then the AI shows you what the undo would remove and what it would keep,\nand why. Nothing has changed yet.`}),`\n`,_jsx(_components.li,{children:`You say yes. Claude and ChatGPT also ask you to allow it.`}),`\n`,_jsxs(_components.li,{children:[`LedgerSync deletes the rules the setup made. It takes their category and payee (and, for an exclusion rule, its\nmark) off the waiting transactions they filled. When the setup had no changes to your existing rules, that\nincludes a payee or category you changed yourself on one of them. When it had some, a transaction you changed\nyourself stays as it is: see `,_jsx(_components.strong,{children:`When the setup changed your existing rules`}),` below.`]}),`\n`,_jsxs(_components.li,{children:[`Transactions you moved to `,_jsx(_components.strong,{children:`Excluded`}),` because of the setup’s exclusion rules go back to `,_jsx(_components.strong,{children:`For review`}),`. The AI\nsays how many before you say yes.`]}),`\n`,_jsx(_components.li,{children:`It undoes the category links the setup made.`}),`\n`,_jsx(_components.li,{children:`It deletes the categories and vendors the setup made, unless something uses them now, such as another rule, a\ntransaction or a linked category. Those stay, and the AI tells you which.`}),`\n`]}),_jsx(_components.p,{children:`For a QuickBooks client, three things are different:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The categories and vendors the setup created in QuickBooks stay`}),`, in QuickBooks and in LedgerSync. LedgerSync\nnever deletes anything in QuickBooks. The AI tells you which ones stay. A category the setup created loses the\nlink the setup gave it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The transactions your global rules filed through a link the setup made go back to waiting`}),`, even ones filed\nafter the setup. Where no other rule takes them, they get the “map this category” badge again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The “map this category” badges the setup’s global rules put on transactions go away`}),`, at this client and at\nyour other QuickBooks clients.`]}),`\n`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`When the setup changed your existing rules.`}),` The undo also puts back what the setup changed, as it was before the\nsetup:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The rules.`}),` Each rule goes back to how it was: its name, conditions, category, vendor, whether it is on, and its\nplace in the list. A rule the setup deleted comes back, in its old place or as close to it as it can.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The transactions.`}),` Each waiting transaction the setup changed goes back to how it was before the setup. That\nincludes the ones it put back for your other rules, and the ones the rules filled during the setup.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global rules, at every client.`}),` A global rule the setup changed goes back the same way, a deleted one included,\nand so do its transactions at every client of your firm. A deleted global rule’s earlier lines on the\n`,_jsx(_components.strong,{children:`Apply Status`}),` tab of `,_jsx(_components.strong,{children:`Global Rules`}),` do not come back.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`What changed since stays.`}),` A rule someone changed after the setup stays as it is now, and so does a rule whose\nold category was deleted. A moved rule goes back to its old place, or between its old neighbours. If those were\nmoved apart since, it stays where it is. A transaction someone changed after the setup stays as it is too, even\none the setup’s new rules filled. Transactions you moved to `,_jsx(_components.strong,{children:`Excluded`}),` because of the setup’s new exclusion\nrules still go back to `,_jsx(_components.strong,{children:`For review`}),`, as in step 4 above. Before you say yes, the AI tells you which.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`A later setup goes first.`}),` If a later setup changed the same rules or transactions, undo that one first. The AI\noffers to.`]}),`\n`]}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`An undo never changes`}),` the transactions you already moved to `,_jsx(_components.strong,{children:`Categorized`}),`, or your own rules, except the ones\nthe setup changed. When the setup had no changes to your rules, it also leaves alone the transactions your existing\nrules filled during the setup, except, at a QuickBooks client, the ones your global rules filed through a link the\nsetup made.`]})})}),_jsxs(_components.p,{children:[`An undo works once the setup is no longer running, whether it is done, partly done or failed. It removes only what\nthe setup saved, and puts back only what it changed. If an undo could not finish, ask the AI to undo the setup again.\nWhile another setup of your firm is running or being undone, an undo cannot start: ask the AI again when that one\nfinishes. Undoing global rules, global categories, global vendors or changes to global rules needs\n`,_jsx(_components.strong,{children:`Manage Global Rules`}),`.`]})]}),_jsx(Accordion,{title:`What it does not do yet`,id:`what-it-does-not-do-yet`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Clients that use another accounting app, such as Zoho Books.`}),`\n`,_jsx(_components.li,{children:`Changing the category of a rule that splits each transaction over several categories.`}),`\n`,_jsx(_components.li,{children:`Taking a rule’s vendor off. A change can give a rule a vendor or replace it.`}),`\n`,_jsx(_components.li,{children:`A rule on the amount alone. A rule also needs words to look for in the bank text.`}),`\n`,_jsx(_components.li,{children:`A new QuickBooks category under another new one. Set up the first one, then ask for the one under it.`}),`\n`,_jsx(_components.li,{children:`Moving a QuickBooks category you have under another one, or changing its type or detail type.`}),`\n`,_jsx(_components.li,{children:`Employees as payees, and new customers.`}),`\n`,_jsx(_components.li,{children:`Turning a deactivated QuickBooks category or vendor back on.`}),`\n`]})}),_jsx(Accordion,{title:`Before you start`,id:`before-you-start`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`LedgerSync is in your AI app:`}),` Claude, ChatGPT or Grok. Not yet? Go to `,_jsx(_components.a,{href:`/ai/start-here`,children:`Start here`}),`. Added it\na while ago? Do `,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),` once, so your AI gets the new\nrules tools. On ChatGPT Business, Enterprise or Edu, your workspace admin refreshes LedgerSync’s tools first. On\nEnterprise and Edu, they also turn on the two new tools, for reading one rule and for linking a global category at\nevery client: `,_jsx(_components.strong,{children:`Workspace settings`}),`, then `,_jsx(_components.strong,{children:`Apps`}),`, then `,_jsx(_components.strong,{children:`…`}),` next to LedgerSync, then `,_jsx(_components.strong,{children:`Action control`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The client is a Manual client or a QuickBooks Online client.`}),` A Manual client is not set up with an accounting\napp in LedgerSync. A QuickBooks client is connected to QuickBooks in LedgerSync. In the LedgerSync app, you work on\nthese clients under `,_jsx(_components.strong,{children:`Rules Engine`}),`, then `,_jsx(_components.strong,{children:`Manual`}),` or `,_jsx(_components.strong,{children:`QuickBooks`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The client does not need its own categories yet.`}),` The AI can propose new ones, or use your firm’s global\ncategories.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Global rules need permission.`}),` To make or change a global rule, your LedgerSync login needs\n`,_jsx(_components.strong,{children:`Manage Global Rules`}),`. The firm owner and administrators always have it. Employees have it unless the owner or\nan administrator turned it off. They do that in the LedgerSync app: they click their name at the top, then `,_jsx(_components.strong,{children:`Permissions`}),`.`]}),`\n`]})}),_jsx(Accordion,{title:`Your client's data`,id:`your-clients-data`,children:_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`yellow`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Your client’s bank data goes through your AI account.`}),` The AI app reads the client’s transactions, categories,\nvendors (and, for a QuickBooks client, its customers) and rules, and your firm’s global categories, vendors and\nrules. It keeps the chat under your AI account’s settings. Check that account’s data settings before you start. For\nyour other clients, it sees counts, such as how many transactions a global rule would fill. For a QuickBooks client,\nit also sees the names of your other QuickBooks clients that still need a link, only the ones you can see in\nLedgerSync. To link a global category at every client, it sees the names of those clients and of their categories,\nonly the ones you can see in LedgerSync. To suggest a QuickBooks client’s links, LedgerSync reads the client’s\nexpenses and deposits of the last 12 months in QuickBooks. The AI sees how many were booked to each category and up\nto 3 examples (date, amount and description). LedgerSync keeps that read in memory for an hour, not in its database.`]})})})}),_jsxs(Accordion,{title:`Optional: the full instructions to paste`,id:`optional-the-full-instructions-to-paste`,children:[_jsx(_components.p,{children:`You don’t need these: LedgerSync already gives your AI the same steps. If your AI does not follow\nthem, give it these instructions.`}),_jsx(`div`,{className:`lsai-prompt`,children:_jsx(_MdxComponentBoundary,{name:`AiCopy`,children:_jsx(AiCopy,{label:`Instructions for your AI`,text:`Set up or change categorization rules for a LedgerSync client.\n1. Find the client with ledgersync_find_clients in this chat and pass its client_name with its client_id to every tool. Never reuse a client id from an earlier chat or from memory: LedgerSync refuses a client_id given with another client's name. Then call ledgersync_get_rules_setup. It works for QuickBooks Online and Manual clients; follow its next_step.\n2. Read what exists: ledgersync_list_rules (client and global), ledgersync_list_setup_categories (client and firm) and ledgersync_list_setup_vendors (client and firm).\n3. Link the firm's categories. ledgersync_list_setup_categories (kind firm) lists first the ones this client does not link yet, the ones its waiting transactions wait on (waiting_on_link) ahead of the rest, each with a link_suggestion. Level a: the client's own transactions decide it (in LedgerSync, or how its QuickBooks booked them), so propose its first candidate. Level b: propose the first candidate as your best guess and show the user the other candidates. Level c: ask the user which of the client's categories to link; for a QuickBooks client only when waiting_on_link is above 0, and say in one line how many others can wait. Put all these links in one preview (mappings); if there are more than one preview takes, start with the ones transactions wait on, then the ones the firm's global rules use, and ask before the rest. For a QuickBooks client a link is what lets the firm's global rules file its transactions at all; for a Manual client it sets the GL code they use. To link one firm category at every client of the firm that lacks it, not only this one, use ledgersync_preview_category_links: one preview for all of those clients, a page at a time. Show the totals and the clients that need a decision, call it again with overrides and skip_client_ids for the clients the user changes, each with the client's name next to its id as that preview lists it, and apply its confirmation_id after the user's yes.\n4. Call ledgersync_list_uncategorized_transactions and work through the groups, largest first. A group with waiting_on_link needs the link from step 3, not a new rule.\n5. For each group choose the category from the client's own categories or, for a global rule, from the firm's categories. Use names that exist, or propose new ones and say they are new. Never guess: ask the user when you are not sure. When a group looks like money that should be left out of the books (for example transfers between the client's own accounts), propose an exclusion rule (rule_type exclusion) for it: it still files to a category, and LedgerSync marks the transactions it matches for exclusion instead of categorizing them.\n6. Give every rule a payee the same way: one of the client's vendors (for a QuickBooks client, also one of its customers) for a client rule, one of the firm's vendors for a global rule, or a new vendor you say is new. The rule puts it on each transaction it fills as the payee, and the firm can accept a transaction only when it has a payee. An exclusion rule needs no payee: accepting its transactions moves them to Excluded.\n7. Pick the kind of each rule yourself: a global rule (every client of the firm) for vendors that mean the same for every client, such as bank fees, software or fuel, otherwise a client rule (this client only). Then propose each rule to the user by its name, saying what it does and for whom, and ask yes or no, for example: \"Can I create a global rule 'Square' that leaves Square deposits out of the books for every client?\" The user answers yes, no or what to change, so they never have to ask for a client or global rule.\n8. Follow the firm's naming pattern for rule names; you can see it in the existing rules.\n9. To change a rule that exists, read it first with ledgersync_get_rule, then put the change in the preview's changes, one per rule: edit (its name, money in or out, conditions, category or payee), turn_off, turn_on, move (before or after another rule of its list, or first or last) or delete. A change keeps the rule's type: an exclusion rule stays an exclusion rule. A change to a global rule applies at every client of the firm: say so when you propose it. Conditions, in new rules and edits, can also test the amount (equals, doesnt_equal, is_greater_than, is_less_than) with a plain amount such as 1200.50.\n10. Preview with ledgersync_preview_rules_setup (up to 100 rules and 50 changes at a time). Show the user what will be created (for a QuickBooks client, new categories and vendors are created in its QuickBooks after the yes), how many transactions each rule fills for this client and for other clients (for an exclusion rule, how many it marks for exclusion), which other clients still need a link (offer to link that firm category at every client that lacks it, with ledgersync_preview_category_links), for each change the rule before and after and the transactions it puts back for the other rules to file, here and, for a global rule, at the firm's other clients, and every warning.\n11. Only after the user says yes, call ledgersync_apply_rules_setup with the preview's confirmation_id and the same client_id and client_name. Then follow ledgersync_get_rules_setup_status until it finishes and report the result. For a QuickBooks client, offer to post the filled transactions into its QuickBooks with the QuickBooks bookkeeping tools, as the status's next_step says.\n12. Everything you create is marked LS-AI in LedgerSync for review, and a rule you change shows the change in its history. If the user wants a setup taken back, use ledgersync_undo_rules_setup: it removes what the setup created and puts the rules it changed back as they were; categories and vendors created in QuickBooks stay there, and an undo also puts back on For review the transactions the user moved to Excluded because of the setup's exclusion rules.`})})}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Click `,_jsx(_components.strong,{children:`Copy`}),` above.`]}),`\n`,_jsx(_components.li,{children:`In Claude, ChatGPT or Grok, start a new chat.`}),`\n`,_jsxs(_components.li,{children:[`Click the message box and press `,_jsx(_components.strong,{children:`Ctrl+V`}),` (`,_jsx(_components.strong,{children:`Command+V`}),` on a Mac).`]}),`\n`,_jsxs(_components.li,{children:[`At the end, type the client’s name. For example: `,_jsx(_components.em,{children:`Acme`}),`. To start with some of the transactions, say which. For\nexample: `,_jsx(_components.em,{children:`Acme, start with bank fees and software`}),`. To change a rule you have, say which and how. For example:\n`,_jsx(_components.em,{children:`Acme, turn off the Shell rule`}),`. Then press `,_jsx(_components.strong,{children:`Enter`}),`.`]}),`\n`]}),_jsx(_MdxComponentBoundary,{name:`AiNote`,children:_jsx(AiNote,{tone:`gray`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Using Claude Code?`}),` The instructions are also a LedgerSync command there. Type `,_jsx(_components.strong,{children:`/`}),`, pick `,_jsx(_components.strong,{children:`rules_setup`}),` (it\nsays `,_jsx(_components.strong,{children:`(MCP)`}),` next to it) and press `,_jsx(_components.strong,{children:`Enter`}),`. Then tell it the client.`]})})})]})]}),_jsx(_components.h2,{children:`If something goes wrong`}),_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Most common messages`,id:`most-common-messages`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The AI says`}),_jsx(_components.th,{children:`Do this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`It doesn’t know how to do this`}),_jsxs(_components.td,{children:[`Your AI may still have an older copy of LedgerSync’s tools. Do `,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),`, then start a new chat. On ChatGPT Business, Enterprise or Edu, ask your workspace admin to refresh LedgerSync’s tools. On Enterprise and Edu, also ask them to turn on the two new tools, for reading one rule and for linking a global category at every client, under `,_jsx(_components.strong,{children:`Action control`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`It cannot make an exclusion rule`}),_jsxs(_components.td,{children:[`Your AI may still have an older copy of LedgerSync’s tools. Do `,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),`, then start a new chat.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`An exclusion rule’s transactions are still on `,_jsx(_components.strong,{children:`For review`})]}),_jsxs(_components.td,{children:[`That is how exclusion rules work: the rule marks them, and you decide. Accept them in LedgerSync to move them to `,_jsx(_components.strong,{children:`Excluded`}),`. Or ask the AI to accept the exclusion rules’ transactions: see `,_jsx(_components.a,{href:`/ai/accept-transactions`,children:`Accept For review transactions`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The client’s QuickBooks connection stopped working`}),_jsxs(_components.td,{children:[`Links and rules still work. The client’s new categories, its new vendors and customers as payees need QuickBooks: reconnect it, as in `,_jsx(_components.a,{href:`#quickbooks-clients`,children:`QuickBooks clients`}),`, then ask the AI to preview again.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`QuickBooks could not be read just now`}),_jsxs(_components.td,{children:[`Links and rules still work. The client’s new categories, its new vendors and customers as payees need QuickBooks: wait a few minutes, then ask the AI to preview again. If it keeps happening, reconnect QuickBooks, as in `,_jsx(_components.a,{href:`#quickbooks-clients`,children:`QuickBooks clients`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The client uses another accounting app, such as Zoho Books`}),_jsx(_components.td,{children:`Not yet. Set up its rules in the LedgerSync app.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`It cannot find the client`}),_jsx(_components.td,{children:`Ask “Find my client …” first. Not the firm owner or an administrator? You see only the clients assigned to you in LedgerSync.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`You cannot make or change global rules`}),_jsxs(_components.td,{children:[`Your LedgerSync login needs `,_jsx(_components.strong,{children:`Manage Global Rules`}),`. Make it a client rule, or ask your firm owner.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Some items were refused in the preview`}),_jsx(_components.td,{children:`The AI says why for each one. Answer its questions, or leave them out, and ask it to preview again. Nothing has changed yet.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Some items failed`}),_jsx(_components.td,{children:`The AI says which ones and why. The rest was saved. Fix the reason, then ask the AI to preview the missing ones again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`QuickBooks did not answer while the setup ran, or its connection stopped working`}),_jsx(_components.td,{children:`The setup keeps running, and LedgerSync tries again every few minutes, 5 tries in all. If the connection stopped working, reconnect it. After the last try, what still needs QuickBooks fails, and the rest of the setup is saved: ask the AI to preview the failed items again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A global rule can only be turned off or on`}),_jsxs(_components.td,{children:[`Your AI still has an older copy of LedgerSync’s tools. Do `,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),`, then start a new chat.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A new QuickBooks category can only go at the top level, or cannot have a detail type`}),_jsxs(_components.td,{children:[`Your AI still has an older copy of LedgerSync’s tools. Do `,_jsx(_components.a,{href:`/ai/troubleshooting#after-an-update`,children:`After a LedgerSync update`}),`, then start a new chat.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Some global rules share a priority`}),_jsxs(_components.td,{children:[`They have the same `,_jsx(_components.strong,{children:`Priority`}),` number in the LedgerSync app, so the AI cannot move a global rule across or next to them, or delete one of them. Ask the AI for another place, or move or delete the rule in the LedgerSync app.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`An amount is not a plain amount`}),_jsx(_components.td,{children:`Write it with digits and up to 2 decimals, such as 1200.50, with no $ sign, commas or minus sign. The rule’s money in or money out says which way.`})]})]})]})}),_jsx(Accordion,{title:`Warnings in the preview: name taken, rule fills nothing, overlapping rules, broad rules, no GL code, missing links`,id:`warnings-in-the-preview-name-taken-rule-fills-nothing-overlapping-rules-broad-rules-no-gl-code-missing-links`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The AI says`}),_jsx(_components.th,{children:`Do this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A name is already taken`}),_jsx(_components.td,{children:`LedgerSync already has a category, vendor or rule with that name. For a QuickBooks client, that includes the categories and vendors in its QuickBooks. The AI can use the one you have, or pick another name. For a new QuickBooks category under another one, only a category with that name under the same one counts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A rule fills no transactions`}),_jsx(_components.td,{children:`Its words match no waiting transaction, here or at your other clients, or every transaction they match already goes to another rule (see the next row). Check the words with the AI, or leave the rule out.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Another rule already gets a rule’s transactions`}),_jsx(_components.td,{children:`One of your existing rules, a rule earlier in the preview or, for a global rule, a new client rule fills them first (a client’s own rules always come before global rules). Leave the new rule out, or ask the AI for more specific words.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Two new rules match the same transactions`}),_jsx(_components.td,{children:`Each transaction goes to only one rule: a client rule before a global rule, otherwise the one listed first. Check with the AI that the right rule gets them, or make the words more specific.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The words are found inside longer words`}),_jsxs(_components.td,{children:[`For example, `,_jsx(_components.em,{children:`Shell`}),` also matches `,_jsx(_components.em,{children:`Shellfish Grill`}),`. Check the examples. If they are wrong, ask the AI for more specific words.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A rule is very broad`}),_jsx(_components.td,{children:`It fills more than half of this client’s waiting transactions, or more than 200 at your other clients. Make sure it is not too general.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The category has no GL code`}),_jsx(_components.td,{children:`Manual clients only. The transactions it fills get a category with no GL code. Pick a category that has one, or go ahead if that is fine.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The client has no category linked to the global category`}),_jsx(_components.td,{children:`At a Manual client, the transactions get the global category and its GL code: to use the GL code of one of the client’s categories instead, ask the AI to link it in the same setup. At a QuickBooks client, the rule cannot file them, so they wait with the “map this category” badge: ask the AI to link a category in the same setup.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Your other QuickBooks clients need a link`}),_jsx(_components.td,{children:`A new global rule, or one you edit or turn on, files their transactions only once they link its global category. Until then, those transactions wait with the badge. Ask the AI to link the category at every client, or link it in the LedgerSync app.`})]})]})]})}),_jsx(Accordion,{title:`More messages: preview expired, setup not confirmed, LedgerSync busy, setup waiting, rules changed since the preview, undo, setup failed, limits`,id:`more-messages-preview-expired-setup-not-confirmed-ledgersync-busy-setup-waiting-rules-changed-since-the-preview-undo-setup-failed-limits`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The AI says`}),_jsx(_components.th,{children:`Do this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The preview expired`}),_jsx(_components.td,{children:`A preview works for 30 minutes. Ask the AI to preview again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`LedgerSync did not confirm the setup, so it may or may not have started`}),_jsx(_components.td,{children:`Don’t ask it to apply again. Wait a minute, then ask it to check the setup’s status.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`LedgerSync is busy with other setups`}),_jsx(_components.td,{children:`Nothing was saved. Wait a minute, then ask the AI to apply the same preview again. A preview works for 30 minutes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The setup is waiting`}),_jsx(_components.td,{children:`Your firm runs one setup at a time. It starts when the one before it finishes.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Too many items for one preview`}),_jsx(_components.td,{children:`One preview takes up to 100 rules, 50 new global categories, 50 new client categories, 100 category links, 100 new vendors and 50 changes to existing rules, one per rule. Ask the AI to do the rest in another preview.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A rule’s words are refused`}),_jsx(_components.td,{children:`A rule needs 1 to 5 conditions, on the bank text (each up to 200 characters) or the amount. At least one must look for words in the bank text (contains or is exactly). The AI says what is wrong. Ask it to fix the rule.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The rules changed since the preview`}),_jsx(_components.td,{children:`Someone changed or deleted one of the rules after the preview, so nothing was saved. Ask the AI to preview again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A change failed because its rule was changed or deleted`}),_jsx(_components.td,{children:`Someone changed or deleted the rule after the preview. If LedgerSync found this before it saved anything, the setup failed and nothing was saved. If it found it while saving, only that change failed, and the rest of the setup was saved. Ask the AI to read the rule again and preview the change again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`LedgerSync was still applying a global rule to transactions, so it was not deleted`}),_jsxs(_components.td,{children:[`The LedgerSync app was still running that global rule on transactions, even after the setup waited about 15 minutes for it. The rest of the setup was saved. In the LedgerSync app, wait until the rule’s line on the `,_jsx(_components.strong,{children:`Apply Status`}),` tab of `,_jsx(_components.strong,{children:`Global Rules`}),` shows `,_jsx(_components.strong,{children:`Finished`}),`, then ask the AI to delete it again.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Undo the later setup first`}),_jsx(_components.td,{children:`A later setup changed the same rules or transactions, and it is still in place. Ask the AI to undo that one first, then this one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A name is too long`}),_jsx(_components.td,{children:`Names can be up to 64 characters for a global rule, a client category or a global vendor, 80 for a client vendor, and 100 for a client rule or a global category. A GL code can be up to 64. Give the AI a shorter one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Undo is not possible`}),_jsxs(_components.td,{children:[`An undo works once a setup is no longer running, whether it is done, partly done or failed, and again after an undo that could not finish. It cannot start while another setup of your firm is running or being undone: ask the AI again when that one finishes. A setup that is undone cannot be undone again. Undoing global rules, global categories, global vendors or changes to global rules needs `,_jsx(_components.strong,{children:`Manage Global Rules`}),`. Undoing the links of a global category at every client needs someone who sees all of those clients, such as your firm owner.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The setup failed`}),_jsxs(_components.td,{children:[`What it saved before it stopped stays, marked LS-AI. To remove it, ask the AI to undo the setup. For help with why it failed, email `,_jsx(_MdxComponentBoundary,{name:`AiEmail`,children:_jsx(AiEmail,{})}),` and say which client.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The undo check expired`}),_jsx(_components.td,{children:`An undo check works for 15 minutes. Ask the AI to check the undo again.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Too many previews, setups or undos this hour or today`}),_jsx(_components.td,{children:`Each AI app you connect can preview 60 times an hour, save 30 setups a day and undo 10 a day. Try again next hour or tomorrow, as the AI says.`})]})]})]})}),_jsx(Accordion,{title:`QuickBooks clients: deactivated categories and vendors, account types, categories under another one, detail types, customers, characters`,id:`quickbooks-clients-deactivated-categories-and-vendors-account-types-categories-under-another-one-detail-types-customers-characters`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`The AI says`}),_jsx(_components.th,{children:`Do this`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A name belongs to a deactivated category or vendor in QuickBooks`}),_jsxs(_components.td,{children:[`LedgerSync never turns it back on. Use another name. Or turn it back on in QuickBooks, then, in the LedgerSync app, select the client, click `,_jsx(_components.strong,{children:`Rules Engine`}),`, then `,_jsx(_components.strong,{children:`QuickBooks`}),`, then `,_jsx(_components.strong,{children:`Sync QuickBooks Data`}),` at the bottom of the menu on the left. Then ask the AI to preview again.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A category or a vendor is deactivated`}),_jsx(_components.td,{children:`A rule or a link cannot use a deactivated QuickBooks category, and a client rule cannot pay a deactivated vendor. Pick another one, or turn it back on in QuickBooks and sync, as in the row above.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A name belongs to a QuickBooks category of another type, or one under another category`}),_jsx(_components.td,{children:`Use that category, or give the new one another name. To make the new one under a category, tell the AI which one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A new category needs an account type`}),_jsx(_components.td,{children:`Tell the AI the QuickBooks account type, such as Expense or Income. Or tell it which category the new one goes under: it gets that one’s type.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`A new category’s name has `,_jsx(_components.code,{children:`:`})]}),_jsxs(_components.td,{children:[`In QuickBooks, `,_jsx(_components.code,{children:`:`}),` puts a category under another one. Give the new category a name without it, and tell the AI which category it goes under.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A new category cannot go under the category you picked`}),_jsx(_components.td,{children:`That category is not in the client’s QuickBooks, is deactivated, has another type than the one you gave, is already on the fifth level, or is one of the special ones QuickBooks never puts a category under, such as Undeposited Funds. The AI says which. Pick another category, or make the new one at the top level.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A detail type is refused`}),_jsx(_components.td,{children:`It does not belong to the category’s account type, or LedgerSync does not know it: the AI names some that work. Pick one of them, or leave it out. Under another category, a few special detail types, such as Opening Balance Equity, are not allowed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A Manual client’s new category cannot go under another category, or have a detail type`}),_jsx(_components.td,{children:`Those are for QuickBooks clients only. Ask the AI to leave them out.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A new vendor has the name of one of the client’s customers`}),_jsx(_components.td,{children:`Make the customer the rule’s payee, or give the vendor another name.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`A rule’s words have `,_jsx(_components.code,{children:`%`}),`, `,_jsx(_components.code,{children:`_`}),` or `,_jsx(_components.code,{children:`\\\\`})]}),_jsx(_components.td,{children:`At a QuickBooks client, a rule cannot look for these characters. Leave them out.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A payee is the wrong kind`}),_jsx(_components.td,{children:`A global rule pays one of your firm’s global vendors, never a customer. No rule pays an employee.`})]})]})]})})]}),_jsxs(_components.p,{children:[`Anything else? See `,_jsx(_components.a,{href:`/ai/troubleshooting`,children:`Troubleshooting`}),`.`]}),_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`For developers: the 11 tools and what they change`,id:`for-developers-the-11-tools-and-what-they-change`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`What it does`}),_jsx(_components.th,{children:`Changes data`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_get_rules_setup`})}),_jsx(_components.td,{children:`Can the client’s rules be set up (Manual and QuickBooks Online clients); counts of its categories, vendors, rules and waiting transactions; for a QuickBooks client, its QuickBooks connection and the transactions waiting for a link; can you make global rules; the limits; the client’s last setups`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_list_setup_categories`})}),_jsx(_components.td,{children:`The client’s categories or the firm’s global categories, with GL codes (Manual), links, a suggested link for each global category the client does not link, and the LS-AI mark`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_list_setup_vendors`})}),_jsx(_components.td,{children:`The client’s vendors (and, for a QuickBooks client, its customers) or the firm’s global vendors, with the LS-AI mark`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_list_rules`})}),_jsxs(_components.td,{children:[`The client’s rules or the firm’s global rules, with conditions, category, payee, rule type (`,_jsx(_components.code,{children:`rule_type`}),`: inclusion or exclusion) and the LS-AI mark`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_get_rule`})}),_jsx(_components.td,{children:`One rule in full: every condition, every category line of a client rule, its payee, whether it is on, and the rules just before and after it`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_list_uncategorized_transactions`})}),_jsx(_components.td,{children:`The client’s waiting transactions that no rule fills, grouped by bank text, largest groups first, and, at a QuickBooks client, the groups a global rule would file once a category is linked. Accounts hidden in LedgerSync are left out`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_preview_rules_setup`})}),_jsxs(_components.td,{children:[`Checks up to 100 rules (inclusion or exclusion rules, `,_jsx(_components.code,{children:`rule_type`}),`) with their new categories, links and vendors, and up to 50 changes to existing rules, and counts what each rule would fill (for an exclusion rule, what it would mark for exclusion) and what each change would put back, keep or fill, here and at the firm’s other clients (never counting an account hidden in LedgerSync); at a QuickBooks client, also what waits for a link and which other clients need one`]}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_preview_category_links`})}),_jsx(_components.td,{children:`For one global category, proposes the category to link at every client that has none linked to it yet (only the clients you can see), with the totals, a summary by category and, at QuickBooks clients, how many waiting transactions the firm’s global rules would file once it is linked; a page at a time`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_apply_rules_setup`})}),_jsxs(_components.td,{children:[`Saves a previewed setup, makes its changes to existing rules and fills the waiting transactions, in the background; for a QuickBooks client, it first creates the new categories and vendors in the client’s QuickBooks; it also saves the links `,_jsx(_components.code,{children:`ledgersync_preview_category_links`}),` previewed, client by client`]}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_get_rules_setup_status`})}),_jsx(_components.td,{children:`How a setup is going; what it created (in QuickBooks too), changed and filled, never counting an account hidden in LedgerSync; what failed and why`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ledgersync_undo_rules_setup`})}),_jsx(_components.td,{children:`Shows what undoing a setup would remove, put back and keep, never counting an account hidden in LedgerSync (what it created in QuickBooks stays); after a yes, undoes it`}),_jsx(_components.td,{children:`Yes`})]})]})]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The apply takes the preview’s `,_jsx(_components.code,{children:`confirmation_id`}),` with the same `,_jsx(_components.code,{children:`client_id`}),` and `,_jsx(_components.code,{children:`client_name`}),` the preview named,\nand refuses one that names another client. It works for 30 minutes, only for the person and the AI\napp that made the preview, and saves only the items the preview accepted. Calling the apply again with the\nsame confirmation returns the first answer; it never applies twice.`]}),`\n`,_jsxs(_components.li,{children:[`The undo works the same way. The first call changes nothing: it returns what would be removed and kept, and\nan `,_jsx(_components.code,{children:`undo_id`}),`. Only a second call with that `,_jsx(_components.code,{children:`undo_id`}),`, within 15 minutes, undoes the setup. Both calls go to\nthe same tool, marked as changing data, so Claude and ChatGPT ask before each one, the check included.`]}),`\n`,_jsxs(_components.li,{children:[`The two previews, the apply and the undo need `,_jsx(_components.code,{children:`write:accounting`}),`; the other seven tools need\n`,_jsx(_components.code,{children:`read:accounting`}),`. A read-only connection can read but cannot preview, apply or undo.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ledgersync_preview_category_links`}),` takes a global category’s `,_jsx(_components.code,{children:`firm_category_id`}),` and covers every client on\nits platform that has no category linked to it: up to 1,000, only the ones the person can see. Its answer\ncomes a page at a time, each with the totals and the summary by category; the next pages do not count as\npreviews. To change clients, the AI calls it again with `,_jsx(_components.code,{children:`overrides`}),` (a client’s `,_jsx(_components.code,{children:`client_id`}),` and `,_jsx(_components.code,{children:`client_name`}),`,\nand the category to link there, as this preview lists it for that client) and `,_jsx(_components.code,{children:`skip_client_ids`}),` with their\n`,_jsx(_components.code,{children:`skip_client_names`}),`, up to 500 each. The apply takes its `,_jsx(_components.code,{children:`confirmation_id`}),`, with no `,_jsx(_components.code,{children:`client_id`}),` or\n`,_jsx(_components.code,{children:`client_name`}),`. The setup’s `,_jsx(_components.code,{children:`setup_id`}),` starts\nwith `,_jsx(_components.code,{children:`rsl_`}),`: the status and the undo take it without a `,_jsx(_components.code,{children:`client_id`}),`, and the undo takes back every link of the\nsetup.`]}),`\n`,_jsxs(_components.li,{children:[`Rules setup can start without being asked. For a Manual or QuickBooks Online client, the first page of\n`,_jsx(_components.code,{children:`ledgersync_list_transactions`}),` also answers `,_jsx(_components.code,{children:`transactions_without_rule`}),`: how many of the client’s transactions\nno rule and nobody filled yet, as in `,_jsx(_components.strong,{children:`Which transactions?`}),` above, when there are any. Its `,_jsx(_components.code,{children:`next_step`}),` then\ntells the AI to offer rules and, after the user’s yes, to call `,_jsx(_components.code,{children:`ledgersync_get_rules_setup`}),`.\n`,_jsx(_components.code,{children:`ledgersync_list_transactions_to_categorize`}),` offers the same after a push, when a transaction it lists has no\nrule. Neither offers on a read-only connection.`]}),`\n`,_jsxs(_components.li,{children:[`A change to an existing rule goes in the preview’s `,_jsx(_components.code,{children:`changes`}),`, naming the rule by the `,_jsx(_components.code,{children:`rule_id`}),` that\n`,_jsx(_components.code,{children:`ledgersync_list_rules`}),` and `,_jsx(_components.code,{children:`ledgersync_get_rule`}),` show (`,_jsx(_components.code,{children:`rul_c_...`}),` or `,_jsx(_components.code,{children:`rul_g_...`}),`). A setup edits, turns off,\nturns on, moves and deletes client rules and global rules, exclusion rules included. A change to a global rule\napplies at every client of the firm on the client’s platform, and its preview entry counts what it does there.\nA change keeps the rule’s type (`,_jsx(_components.code,{children:`rule_type`}),`).`]}),`\n`,_jsxs(_components.li,{children:[`The client’s own category, vendor and customer ids (`,_jsx(_components.code,{children:`cat_c_...`}),`, `,_jsx(_components.code,{children:`ven_c_...`}),`, `,_jsx(_components.code,{children:`cus_c_...`}),`) are sealed to the\nclient: the id, a dot and 8 more characters. A preview takes each one back only for that client: one from\nanother client’s list, or one with no seal (as LedgerSync gave ids before), is refused with `,_jsx(_components.code,{children:`invalid_request`}),`,\nand its `,_jsx(_components.code,{children:`next_step`}),` tells the AI to list this client’s categories or vendors again. The firm’s ids (`,_jsx(_components.code,{children:`cat_f_...`}),`, `,_jsx(_components.code,{children:`ven_f_...`}),`) and rule ids\nstay as they are.`]}),`\n`,_jsxs(_components.li,{children:[`The instructions above are also an MCP prompt, `,_jsx(_components.code,{children:`rules_setup`}),` (“Set up rules for a client”), with optional\n`,_jsx(_components.code,{children:`client`}),` and `,_jsx(_components.code,{children:`focus`}),` arguments. Claude Code lists it as a command.`]}),`\n`,_jsxs(_components.li,{children:[`For a client on another accounting app, such as Zoho Books, `,_jsx(_components.code,{children:`ledgersync_get_rules_setup`}),` answers\n`,_jsx(_components.code,{children:`supported: false`}),`, and a preview is refused with `,_jsx(_components.code,{children:`invalid_request`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`For a QuickBooks client whose QuickBooks connection is broken, the preview refuses the client’s new categories,\nits new vendors and customer payees with `,_jsx(_components.code,{children:`quickbooks_broken`}),`, and the `,_jsx(_components.code,{children:`next_step`}),` says to reconnect QuickBooks.\nIt refuses them with the same code when QuickBooks could not be read just now: the message then says to try\nagain in a few minutes, and the `,_jsx(_components.code,{children:`next_step`}),` says to preview again then.`]}),`\n`,_jsx(_components.li,{children:`On the sandbox connector, an apply really saves, in the sandbox. For a QuickBooks client, it creates the new\ncategories and vendors in the Intuit sandbox QuickBooks company the client is connected to.`}),`\n`,_jsxs(_components.li,{children:[`See `,_jsx(_components.a,{href:`/ai/developers`,children:`For developers`}),` for every field.`]}),`\n`]})]}),_jsx(Accordion,{title:`For developers: limits`,id:`for-developers-limits`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`One preview takes up to 100 rules, 50 new global categories, 50 new client categories, 100 category links,\n100 new vendors (client and firm vendors together) and 50 changes to existing rules, one per rule.`}),`\n`,_jsx(_components.li,{children:`A rule has 1 to 5 conditions, and at least one of them contains or is exactly. A condition looks at the bank\ntext (contains, doesn’t contain or is exactly), 1 to 200 characters, or at the amount (equals, doesn’t equal,\nis greater than or is less than): a plain amount of up to 9 digits and 2 decimals, with no sign, currency\nsymbol or thousands separator, such as 1200.50. Amounts are compared without their sign.`}),`\n`,_jsxs(_components.li,{children:[`A change cannot change the category of a rule that splits a transaction over several lines, or take a payee\noff a rule. A global rule cannot move across or next to global rules that share a priority, and a global rule\nthat shares its priority cannot be deleted (`,_jsx(_components.code,{children:`priority_ties`}),`). A change keeps the rule’s type: an exclusion rule\nstays one.`]}),`\n`,_jsx(_components.li,{children:`Names: a client rule up to 100 characters, a global rule 64, a global category 100, a client category 64, a\nclient vendor 80, a global vendor 64 and a GL code 64. Names are trimmed, and a name counts as taken whatever\nits capitals.`}),`\n`,_jsx(_components.li,{children:`Each connected AI app can make 60 previews an hour, 30 applies a day and 10 undos a day. An apply counts only\nwhen it reaches LedgerSync.`}),`\n`,_jsxs(_components.li,{children:[`LedgerSync takes a few applies at a time, shared by every firm. An apply past that is refused as busy, is not\ncounted, and can be sent again a minute later with the same `,_jsx(_components.code,{children:`confirmation_id`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A firm runs one setup at a time. The next one waits until the one before it finishes. An undo does not wait:\nwhile another setup of the firm is running or being undone, it is refused with `,_jsx(_components.code,{children:`invalid_request`}),`, and can be\nsent again when that one finishes.`]}),`\n`,_jsx(_components.li,{children:`A preview’s confirmation works for 30 minutes, an apply’s answer is kept for 24 hours, and an undo check\nworks for 15 minutes.`}),`\n`,_jsx(_components.li,{children:`Linking one global category at every client: one preview covers up to 1,000 clients and takes up to 500\nclients to change and 500 to leave out. It counts as one preview, however many pages it has. Its apply and\nundo count like any rules setup’s. Its undo needs a person who sees every client it linked at.`}),`\n`,_jsxs(_components.li,{children:[`Each person sets up rules only for the clients they see in the LedgerSync app: an employee, the clients\nassigned to them. Global rules, global categories and global vendors, and changes to global rules, also need\n`,_jsx(_components.strong,{children:`Manage Global Rules`}),`.`]}),`\n`]})})]}),_jsx(_MdxComponentBoundary,{name:`AiStuck`,children:_jsx(AiStuck,{})})]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{AiStuck,AiEmail,AiNote,AiCopy,AiStep,AiPage,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Set up rules for a client","description":"Your AI proposes rules that categorize a client's waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.","mode":"frame","href":"/ai/rules-setup"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[117,129,"Note=()=>null;const AiCopy=()=>null;const AiStep=()=>null;const AiPage=()=>null;const AiStuck=()=>_j"],[620,8084,""],[101913,101973,"Note,AiCopy,AiStep,AiPage,AiStuck,AiEmail,default:MDXContent"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ledgersync/6ae4be936c1d0f9f/ai-connector.js"],"subdomain":"ledgersync","siteName":"LedgerSync","title":"Set up rules for a client - LedgerSync","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T19:45:43.608Z","originalFileLocation":"ai/rules-setup.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Your AI proposes rules that categorize a client\u0026#x27;s waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LedgerSync\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set up rules for a client - LedgerSync\">\u003cmeta data-mint-head property=\"og:description\" content=\"Your AI proposes rules that categorize a client\u0026#x27;s waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LedgerSync\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ledgersyncappv2.com/ai/rules-setup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ledgersync.mintlify.site/_mintlify/api/og/v2?division=LedgerSync+MCP\u0026amp;title=Set+up+rules+for+a+client\u0026amp;description=Your+AI+proposes+rules+that+categorize+a+client%27s+waiting+bank+transactions%2C+or+mark+the+ones+to+leave+out+%28exclusion+rules%29%2C+for+Manual+and+QuickBooks+Online+c\u0026amp;theme=be9ee04d461525f6ccb1f114\u0026amp;signature=9f218805f4c20ee61b6ae22b932364932dc2eb214c525b49216e2537d6d7df13\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set up rules for a client - LedgerSync\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Your AI proposes rules that categorize a client\u0026#x27;s waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ledgersync.mintlify.site/_mintlify/api/og/v2?division=LedgerSync+MCP\u0026amp;title=Set+up+rules+for+a+client\u0026amp;description=Your+AI+proposes+rules+that+categorize+a+client%27s+waiting+bank+transactions%2C+or+mark+the+ones+to+leave+out+%28exclusion+rules%29%2C+for+Manual+and+QuickBooks+Online+c\u0026amp;theme=be9ee04d461525f6ccb1f114\u0026amp;signature=9f218805f4c20ee61b6ae22b932364932dc2eb214c525b49216e2537d6d7df13\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ledgersync/_Z9OSrCeUvX_nsj4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LedgerSync\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0891B2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ledgersyncappv2.com/ai/rules-setup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai/rules-setup.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ledgersyncappv2.com/#organization\",\"name\":\"LedgerSync\",\"url\":\"https://docs.ledgersyncappv2.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ledgersync/NVbCdX0lsP_TgYmH/logo/ledgersync-wordmark.png?fit=max\u0026auto=format\u0026n=NVbCdX0lsP_TgYmH\u0026q=85\u0026s=b149d57dc2f40804f937b11e31060496\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ledgersyncappv2.com#website\",\"name\":\"LedgerSync\",\"url\":\"https://docs.ledgersyncappv2.com\",\"publisher\":{\"@id\":\"https://docs.ledgersyncappv2.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ledgersyncappv2.com/ai/rules-setup#webpage\",\"url\":\"https://docs.ledgersyncappv2.com/ai/rules-setup\",\"name\":\"Set up rules for a client\",\"description\":\"Your AI proposes rules that categorize a client's waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\",\"dateModified\":\"2026-10-30T19:45:43.608Z\",\"isPartOf\":{\"@id\":\"https://docs.ledgersyncappv2.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ledgersyncappv2.com/ai/rules-setup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ledgersyncappv2.com/ai/rules-setup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"LedgerSync MCP\",\"item\":\"https://docs.ledgersyncappv2.com/ai/start-here\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up rules for a client\",\"item\":\"https://docs.ledgersyncappv2.com/ai/rules-setup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ledgersyncappv2.com/ai/rules-setup#article\",\"headline\":\"Set up rules for a client\",\"name\":\"Set up rules for a client\",\"description\":\"Your AI proposes rules that categorize a client's waiting bank transactions, or mark the ones to leave out (exclusion rules), for Manual and QuickBooks Online clients. After you say yes, LedgerSync saves them and fills the transactions. It can also change your existing rules.\",\"url\":\"https://docs.ledgersyncappv2.com/ai/rules-setup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ledgersyncappv2.com/ai/rules-setup#webpage\"},\"dateModified\":\"2026-10-30T19:45:43.608Z\",\"publisher\":{\"@id\":\"https://docs.ledgersyncappv2.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ledgersyncappv2.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LedgerSync\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LedgerSync","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"LedgerSync MCP","groups":[{"group":"LedgerSync MCP","pages":[{"title":"Use LedgerSync in Claude, ChatGPT or Grok","sidebarTitle":"Start here","mode":"frame","href":"/ai/start-here"},{"title":"Set up in Claude","mode":"frame","href":"/ai/setup-claude"},{"title":"Set up in ChatGPT","mode":"frame","href":"/ai/setup-chatgpt"},{"title":"Set up in Grok","mode":"frame","href":"/ai/setup-grok"},{"title":"Set up in Grok Bot","mode":"frame","href":"/ai/setup-grok-bot"},{"title":"Turn a bank statement PDF into transactions","sidebarTitle":"Convert a statement PDF","mode":"frame","href":"/ai/convert-statement"},{"title":"Bookkeeping into QuickBooks","description":"Your AI categorizes a client's bank transactions from LedgerSync. After you say yes, LedgerSync posts them into the client's QuickBooks.","mode":"frame","href":"/ai/quickbooks-bookkeeping"},{"title":"Set up rules for a client","mode":"frame","href":"/ai/rules-setup"},{"title":"Accept For review transactions","description":"Your AI moves a client's For review transactions in the Rules Engine to Categorized, as Accept does in the LedgerSync app, for Manual and QuickBooks Online clients. It shows you what would move and what would stay first, and moves them only after you say yes. It can also check your rules against the transactions they filed.","mode":"frame","href":"/ai/accept-transactions"},{"title":"Export categorized transactions on a schedule","sidebarTitle":"Export categorized transactions","mode":"frame","href":"/ai/categorized-export"},{"title":"Find who needs a 1099","mode":"frame","href":"/ai/1099-vendors"},{"title":"Review a client's books","mode":"frame","href":"/ai/review-my-client"},{"title":"Troubleshooting","mode":"frame","href":"/ai/troubleshooting"},{"title":"Banks that need the LedgerSync desktop app","sidebarTitle":"Banks that need the desktop app","mode":"frame","href":"/ai/desktop-app"}]},{"group":"Developers","pages":[{"title":"For developers","mode":"frame","href":"/ai/developers"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/health/service-health-check"}]},{"tab":"v2 API (legacy)","pages":[{"title":"v2 API (legacy)","href":"/v2/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Set up rules for a client - LedgerSync","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}