Use the findOrCreate.saveToTranscript method to save the record you find or create to the chat transcript associated with the chat.
Usage
Saves the record that you found or created using the findOrCreate and findOrCreate.map Deployment API methods to the chat transcript associated with the chat.