The invention provides a software design method based on artificial intelligence, and relates to the field of software development, the software development method comprises the following steps: S1, receiving a to-be-developed function in a software development task through a voice or text input mode; S2, in a pre-built source code database, obtaining a source code corresponding to the to-be-developed function; S3, obtaining a function corresponding to the source code according to the operation result or the mark of the source code; And S4, constructing a source code database through the established corresponding relationship between the function and the source code. According to the method, the situation that the same function is repeatedly developed is avoided, and the method has the beneficial effects that on one hand, the software development time is saved, the software development efficiency is improved, and on the other hand, an artificial intelligence software development assistant is created, and the intelligent degree of software development is improved.