Skip to main content

Support & Diagnostics Pipeline

The support pipeline is intentionally lightweight but diagnostic-rich. A report carries the user's words, the exact app version/device, the account/vehicle context, recent scans, and the last recorded user actions. It never carries passwords, payment secrets, or unconsented diagnostics.

App flow​

  1. User opens Settings > Support (or the website support page).
  2. Chooses a category and writes the issue (10-4000 characters).
  3. Reviews the diagnostic bundle: app/build, platform, theme, account/plan, active vehicle, recent scans, and up to 45 recent actions.
  4. Can disable account details and can share the bundle instead of submitting.
  5. Explicitly consents before submission. The API receives consent: true only after the checkbox is accepted.

App entry points:

  • lib/ui/screens/support/support_screen.dart
  • lib/services/support_service.dart
  • lib/services/support_event_log.dart
  • assets/config/support_config.json

The event log is bounded (80 entries) and sanitized before persistence. Global Flutter/async errors are captured into the same log. Sensitive key names (password, token, secret, authorization, otp, card, cvv, pin, key) and common value patterns are redacted on the device. The server applies redaction again as defence in depth.

API​

Public submission:

POST /v1/support/tickets
Content-Type: application/json

{
"category": "scan_issue",
"description": "...",
"consent": true,
"source": "android_app",
"diagnostics": {"schema": "fabrika_support_v1", "...": "..."}
}

Admin endpoints use X-Support-Token (FABRIKA_SUPPORT_TOKEN):

  • GET /v1/admin/support/tickets?status=&category=&q=
  • GET /v1/admin/support/tickets/{id-or-reference}
  • POST /v1/admin/support/tickets/{id}/reply with message and status
  • GET /v1/admin/support.csv
  • GET /support support console

Statuses: open, in_progress, waiting_user, resolved, closed. A reply is stored and emailed to the ticket email when SMTP is configured. The audit fields are visible in the console.

Privacy rules​

  • Do not request or accept passwords, OTPs, card data, API keys, or session tokens.
  • Account details are optional and shown to the user before submission.
  • VIN is masked to the last four characters in diagnostics.
  • Diagnostic bundles are for support triage, not automatic model training.
  • The support service is pilot-grade and needs HTTPS, real IAM, backups, and retention policy before public scale.

Configuration​

fabrika_ai_app/assets/config/support_config.json:

{
"enabled": true,
"baseUrl": "http://127.0.0.1:8800",
"supportEmail": "support@fabrika.ai",
"privacyVersion": "2026-11"
}

landing/assets/portal-config.js controls the website's portal/support API base. Replace localhost with the deployed HTTPS origin and rebuild the app when changing the app asset. If the server is unavailable, the app/website offers a copy/share fallback.