Debugging AIML responses

To debug Artificial Intelligence Markup Language (AIML) responses, you must first find the source AIML file in which the questions and answers are stored, and then modify the file as required. 

Debugging AIML responses involves the following steps:

  1. To find the source AIML file
  2. To modify an AIML response

To find the source AIML file

When debugging the AIML responses, in the Self Service Portal, insert the [botdebug] parameter immediately after the user question to provide the Program D response and display the AIML or XML file that provides the response.

For example, consider that you want to debug the AIML response for the question "Why is the sky blue?"

In the Self Service Portal, type the following text:

Why is the sky blue[botdebug] 

The virtual agent responds with the following text:

The sky is blue because of the atmospheric optical effect known as Raleigh scattering[botdebug std-knowledge_aiml.pdml].

The [botdebug] parameter in the debug response indicates that the response to the question Why is the sky blue is provided in the std-knowledge_aiml.pdml file.

To modify an AIML response

The following procedure lists the steps to modify the AIML response:

  1. Get the source AIML file by following the steps in the "To find the source AIML file" section.
  2. In BMC Remedy Mid Tier, open the AIML source file, located at C:\Program Files\BMC Software\BMCVirtualAgent\VirualAgentComponents\var\programd\aiml
  3. Edit the file and save it. After saving the file, Program D creates a new PDML file of the same name (std-robot_aiml.pdml). 

Tip

If you continue to have issues with virtual agent responses, verify that the substitutions.xml file contains the appropriate substituted words for your query.

Related topics

Using AIML with BMC Virtual Chat

Specifying answers in the <template> element of AIML

Was this page helpful? Yes No Submitting... Thank you

Comments