Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ the job before browser installation. CI installs Chromium Headless Shell and Web

## Customer support integration

`fern/support-widget.js` loads the SaaS SDK from `https://cs.6mm.com/widget/widget.js` using the 6MM tenant's public `data-app-key`. This is a public tenant identifier, not a signing secret. If the key changes, update the loader and its assertion in `scripts/check-widget-sync.mjs` together.
`fern/support-widget.js` loads the SaaS SDK from `https://widget.chatvow.com/widget/widget.js` using the 6MM tenant's public `data-app-key`. This is a public tenant identifier, not a signing secret. If the key changes, update the loader and its assertion in `scripts/check-widget-sync.mjs` together.

The tenant's website allowlist must include `https://docs.6mm.com` and, when used, the fixed Fern host `https://6mm.docs.buildwithfern.com`. Other preview domains are not implicitly allowed.

Expand Down Expand Up @@ -246,6 +246,6 @@ missing translations. The full `npm run check` validates all 20 locales.

## AI customer support tenant guide

The `customer-support` section contains 18 tenant-facing pages covering the console, knowledge-grounded AI replies, multilingual translation, website integration, billing, and MCP authorization and tool calls. The homepage and Solutions overview provide entry cards. The live service addresses are `https://csadmin.6mm.com/` and `https://csadmin.6mm.com/api/v1/mcp`.
The `customer-support` section contains 18 tenant-facing pages covering the console, knowledge-grounded AI replies, multilingual translation, website integration, billing, and MCP authorization and tool calls. The homepage and Solutions overview provide entry cards. The console is at `https://admin.chatvow.com/admin/`. It supplies `https://admin.chatvow.com/api/v1/mcp?profile=workflow` for MCP clients.

