BackgroundThe identification of chemical–target interaction is key to pharmaceutical research and development, but the unclear materials basis and complex mechanisms of traditional medicine (TM) make it difficult, especially for low-content chemicals which are hard to test in experiments. In this research, we aim to apply the node2vec algorithm in the context of drug-herb interactions for expanding potential targets and taking advantage of molecular docking and experiments for verification.MethodsRegarding the widely reported risks between cardiovascular drugs and herbs,Salvia miltiorrhiza(Danshen, DS) andLigusticum chuanxiong(Chuanxiong, CX), which are widely used in the treatment of cardiovascular disease (CVD), and approved drugs for CVD form the new dataset as an example. Three data groups DS-drug, CX-drug, and DS-CX-drug were applied to serve as the context of drug-herb interactions for link prediction. Three types of datasets were set under three groups, containing information from chemical-target connection (CTC), chemical-chemical connection (CCC) and protein–protein interaction (PPI) in increasing steps. Five algorithms, including node2vec, were applied as comparisons. Molecular docking and pharmacological experiments were used for verification.ResultsNode2vec represented the best performance with average AUROC and AP values of 0.91 on the datasets “CTC, CCC, PPI”. Targets of 32 herbal chemicals were identified within 43 predicted edges of herbal chemicals and drug targets. Among them, 11 potential chemical-drug target interactions showed better binding affinity by molecular docking. Further pharmacological experiments indicated caffeic acid increased the thermal stability of the protein GGT1 and ligustilide and low-content chemical neocryptotanshinone induced mRNA change of FGF2 and MTNR1A, respectively.ConclusionsThe analytical framework and methods established in the study provide an important reference for researchers in discovering herb–drug interactions, alerting clinical risks, and understanding complex mechanisms of TM.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13020-023-00763-3.