My App
AI Support

Schema and Routing

Documentation schema, intent taxonomy, record format, and retrieval chunking rules.

Required 20-field documentation schema

Maintain each Lexul feature record using these fields so the chatbot can retrieve and answer consistently.

#Documentation detailHow chatbot uses it
1Feature name and aliasesOfficial Lexul name plus phrases customers may use.
2Plain-English descriptionShort explanation the chatbot can reuse.
3Problem it solvesCustomer pain point or operational issue.
4Primary use casesCommon business workflows and industries.
5When to configureConditions where the feature should be set up.
6When not to configureScenarios where another workflow is better.
7Required setup informationCustomer information or data needed first.
8Dependencies and related featuresRecords/modules that must exist before setup.
9Step-by-step setup instructionsWhere to go, what to set, and how to test.
10Role-based workflowAdmin, dispatcher, technician, foreman, accounting behavior.
11Configuration scenariosIf customer does X, configure Y guidance.
12Customer questions AI should askDiscovery questions before exact instructions.
13Common questions and approved answersReusable customer-facing responses.
14Known limitationsFeature boundaries and non-promises.
15Troubleshooting guidanceSymptoms, likely causes, and first checks.
16Permissions and visibilityWho can view, create, edit, approve, sync, or export.
17Data fields and examplesFields, example values, statuses, types, and records.
18Integration behaviorQuickBooks or external integration behavior and source-of-truth.
19Example business scenariosRealistic vertical examples.
20Escalation rulesWhen to hand off to Lexul support or an admin.

Intent taxonomy

Use these intent labels in retrieval metadata and evaluation sets.

IntentTrigger patternBot response objective
how_to_setupUser asks how to configure a feature.Return setup prerequisites, steps, and test action.
when_to_useUser asks whether a feature fits their workflow.Explain use cases, when not to use, and recommended configuration.
workflow_designUser describes a business scenario.Map scenario to Lexul features and ask targeted discovery questions.
troubleshootingUser reports something missing, not visible, not syncing, or not working.Confirm role, status, sync/version, record state, permissions, then escalate if unresolved.
quickbooks_syncUser asks about QuickBooks Online/Desktop data flow.Clarify QBO vs QBD, source-of-truth, what syncs, and what to avoid.
permissions_visibilityUser asks why someone can or cannot see/edit something.Check role, status, assignment, inherited documents, and module permissions.
field_user_how_toTechnician/foreman asks what to do in the field.Give role-specific mobile workflow steps and avoid admin-only setup instructions.
billing_invoiceUser asks how to quote, invoice, hold, summarize, export, or sync.Clarify invoice stage, customer/asset, QuickBooks connection, and whether it has already been sent/synced.
export_reportUser asks to download XLSX/PDF or view reports.Explain available export/report workflows and role limitations.
escalation_neededUser asks beyond documented behavior or reports a data issue.Give safe next checks and hand off to support/admin.

Chatbot training record format

Each sub-feature record below follows this format. Preserve field names during ingestion.

FieldPurpose
record_idStable ID for retrieval and troubleshooting.
feature / sub_featureThe topic the user is asking about.
primary_intentsIntent labels this record should match.
sample_user_utterancesExample customer wording for model training.
entities_to_extractVariables the bot should identify before answering.
approved_answer_basisShort response foundation the bot can reuse.
configure_whenWhen the bot should recommend this feature.
ask_before_answeringClarifying question or context to collect.
dependenciesRelated setup that must exist first.
role_workflowHow different customer roles use the feature.
permissions_visibilityRole and access-control considerations.
known_limits_guardrailsBoundaries that prevent overpromising.
escalation_ruleWhen to route to support/admin.
source_urlsSource articles/pages to cite or retrieve from.

Knowledge record chunking rules

  • Chunk one ### Knowledge Record: section per vector record or retrieval unit.
  • Keep the preceding feature group heading as metadata, not as the primary chunk.
  • Store record_id as the stable retrieval key.
  • Store primary_intents and entities_to_extract as filterable metadata if your retrieval layer supports it.
  • Store source_urls as source metadata and expose them to the agent for citation or support handoff.
  • Do not split a single knowledge record across multiple chunks unless your chunker preserves parent/child relationships.

On this page