This documentation supports the 20.08 version of Live Chat. To view an earlier version, select the version from the Product version menu.

Creating and exporting an AIML file


After you have modified the configuration files, you can create or edit an existing Artificial Intelligence Markup Language (AIML) file and then export it to the BMC Virtual Chat server.

The following sections give steps to create and export an AIML file by using Gaitobot AIML editor:

To create an AIML file in Gaitobot

The following procedure give steps to create an AIML file in Gaitobot AIML editor:

  1. Download and install the Gaitobot AIML editor. For more information, see Recommended-AIML-tools.
  2. Start Gaitobot.
  3. Click Create New Workspace.
  4. Type a name for your workspace and click OK.
  5. Perform either of the following tasks:
    • To create a new file, click the New File icon (plus sign).
    • To open an existing file, click the Folder icon and browse to the file.
  6. To add a new category, click Add New Category.
    A blank category appears in the graphic view tab.
  7. Type your question and answer responses in the <pattern> and <template> elements.
  8. Continue to add and delete categories.
  9. To add <srai>, <random>, and <li> elements, click the appropriate button in the Insert element area on the right side of the window.
  10. Test your code by using the Test Bot feature of Gaitobot.
    1. In the bottom left corner of the window, click Test Bot.
    2. In the say box, type your question (your question should match what you have defined in your AIML file).
    3. Click say or press Enter.
      The appropriate response appears in the Test Bot pane.
  11. Optionally, click the AIML source code tab to view the AIML code.
  12. Click Save.

Tip

You can also use other XML editors, such as XML Notepad. The user interface is different, but the element names are the same.

To export an AIML file from Gaitobot

After you have saved the AIML, you must export it to the BMC Virtual Chat server.

The following procedure give the steps to export an AIML file from Gaitobot AIML editor:

  1. In the Gaitobot window, click Export.
  2. In the Export Directory box, type the name of the export directory. This directory should be the C:\Program Files\BMC Software\BMCVirtualAgent\VirualAgentComponents\var\programd\aiml folder on the BMC Mid Tier server.
  3. Click Start Export.

    Note

    If you cannot export directly to the BMC Virtual Chat server, export the AIML file to any location and then copy the exported file to the C:\Program Files\BMC Software\BMCVirtualAgent\VirualAgentComponents\var\programd\aiml folder on the BMC Mid Tier server.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*