There are a couple of useful tricks to make your chatbot the smartest bot in class. JennyBot can remember what states the customer has visited and also choose a reply randomly from a few options.
Adding memory to your chatbot
Remember triggers? There's a few handy features there to apply context to your bot. Has visited state / Has not visited state / Came from state have all their purposeful use cases. Triggers can be added from the state editor.
Has visited state
The name perfectly describes this rule. If the customer has not been to the state you choose, the score will be returned as 0 and customer will receive another state as a response. More on the math of necessary conditions here.
Has not visited state
The naming department of Jenny is excellent! If the customer has not visited the state you choose, this state can be returned. And vice versa.
Came from state
What's the difference between came from state and has visited state you might ask. Well, when using came from state, the state you choose must be the PREVIOUS state the customer was in. Has visited state -rule is more lenient as it counts if the customer has been to the chosen state at any point in the conversation.
'Random' responses from chatbot
You know when there are times when you could write four different bot replies and they're all equally good? Instead of choosing just one reply, you can have your bot choose the reply for you! When writing up the bot reply, just separate your replies with a |-symbol in between the replies. This way your bot will randomly pick one of the replies to use in the conversation. This will also ensure that if your customer is getting stuck in a loop, they won't get the same response every single time.