OpenAI moderation for chatbot

Can anyone help me with how to use the open AI moderation in the chatbot system? In the course “Building Systems with the ChatGPT API” they just briefly introduce it but how to integrate it into the chat system to check the user request and then how to leverage the true flag for each category to filter the user request or response to such request is not available anywhere. This is a very important tool that I really need to know how to apply in my chatbot system. I am stuck at this point and if anyone has any experience and notebook code that would be greatly appreciated and helpful