QQ′qqqˉ pentaquarks are studied in a potential model, under the hypothesis that they are composite objects of two diquarks and one antiquark. The interaction between two colored objects includes two contributions, one based on the qqˉ potential in QCD, computed in the gauge/string duality approach, and another describing the spin-spin interaction. The model has been extended to investigate pentaquarks with different quark content, as Qqqqqˉ and QqqqQˉ, the latter including the states observed by LHCb, Pc(4380)+ and Pc(4450)+, later updated, with a new data sample, to Pc(4312)+, Pc(4440)+, and Pc(4457)+.