Updated on 2024-10-12 GMT+08:00

Scripts

To use the intention and script recommendation functions of the intelligent agent assistant, perform the following operations.

  1. Configure a domain. Choose Configuration Center > Chatbot Management > Semantic Understanding > Knowledge Management > Domain Management and click Create to create a domain.
  2. Add an intention. Choose Knowledge Management > Intention Management and create intentions and scripts as intentions.

    For example, in the intention of a loss report, the script may be "your ID card number" or "your mobile number". Therefore, create three intentions at a time.

    1. Click Create to create a general intention. On the Basic Info tab page, set Name to the name of a script or intention displayed on the GUI.

    2. Click the Corpus tab. Corpus indicates the keywords for recognition. Click Create to create a corpus. For example, set the corpus for the loss report to Loss Report.
    3. Click the Response tab to set an intention command. The intent command must be unique. Click Create to create a response.

    4. After configuring the Loss Report, Your Mobile Number, and Your ID Card Number intentions, click Train to train the robot.

  3. Configure a resource template.

    1. Choose Resource > Resource Template and click New to add a resource template. Set Type to TTS. Enable Configure Intention Template.
    2. Click Add Top Node and set the configured Loss Report intention to the top node.
    3. Click Add on the right of the Loss Report intention, set the Your Mobile Number intention to the lower-level node, and save the settings.
    4. Set the Your ID Card Number intention to the lower-level node in a similar way and save the settings.

  4. Configure a greeting. Greetings are preconfigured in the baseline flow. To customize greetings, modify GreetingWord in the resource template. For details about how to set other TTS texts to greetings, see Greeting Resource Templates. To match a greeting, create an intention on the Intention Management page. It is recommended that the name and keyword of the intention be the same as those of the greeting. The intention command must be set to GreetingWord.

    For details about how to add an intention, see 2.