Driving in interactive dynamic traffic is a huge challenge for autonomous vehicles, especially for motion planning. The autonomous vehicle not only needs to predict the future states of the social vehicles to avoid a collision but also realizes the comfort and continuous plan. To deal with the problem, a spatio‐temporal decision‐making and motion planning framework with flexible constraints based on previous work is proposed. Improvements can be highlighted in three aspects. First, a neural network for trajectory prediction is trained and it is integrated into the framework, which can learn the social vehicles' reactions in the negotiation better and give more accurate predictions. Second, instead of setting the fixed local targets, the flexible‐constraint mechanism is introduced to increase the success rate of continuous planning, specifically, the local planning target is determined conditioned on the situation with an elastic factor. Third, two popular simulators with randomly disposed traffic participants are exploited, where vehicles are mutually influenced, more similar to real‐world traffic. The closed‐loop tests with zero crashes and the comparative experiments with traditional models demonstrate the superior performance and practical significance of the proposed framework.