Artificial intelligence (AI) has unparalleled potential to unlock useful information from real-world data to innovate trial design. Here, we discuss how AI can be used to optimize clinical trial design and potentially boost the success rate of clinical trials.