docs(js-sdk): document card message support (ENG-36071)#420
Open
aanshisingh-cometchat wants to merge 2 commits into
Open
docs(js-sdk): document card message support (ENG-36071)#420aanshisingh-cometchat wants to merge 2 commits into
aanshisingh-cometchat wants to merge 2 commits into
Conversation
Add a dedicated JavaScript SDK "Card Messages" page covering the three receive-only card mechanisms: standalone CardMessage (onCardMessageReceived), inline cards on AIAssistantMessage via getElements()/AIAssistantElement, and real-time card streaming events (card_start/card/card_end) on the AIAssistantListener. - Add sdk/javascript/card-messages.mdx with TS + JS receive/render examples - Add reference entries for CardMessage, AIAssistantElement, the elements accessor on AIAssistantMessage, and the three card events (messages.mdx) - Add onCardMessageReceived + card-events note to all-real-time-listeners.mdx - Add the card category to message-structure-and-hierarchy.mdx - Cross-link card handling from ai-agents.mdx - Register the new page in the Messaging nav group (docs.json) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…verability Align the JS SDK card-message docs with the parallel React Native card docs after cross-referencing that branch: - Explain cards are authored server-side via the Platform (REST) API or Dashboard Bubble Builder (receive-only), with a link to the REST reference - Point to the CometChat Cards renderer (@cometchat/cards-react → CometChatCardView) and Campaigns "Rendering Cards" / "Supported Card Actions"; adopt the shared "Card Schema JSON" terminology - Document getTags() on CardMessage (page + reference) - Add a receive-only "Card Message" section to send-message.mdx so devs looking to send a card learn it must be created server-side - Note that a card-only assistant reply may have empty getText(), so prefer getElements() Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Add a dedicated JavaScript SDK "Card Messages" page covering the three receive-only card mechanisms: standalone CardMessage (onCardMessageReceived), inline cards on AIAssistantMessage via getElements()/AIAssistantElement, and real-time card streaming events (card_start/card/card_end) on the AIAssistantListener.
Description
Related Issue(s)
Type of Change
Checklist
Additional Information
Screenshots (if applicable)