How to validate email address in rasa form?

How can I validate email?

Follow this documentation to validate your slot, and inside the validation method use some python package like this one to validate the email.

You can use duckling to extract entities like date, phone number, email. There’s a tutorial by Rasa team you can find here:

Thanks, had the same question

HI All,

Simply use regex feature of rasa to validate email otherwise you can use email validation action file by creating a slot for email.

for example:

intent: email

regex: email

  • ^\w+([.-]?\w+)@\w+([.-]?\w+)(.\w{2,3})+$