Use previous date in Date Entity

Hi

I’ve a date entity. When the user enters date as ‘Tuesday’, the bot is taking date as next Tuesday i.e., future date. how can we restrict this so that bot takes it as previous Tuesday?

Hi

Could you please help me on this?

Hello Santosh,

Welcome to the Kore Community :wave:

You can try to use the below entity extraction Rule in Instance properties.
Go to Date entity >> Instance Properties >> Entity Rules >> Apply the rule which was shown in the below image.


Please take a moment to discover more about it here: https://developer.kore.ai/docs/bots/how-tos/entity-rules/#Date_type_entity

Hope this information helps with your use case. Keep exploring Kore.ai features