ChatbotX icon indicating copy to clipboard operation
ChatbotX copied to clipboard

[Feature Request] Automatic bidirectional translation in the Inbox

Open SwordWu83 opened this issue 3 weeks ago • 1 comments

Have you checked for existing requests?

  • [x] I have searched the existing issues and found no similar request.

Feature Area

📊 Analytics

Is your feature request related to a problem? Please describe.

Problem Our agents speak Chinese, but customers write in English, Spanish, Arabic, etc. (WhatsApp, Slack, Telegram, webchat). Today the agent has to copy every incoming message into a translator, and manually translate every reply before sending. It is slow, error-prone, and breaks the conversation flow.

Describe the solution you'd like

Proposed solution Add built-in automatic bidirectional translation to the Inbox, per conversation:

Inbound (customer → agent): when a message arrives in a language different from the workspace language, auto-translate it and show the translation first, with the original text attached below. Detect the customer's language automatically and remember it for that conversation. Outbound (agent → customer): when the agent replies, auto-translate the reply into the customer's language before sending. If translation fails or no key is configured, send the original text — never block the message. Settings (per workspace): an on/off toggle (default on), the workspace language, and a translation provider setting (OpenAI-compatible API endpoint + key, DeepL, Google Translate, etc.). Translation should work even when AI takeover is off. Fidelity: preserve URLs, phone numbers and formatting exactly; never translate inside URLs. Alternatives considered We currently do this in an external bridge (translate on webhook ingress/egress). It works, but every ChatbotX user serving multilingual customers has to rebuild the same thing. Built-in support would make multilingual support work out of the box for every channel without extra infrastructure.

Additional notes

Store the language per contact/conversation (auto-detect on first inbound message, remember afterwards). Translation failure must fall back to the original text, never drop or delay a message. The agent should be able to see both the translation and the original, and turn translation off per conversation.

Describe alternatives you've considered

No response

Additional context

No response

SwordWu83 avatar Nov 12 '26 05:11 SwordWu83

Thanks for the detailed request! This has shipped in #1757 (merged 2026-11-21): two-way AI translation in the Inbox.

What's covered

  • Incoming customer messages are shown translated, with the original available under each message (or all at once via "Show original text").
  • Agent replies are translated into the customer's language before sending, with an optional preview before sending.
  • The customer's language is detected once per conversation and remembered (or set by the agent).
  • Translation can be turned on/off per conversation from the composer's "Translation settings".
  • URLs, emails, phone numbers, numbers and emoji are never sent to the model.
  • Works on all channels for direct text messages. It is also available in the public API, CLI and MCP.

Intentional differences from the request

  • Off by default. A workspace admin enables it in Settings → General → "Inbox translation", because customer chat text is sent to the workspace's own AI provider and billed to its key.
  • Provider. It uses an AI integration and model already connected to the workspace (LLM-based). DeepL and Google Translate are not supported.
  • Failure handling. If a translation fails or takes longer than 10 s, the message is not sent and the agent can send it again. We chose this so a customer never receives untranslated text by accident. If the AI provider itself fails, translation is turned off for that conversation and the agent is notified, so the next messages go out as written.
  • When incoming messages are translated. Translation happens when an agent opens the conversation or scrolls back, not in the background on receive.

Full details: docs/inbox-translation.md.

Closing as completed. If you need DeepL/Google Translate support or a "send original on failure" option, feel free to open a new issue for it.

realcodesiman avatar Nov 26 '26 02:11 realcodesiman