Assalamu 'Alaikum Is it permissible to build an AI automation system for a Halal restaurant but they occasionally host events such as birthday parties and also parties which have music? I will make sure that my AI will not book these events or answer any questions to customers regarding them

Ustadh AbdulAziz al-Haqqan
If your system serves only the permissible work of the restaurant and has nothing to do with the music events, not booking them and not answering about them, then it is permissible, in shā' Allah. Imam Ibn Baz said about work where halal and haram are mixed: if a person can confine himself to the halal and keep clear of the haram, he may work, and if he cannot work except by taking part in the haram, he must leave it.