Switch Google docs Template by sheets cell value

Hi! Need help for this automation: if in Google sheet cell value is „a“ use google docs Template A. If cell value is „b“ than use docs Template B.
is that possible? Thanks for supporting me.