Add translations field to conversation_part and ticket_part (Preview) - #621
Merged
Conversation
…_part
Model the new `translations` object on the Preview conversation_part and
ticket_part schemas. It is a map keyed by locale code: the special `original`
key holds the source locale code of the reply, and every other key is a locale
code whose value is the reply text translated into that locale, e.g.
{ "original": "en", "en": "Hello", "fr": "Bonjour" }.
This backs the new `conversation.admin.replied.translated` and
`ticket.admin.replied.translated` webhook topics. The existing `body` field is
unchanged and stays in the original source language. The field is Preview-only
(descriptions/0), so it is gated by the Preview API version.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cathalging
marked this pull request as ready for review
August 21, 2026 11:20
…ples Declares `original` as required on the conversation_part and ticket_part translations schemas, since it is always present in the payload. Also adds translations to the existing admin-authored comment/reply examples (retrieveConversation, updateConversationPart) so the new field is demonstrated in inline responses.
…plyTicket replyTicket only had note and quick_reply examples, neither a legitimate carrier of translations (note is internal-only, quick_reply here has no reply body text). Adds a customer-facing admin comment reply example, matching the ticket_reply schema's documented comment support.
Corrects every translations example (retrieveConversation, updateConversationPart, the new replyTicket comment example) and both schema-level example blocks to wrap translated text in the same HTML as body, per production payload shape. Also clarifies the schema description to state values are HTML matching body's format.
replyTicket's 200 response uses ticket_reply, not ticket_part, so the Admin reply example's translations field had no schema definition backing it. Adds the same translations property (required original, HTML values, ticket.admin.replied.translated topic) already present on conversation_part and ticket_part.
markdennis22
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
Admin reply parts can now be delivered in multiple locales, and the new
conversation.admin.replied.translatedandticket.admin.replied.translatedwebhook topics carry those translations. The Preview spec did not model that data, so integrators had no schema for it.How?
Adds a nullable
translationsmap (keyed by locale code, with anoriginalkey naming the source locale) to the Preview conversation part and ticket part schemas, leaving the existing reply text untouched.Notes for reviewers
The field is Preview-only, so it is added to
descriptions/0alone and not to any stable2.xversion. Example value:{ "original": "en", "en": "Hello", "fr": "Bonjour" }. A companion PR inintercom/developer-docssyncs the same schema addition into the developer-docs Preview mirror and adds a changelog entry.Generated with Claude Code