A new use for a bot

Matt
2005-08-14
2013-04-25
  • Matt
    Matt
    2005-08-14

    First, I have to say that you guys did a great job on Program E.  There's a lot of detail there that I'm still trying to catch on to.

    I'm currently using Program E to create a bot that will teach the user about a topic using the Socratic Method.  To avoid the problems of natural language processing, I'll be using forms to allow the user to choose from a list of answers/questions.  It'll be some time before I understand the program enough to know if I have to modify it or not, though. 

    As the current experts of AIML and Program E, can you see any problems that I might have with my project?

     
    • Anne Kootstra
      Anne Kootstra
      2005-08-14

      From what you say I gather that at the core of the system lies the old multiple answer system. How you work this out on the user interface side really doesn't matter much. You could make the answers clickable or you could simply rely on your pupils to answer using single letters A-Z. In AIML it will pretty much be the same thing.

      Here is an example for a simple multiple question:

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <aiml version="1.0">

      <category>
          <pattern>CONNECT</pattern>
          <template>
              Do you want to learn?
          </template>
      </category>

      <category>
          <pattern>YES</pattern>
          <that>DO YOU WANT TO LEARN</that>
          <template>
              <think><set name="topic">QUESTION 1</set></think>
              <srai>QUESTION</srai>
          </template>
      </category>

      <category>
          <pattern>*</pattern>
          <that>DO YOU WANT TO LEARN</that>
          <template>
              Well, it's not a yes so I guess I can't help you.
          </template>
      </category>

      <category>
          <pattern>*</pattern>
          <template>
              This is the i-have-no-pattern-for-this-input-category.
          </template>
      </category>

      <topic name="QUESTION 1">
          <category>
              <pattern>QUESTION</pattern>
              <template>
                  Where is Brazil situated?<br/>
                  <ul>
                    <li>A: North America.</li>
                    <li>B: Africa.</li>
                    <li>C: Azia.</li>
                    <li>D: South America.</li>
                  </ul>
                  Please only use the letters for your answer.
              </template>
          </category>

          <category>
              <pattern>A</pattern>
              <that>* FOR YOUR ANSWER</that>
              <template>
                  This is not the right answer. Please try again
                  and only use the letters for your answer.
              </template>
          </category>

          <category>
              <pattern>B</pattern>
              <that>* FOR YOUR ANSWER</that>
              <template>
                  This is not the right answer. Please try again
                  and only use the letters for your answer.
              </template>
          </category>

          <category>
              <pattern>C</pattern>
              <that>* FOR YOUR ANSWER</that>
              <template>
                  This is not the right answer. Please try again
                  and only use the letters for your answer.
              </template>
          </category>

          <category>
              <pattern>D</pattern>
              <that>* FOR YOUR ANSWER</that>
              <template>
                  This is the correct answer.
              </template>
          </category>
         
          <category>
              <pattern>*</pattern>
              <template>
                  Please only use the letters, A, B, C or D for
                  your answer.
              </template>
          </category>
      </topic>
      </aiml>

      Anne Kootstra
      Founding Member AIML.info, Main developer Program E
      http://www.aiml.info       http://sourceforge.net/projects/programe

      e-mail & msn messenger:
      anne@aiml.info

       
    • Matt
      Matt
      2005-08-15

      That's similar to what I'm doing, but the questions will be more open ended with much more detailed answers.  The user will also have the ability to ask questions from a long list that they can choose from. 

      Other than that, I'm just wading through the code.  I've never used PHP nor MySQL before, so this is a major learning experience.

      I've also read though the AIML spec (1.0.1) and I have to say that I'm very impressed.  Keep up the good work.

      Thanks for the reply (and the amount of work you put into it).

      Matt