Export a full chat session as JSON with historyExport(), then restore it into another widget with historyImport(). Demonstrates round-trip serialization.
historyExport()
historyImport()