Chordtrack live

Hi !
Does anyone know how to get a midi track to follow a chord on a chord track live?
As an example, I have a bass track with a bass pattern in C and I want the bass track to change to e.g. F when I take an F chord (F, A, C)
or G (G, H, D) etc. Although it detects if I take a major or minor chord.I use Cubase 10.5 Pro
Hope someone can help me I have searched online and read the manual but it does not work.
Or is there another solution?