How can I restrict an AI Agent to answer only questions related to my forum?

Although prompts can influence an agent’s behavior, they aren’t always reliable. I was able to trick the agent at ask.discourse.com into answering a few off-topic questions.