Is it possible ? Certain topics only?

Im building chat gpt in to a web app, im looking for a way to make chat gpt only answer questions regarding a certain topic. With out user promts telling it to.

For example if i was making an app to ask about ingredients for a cake!. I do not want the user to be able to ask it about other things ?

Thank you.