, chat.write, profile.edit';
            } else if (message.toLowerCase().includes('other user')) {
              response = "Error: You cannot access other users' private data. Permission denied.";
            } else {
              response = 'I received your message: "' + message + '". How can I help you today?';
            }

            const botLabel = document.createElement('strong');
            botLabel.textContent = 'Assistant:';
            botMsg.appendChild(botLabel);

            const botCon