Regular expression variable
    • PDF

    Regular expression variable

    • PDF

    Article Summary

    Available in Classic and VPC

    When entering questions using regular expression syntax or creating patterned entities, it will come in handy if you define and use frequently used patterns as regular expression variables. Changes are only reflected to the chatbot service when the build or changed settings are applied after creating, modifying, or deleting regular expressions variables. For details about the regular expressions syntax rules, refer to Regular expressions.

    Regular expression types

    • Domain variable: Variable that can only be used in a specific domain
    • System variable: Variable that is registered as built-in and can be shared and used by all Korean domains

    Create domain variable

    The following shows how to create a domain variable.

    1. From the NAVER Cloud Platform console, click the Services > CLOVA Chatbot > Domain menus, in that order.
    2. Click the [Run builder] button of the domain you want to run the chatbot builder.
    3. From the chatbot builder, click Regular expression variable > [Domain variable] tab.
    4. Click the [Create variable] button.
    5. Enter the name of the domain variable and click the [Check for duplicates] button.
    6. Define the domain variable using regular expressions in the variable definition field, and click the [Add] button.
      • Only dictionary entities and system variables can be entered in a domain variable.
    7. Click the [Save] button.


    chatbot-chatbot-3-3_01_en

    Use system variable

    System variables are Korean ending conjugated variables registered in the system by default. They can be used when creating pattern entities or questions.

    Note

    The system entities being referenced in a task or regular expression question can't be deactivated.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.