English and Simplified Chinese are authored together; the other 18 documentation locales use the existing machine-assisted translation workflow and structural checks. API identifiers and JSON examples remain unchanged. Machine translation is not a substitute for native-language editorial review. See `docs/customer-support-content-review.md` for the verification boundary.
2 changes: 1 addition & 1 deletion fern/asset-source/support/01-state.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var WIDGET_SRC = 'https://cs.6mm.com/widget/widget.js';
var WIDGET_SRC = 'https://widget.chatvow.com/widget/widget.js';
// Public SaaS tenant identifier, not a signing secret.
var APP_KEY = 'app_-ofLSy2QTO0xAI4pkAiQ3Jch';
var locales = window.__sixmmDocsLocales || [];
Expand Down
5 changes: 2 additions & 3 deletions fern/asset-source/support/02-status-and-accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ function onSupportFrameMessage(event) {
if (!supportFrame || event.source !== supportFrame.contentWindow) return;
var origin;
try { origin = new URL(supportFrame.src).origin; } catch (_) { return; }
// This existing SDK message is emitted by the widget's React theme effect
// after its interface mounts. An iframe load event alone is not app ready.
if (event.origin !== origin || !event.data || event.data.type !== 'cs-widget-browser-theme') return;
if (event.origin !== origin || !event.data) return;
if (event.data.type !== 'cs-widget-ready' && event.data.type !== 'cs-widget-browser-theme') return;
supportFrameReady = true;
if (supportDeadline !== null) window.clearTimeout(supportDeadline);
supportDeadline = null;
Expand Down
2 changes: 2 additions & 0 deletions fern/asset-source/support/03-navigation-persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ function prepareWidgetSwap(event) {
document.querySelector('script[data-sixmm-support-widget="true"]'),
document.getElementById('cs-widget-overlay'),
document.getElementById('sixmm-support-launcher'),
document.getElementById('cs-widget-greeting'),
document.getElementById('cs-widget-image-preview'),
];
retainedWidgetNodes = [];
nodes.forEach(function (node, index) {
Expand Down
2 changes: 1 addition & 1 deletion fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ navigation:
layout:
- section: "Get Started"
contents:
- page: "6MM AI Customer Support"
- page: "AI Customer Support"
path: docs/pages/customer-support/overview.mdx
icon: fa-duotone fa-headset
- page: "Quick Start"
Expand Down
4 changes: 2 additions & 2 deletions fern/docs/pages/customer-support/ai-replies.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Replies and Bot Configuration"
description: "AI Replies and Bot Configuration — Use System Settings → Intelligent Services for service switches and Bot Configuration for reply behavior. Menu availability and enabled capabilities depend on your tenant configuration "
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/ai-replies
canonical-url: https://docs.6mm.com/customer-support/ai-replies
---
Expand Down Expand Up @@ -29,7 +29,7 @@ The reply pipeline first handles special intents, then evaluates enabled matchin

Write articles with a clear question, applicable audience, prerequisites, steps, exceptions and escalation path. Keep fees, limits and timestamps explicit. Remove conflicting outdated rules. Provide related facts together, especially deposit networks, transfer conditions and account verification requirements.

Ask a documented question, a follow-up and an ambiguous question in the visitor chat. Check whether the answer preserves your actual rules and asks for clarification when information is insufficient. Do not place passwords, signing secrets or internal operational instructions in customer-facing knowledge.
Save a withdrawal question and a follow-up in the AI test library. Run the same cases before and after a rule change and compare the replies. Check the final result in the visitor chat.

<span data-sixmm-canonical-anchor="diagnose-a-weak-reply" aria-hidden="true"></span>

Expand Down
4 changes: 2 additions & 2 deletions fern/docs/pages/customer-support/analytics.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Statistics"
description: "Statistics — Turn conversation, ticket and knowledge activity into questions your team can act on. Start with a defined reporting period, then investigate the records behind a change in the numbers."
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/analytics
canonical-url: https://docs.6mm.com/customer-support/analytics
---
Expand All @@ -21,7 +21,7 @@ Turn conversation, ticket and knowledge activity into questions your team can ac

## Understand support activity

Open **Statistics** and choose the relevant time range and available filters. Review real-time overview, conversations, tickets, satisfaction, messages, agents, feedback and knowledge statistics.
Open Statistics for the real-time overview. For a weekly exchange support review, use the message, human and bot reports to compare demand, then check ticket status, satisfaction, feedback and knowledge usage for the same dates.

Use several metrics together. Conversation volume shows demand, ticket status shows follow-up work, and ratings provide feedback on individual experiences. A high knowledge view count alone does not prove an issue was resolved.

Expand Down
8 changes: 4 additions & 4 deletions fern/docs/pages/customer-support/billing.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Usage and Billing"
description: "Usage and Billing — Use the balance overview for a quick check, usage records to investigate calls, and the ledger to understand balance changes. Read the unit and service type before comparing amounts."
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/billing
canonical-url: https://docs.6mm.com/customer-support/billing
---
Expand All @@ -21,9 +21,9 @@ Use the balance overview for a quick check, usage records to investigate calls,

## Review intelligent-service usage

Open **Usage and Billing** to inspect the balance, available service prices, usage records and balance movements. AI replies, translation and vector operations may consume the shared intelligent-service balance according to the tenant's configured services.
Use Usage and Billing to check service prices, usage, balance movements and orders. Open an order to review its payment records and download its PDF statement.

The support response path matters: a stored answer and a large-model request are not the same type of usage. Model and price availability can change; use the current console rather than fixed amounts in this guide.
Eligible workspace owners can top up the AI service balance when online payments are enabled. Workspaces bound to an exchange merchant cannot change their subscription plan themselves.

<span data-sixmm-canonical-anchor="understand-settlement" aria-hidden="true"></span>

Expand All @@ -37,7 +37,7 @@ A reservation is not an additional second charge. Compare the final charge, orig

## MCP and costs

MCP does not introduce a separate billing rule, but tools that invoke platform AI, translation or vector services can incur their normal costs. An external AI provider may charge independently for its own service. Billing tools can read balances, usage, transactions and prices; they cannot recharge balances or edit bills.
MCP billing tools can read usage, balance, prices, orders and payment records and retrieve PDF statements. Eligible members can preview a plan change. These tools do not charge a card or top up the balance. AI and translation calls can still incur usage charges.


<span data-sixmm-canonical-anchor="use-the-right-billing-view" aria-hidden="true"></span>
Expand Down
10 changes: 5 additions & 5 deletions fern/docs/pages/customer-support/history.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Conversation History"
description: "Conversation History — Use conversation history to recover context, review service quality and investigate a specific consultation. Start with a conversation number or a narrow time range instead of browsing every record."
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/history
canonical-url: https://docs.6mm.com/customer-support/history
---
Expand All @@ -23,15 +23,15 @@ Use conversation history to recover context, review service quality and investig

Open **Conversation History**. Use the available user/session search, conversation type, rating, agent, category, language and time filters. Open the details to read the messages and session information.

The user-email list column prefers the contact email and otherwise uses the visitor email. The detail view retains both fields so agents can distinguish their sources. An empty value means that field was not collected; it does not prove a customer has no email account.
The list displays the visitor’s available contact methods. Open a conversation to see the email supplied at entry separately from contact details collected during support.

<span data-sixmm-canonical-anchor="review-service-quality" aria-hidden="true"></span>

## Review service quality

Use the conversation, agent and rating together to understand the case. A reply shown as an AI message may come from a configured answer or matching stage rather than a large-model call. Compare the content with the current knowledge and use a flow test when investigating reply behavior.

Deletion is available only with the relevant permissions. Read the confirmation before deleting one or multiple records. MCP history queries use the authorized scope, and deletion requires confirmation; do not assume full tenant history is available to every agent.
Single and batch deletion require the relevant permissions. Check the selected records before deleting. MCP checks access in the selected workspace and applies the connection’s approval settings.


<span data-sixmm-canonical-anchor="read-the-fields-without-mixing-identities" aria-hidden="true"></span>
Expand All @@ -43,7 +43,7 @@ Deletion is available only with the relevant permissions. Read the confirmation
| Conversation number | Identifies the consultation you are reviewing. Use it to avoid confusing separate sessions. |
| Visitor name | A readable display label, not proof of a verified exchange account. |
| Entry type and user ID | Help distinguish anonymous access from an integrated login identity. Missing identity data should not be guessed. |
| User email | Uses the contact email first, then the visitor email; details keep the two sources separate. |
| Contact methods | Visitor entry email and collected contact details are shown separately in the conversation details. |
| Language and IP location | Useful context for support, not proof of the user's identity or exact physical location. |
| Rating | Feedback that exists for that session. No rating is not the same as a negative rating. |

Expand All @@ -63,7 +63,7 @@ Deletion is available only with the relevant permissions. Read the confirmation
<AccordionGroup>

<Accordion title="Why is the email blank?">
The session may not have collected a contact email or received an email from the entry integration. Review both fields in details before concluding the data is missing unexpectedly.
Open the conversation details and check both the entry email and the contact methods. The visitor may have provided another way to reach them.
</Accordion>

<Accordion title="Why does changing the date filter change the results?">
Expand Down
17 changes: 12 additions & 5 deletions fern/docs/pages/customer-support/integration.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Website and App Integration"
description: "Website and App Integration — Open System Settings → Website Integration. Configure the allowed website domains and copy the generated code. The App Key identifies your tenant; it is not a login password or identity-sign"
subtitle: "6MM AI Customer Support · Tenant guide"
description: "Add the customer support widget to your website with the tenant App Key. Connect an existing support button, sync language and theme, and verify signed-in visitor identities."
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/integration
canonical-url: https://docs.6mm.com/customer-support/integration
---
Expand All @@ -15,19 +15,26 @@ Open **System Settings → Website Integration**. Configure the allowed website
The following illustrates the supported script attributes. Replace the placeholder with your tenant's App Key and use the script URL generated by your console.

```html
<script src="https://cs.6mm.com/widget/widget.js"
<script src="https://widget.chatvow.com/widget/widget.js"
data-app-key="YOUR_TENANT_APP_KEY"></script>
```

For an existing button:

```html
<button id="support-button">Contact support</button>
<script src="https://cs.6mm.com/widget/widget.js"
<script src="https://widget.chatvow.com/widget/widget.js"
data-app-key="YOUR_TENANT_APP_KEY"
data-trigger="#support-button"></script>
```

Choose one of the two examples and load the script once per page. If you host the script yourself, set `data-server="https://widget.chatvow.com"`. In production, use HTTPS and allow the script and iframe origins in your CSP. If the widget fails to open, check the App Key and allowed origin. For signed-in visitors, also check the token expiry.

| Setting | Script attribute | After the widget loads | Change event |
| --- | --- | --- | --- |
| Language | `data-lang` | `CSWidget.setLang('en')` | `cs-widget-lang-change` |
| Theme | `data-theme` | `CSWidget.setTheme('dark')` | `cs-widget-theme-change` |

<span data-sixmm-canonical-anchor="visitor-identity" aria-hidden="true"></span>

## Visitor identity
Expand All @@ -45,4 +52,4 @@ For an App or WebView, use the entry and integration mode provided for your tena

## Verify the entry

Check allowed domains, language, light/dark theme, opening and closing, a test message, human support and ticket submission. When switching website users, verify the identity passed to the widget belongs to the current user. If the widget does not open, inspect the App Key, script loading, domain settings and tenant service availability.
When the signed-in user changes, obtain a fresh signed token from your backend and call `CSWidget.setIdentityToken(token, userId)`. Open the widget again and verify the visitor identity, language and theme.
4 changes: 2 additions & 2 deletions fern/docs/pages/customer-support/knowledge.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Knowledge and Content Management"
description: "Knowledge and Content Management — Open Content Management. Knowledge categories organize articles; the other content types provide concise answers, navigation and service entry points."
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/knowledge
canonical-url: https://docs.6mm.com/customer-support/knowledge
---
Expand All @@ -27,7 +27,7 @@ Open **Content Management**. Knowledge categories organize articles; the other c
1. Create or select the appropriate category. Complete required fields, including the category when creating an article.
2. Write the title and body, including scope, conditions, steps and exceptions. Use actual business rules rather than assumed exchange behavior.
3. Save and review the draft. Publish when ready for users; unpublish outdated material when appropriate.
4. Maintain translations and check retrieval/index status after changes. Test the question in the bot flow and visitor chat.
4. If an edit introduces an incorrect rule, review the article’s saved versions and restore the appropriate version. Check translations and test retrieval after the change.

For example, a withdrawal guide should explain which network the user must choose, where they obtain the address, any applicable business restrictions and how to contact support. Do not invent processing times or fees.

Expand Down
4 changes: 2 additions & 2 deletions fern/docs/pages/customer-support/logs.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Operation Logs"
description: "Operation Logs — Use operation logs to answer who changed what and when. Combine the action, target and source with the business record instead of reading the log description in isolation."
subtitle: "6MM AI Customer Support · Tenant guide"
subtitle: "AI Customer Support · Tenant guide"
slug: customer-support/logs
canonical-url: https://docs.6mm.com/customer-support/logs
---
Expand All @@ -21,7 +21,7 @@ Use operation logs to answer who changed what and when. Combine the action, targ

## Trace an operation

Open **Operation Logs**. Filter by keyword, category, action, actor type, target type and date using the available controls. Read the details to identify who acted, which record changed and the result.
In Operation Logs, filter by date, action, target or a specific operator. Open the details to check the result. Export the filtered records when handing an investigation to another shift.

MCP operations are shown with their application/source and execution status. Depending on the operation, a business change and its MCP execution record can both appear; two audit entries do not by themselves mean the action was executed twice.

Expand Down
Loading