Andrographis paniculata is a medicinal plant traditionally used to produce diterpene lactones and flavonoids, which possess various biological activities. Widely distributed in China, India, and other Southeast Asia countries, A. paniculata has become an important economic crop, significantly treating SARS-CoV-2, and is being cultivated on a large scale in southern China. The biosynthesis of active ingredients in A. paniculata are regulated and controlled by genes, but their specific roles are still not fully understood. To further explore the growth regulation factors and utilization of its medicinal parts of this industrial crop, chemical and transcriptome analyses were conducted on the roots, stems, and leaves of A. paniculata to identify the biosynthesis pathways and related candidate genes of the active ingredients. The chemical analysis revealed that the main components of A. paniculata were diterpene lactones and flavonoids, which displayed potential ability to treat SARS-CoV-2 through molecular docking. Moreover, the transcriptome sequencing annotated a total of 40,850 unigenes, including 7962 differentially expressed genes. Among these, 120 genes were involved in diterpene lactone biosynthesis and 60 genes were involved in flavonoid biosynthesis. The expression of diterpene lactone-related genes was the highest in leaves and the lowest in roots, consistent with our content determination results. It is speculated that these highly expressed genes in leaves may be involved in the biosynthesis pathway of diterpenes. Furthermore, two class Ⅰ terpene synthases in A. paniculata transcriptome were also annotated, providing reference for the downstream pathway of the diterpene lactone biosynthesis. With their excellent market value, our experiments will promote the study of the biosynthetic genes for active ingredients in A. paniculata and provide insights for subsequent in vitro biosynthesis.