Skip to main content

The client sends an email

You can teach your bot how to speak with clients. To do it, show various clients’ reactions to the bot and explain how to respond to these reactions.

These clients’ reactions are included in the Intents block. Depending on the client’s intent, the bot directs the conversation to the appropriate script branch.

Moreover, you can often predict what the client will say. For example, the client can write their email. For this case, we have an Email built-in intent.

The Email built-in intent contains the following regular expression:

$regexp<[A-z0-9\.\-]+@\w+\.\w+>

The regular expression in the Email intent accepts the following sequence of characters:

  • Latin letters and numbers.
  • The @ character.
  • Latin letters and numbers.
  • Period.
  • Latin letters.

This helps the bot verify the email address format.

The bot will save the client’s email to the $EMAIL variable.