The idea of nation-state and eventually the way of public law is changing in various ways with new technology such as artificial intelligence (AI). Utilization of artificial intelligence is rapidly spreading to various media used by ordinary consumers and home environment that have IoT devices. At the same time, administration and the judiciary section are also starting to try to utilize AI technology and, in some cases, decision-making process is expected to be replaced by AI. Such progress in artificial intelligence technology may change the traditional public law framework to a regulatory framework based on AI-based architecture. Based on the progress of AI technology and its utilization, this paper analyzes the time of change with arising (or expected) risks when AI cannot solve the problem or misuse the data and so on, and confirms the importance of public law, its functions to form a framework to prepare measures to divert such risks over the long term.