Regex keyword hyperlink
  • 08 Jun 2022
  • 3 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Regex keyword hyperlink

  • Dark
    Light
  • PDF

Article summary

In this article we're going to look at the Regex keyword hyperlink block.

Use this to instantly detect a set keyword and hyperlink/instantly jump the user to another part of your bot to start an interaction in that branch (pipeline) of your bot.

You may be wondering what the difference is between the "Reroute conversation", "Keyword Hyperlink" and a "Regex keyword hyperlink" blocks. Take a look at the table below to explain the differences:

BLOCKDESCRIPTION
Reroute ConversationTypically used to automatically redirect a conversation which has run it's course within a branch in your bot.
Keyword HyperlinkUsed to call a specific keyword from ANYWHERE in a bot to instantly jump the user to where this keyword block appears irrespective of what activity the user is currently engaged with within your bot.
Regex keyword hyperlinkA "Regex keyword hyperlink" works the same way as a "Keyword Hyperlink" with one important difference. It will look at the full content of a user input (ie. an entire sentence) and look for a keyword WITHIN that sentence and then instantly jump the user to where this keyword block appears irrespective of what activity the user is currently engaged with within your bot.

Let's dive in!


TYPICAL USES FOR THIS:

  • Instantly redirecting a user somewhere in your bot using a keyword rather than a "Reroute conversation" block.
  • Exit/cancel a current pipeline by directing the user back to the beginning.
  • Provide the user with access to help or an FAQ (as an example) by jumping them out of their current pipeline activity in the bot to a help or FAQ section within the bot. However, taking into account so-called Regex (Regular Expressions) - such as a sentence by picking out the keyword set from a regular expression (sentence).
  • Acting on specific instructions - example, a campaign may instruct a user to contact their bot, and then use a specific keyword for a particular promotion or similar which will jump the user directly to that interaction pipeline.

STEP 1: Add a new block.


STEP 2: Select the "Reroute Journey" category.


STEP 3: Select the "Regex keyword hyperlink" block.

The following window will appear:


Let's explore the elements of this page.

You have a few elements with which you can interact here such as:

  • Which keyword/s will jump the consumer to this block?
  • + (for another keyword)

Let's start with the "Which keyword/s will jump the consumer to this block?"

Simply enter the keyword you'd like to use - they are NOT case-sensitive so will work irrespective of whether they are all lowercase, CAPITALIZED or Sentence Case.

For the purpose of the example we are using, we want to add a keyword "help" to jump users to a dedicated help section within the bot.

Starting with the first keyword we want to add for "help".


+ (for another keyword):

If you'd like to cater for another keyword (for example, you perhaps want to anticipate alternate versions of what people might enter wanting access to a help section), you can include those also which will also trigger the same result. Directing the user instantly to the block.

Do this by clicking on the "+" icon:

You will now see an additional "Enter Keyword" block appear for you to enter another keyword which will be attached to this block.

If we were to put the German word for "help" in the second "Enter Keyword" slot (which would be "hilfe"), then we could accept both the English and German words for "help" to direct the user to the same place. Example:


STEP 4: Click on "Save" to save the the Regex keyword hyperlink block. At minimum, the following element(s) of this block must be completed:

  • Enter Keyword

Result:

Once saved, you will see your Regex keyword hyperlink block will appear in your bot editor window attached to the last block onto which you added it.

From here, you can then continue building your bot by adding additional blocks taking whatever avenue you prefer.

Done! You've successfully used the "Regex keyword hyperlink" block.


What's Next