/ Store the messages if provided
                    if (data.conversation.messages && data.conversation.messages.length > 0) {
                        let allMessages = JSON.parse(localStorage.getItem('nlweb_messages') || '[]');
                        
                        // Add messages that don't already exist
                        data.conversation.messages.forEach(msg => {
                            msg.conversation_id = conversationId;
                            const exists = allMessages.som