Enable users to generate a shareable link for an individual message.
generateShareLink(message)
function that calls your backend and returns a URL. The SDK handles the modal UI, copying, and confirmation.
Frontend: Add a Share button to the response footer
ResponseFooter.ShareButton
.C1Chat
:message
object and opens a modal for link generation and copying.Backend: Implement the message share endpoint
threadId
and messageId
./lib/messageStore.ts
) and modify it to persist message history across API routes and requests as follows:Test it out!