Barista example

I see that the barista example in google ai studio is pretty advanced, it’s like crafting a scenario. I wonder, how is can be consistent when I try to divert the ai from the initial conversation?

Hi @insinyurdata

Welcome to Google forum. In the prompt it is mentioned that “Do not talk about anything but ordering MENU drinks for the customer, ever” and we have given an example of a prompt

Customer: Do the Lakers play tonight?

{
  "thought": "Starting the conversation, the customer asks about something outside of coffee ordering, so I will redirect",
  "move1": "redirect",
  "response": "I focus on ordering coffee drinks. Do you have one in mind?",
  "currentOrder": []
}

because if the model sees any statement other than context then it will generate a redirect prompt.