AI Zone Admin Forum Add your forum
Virtual Recruiting Assisstant
 
 

hello!
i am presenting you with the rough draft of what i have to do in my project:
The idea of this chatbot is that it will act as an interviewer,ask the questions and grade the answers of the candidate the chatbot while taking the interview of the candidate will send live statistics to the concerned authorities if the authorities find the candidate eligible enough they may call him/her for the final interview.
Plus i also have to set a client server architecture means i will have the chatbot on the server and it will run on two client computers only.
As i haven’t worked on it before so i need suggestions from the people who know what I am talking about.I want to know my project’s feasibility as I have to complete it till start of October.
so far we have collected the data and are feeding it to the bot but along with creating the brain we have to do lots of other task.
right now me n one of my groupmate is focusing on these two things
1)how to maintain the count of correct answers
2)how to carry on the conversation of the bot if the candidate is idle for 5mins.

I am looking forward for your guidance.Thanx in advance smile

 

 
  [ # 1 ]

I think you have an enormous task ahead of you by attempting something like this unless the questions are based on one correct answer, like “What colour wire should the speloogle be?” and all the bot has to do is check for the answer. Questions like, “Why do you want to work for us?” or “What are your strong points?” will be very difficult for the bot to understand the answers to.

I assume the interviewee isn’t allowed to ask any questions of his own?

Judging by your previous posts, I assume you are you coding in AIML?
If so, point 1 can be solved like so. Make sure you set a variable like “score” to 0 at the start, then call a category like the one below when the user gives a correct answer:

<category
<
pattern>CORRECTANSWER</pattern>
<
template>
 <
condition name="score">
  <
li value="0"><set name="score">1</set></li>
  <
li value="1"><set name="score">2</set></li>
  <
li value="2"><set name="score">3</set></li>
  <
li value="3"><set name="score">4</set></li>
  <
li value="4"><set name="score">5</set></li>
  <
li value="5"><set name="score">6</set></li>
  <
li value="6"><set name="score">7</set></li>
  <
li value="7"><set name="score">8</set></li>
  <
li value="8"><set name="score">9</set></li>
  <
li value="9"><set name="score">10</set></li>
  <
li value="10"><set name="score">More than 10</set></li>
 </
condition>
</
template>
</
category

At the end of the interview the value of “score” will be the amount of correct answers given.

 

 
  [ # 2 ]

Yes, Steve, s/he’s using Program O, and I’m trying to assist with the monitoring of inactivity through the use of JavaScript (but you probably already know that. raspberry).

On a side note, shouldn’t there be a <THINK> tag in there, somewhere? Just wondering. smile

 

 
  [ # 3 ]
Dave Morton - May 28, 2012:

On a side note, shouldn’t there be a <THINK> tag in there, somewhere? Just wondering. smile

lol yes, quite right Dave. That’s what you get for writing categories on the fly. The category should be:

<category
<
pattern>CORRECTANSWER</pattern>
<
template>
<
think>
 <
condition name="score">
  <
li value="0"><set name="score">1</set></li>
  <
li value="1"><set name="score">2</set></li>
  <
li value="2"><set name="score">3</set></li>
  <
li value="3"><set name="score">4</set></li>
  <
li value="4"><set name="score">5</set></li>
  <
li value="5"><set name="score">6</set></li>
  <
li value="6"><set name="score">7</set></li>
  <
li value="7"><set name="score">8</set></li>
  <
li value="8"><set name="score">9</set></li>
  <
li value="9"><set name="score">10</set></li>
  <
li value="10"><set name="score">More than 10</set></li>
 </
condition>
</
think>
</
template>
</
category
 

 
  [ # 4 ]

hello m also part of this project smile Virtual recruiting assistant… i did sumthing like this but its not working.I included that pattern tag because i want the variable score to increment everytime when bot respond to the candidate “correct. Your next question is…......”
for that i added these two categories

<category>
<
pattern> * </pattern>
<
that>correct *</that>
<
template>
<
think>
<
condition name="score">
 <
li value="0"><set name="score">1</set></li>
 <
li value="1"><set name="score">2</set></li>
 <
li value="2"><set name="score">3</set></li>
 <
li value="3"><set name="score">4</set></li>
 <
li value="4"><set name="score">5</set></li>
 <
li value="5"><set name="score">6</set></li>
 <
li value="6"><set name="score">7</set></li>
 <
li value="7"><set name="score">8</set></li>
 <
li value="8"><set name="score">9</set></li>
 <
li value="9"><set name="score">10</set></li>
 <
li value="10"><set name="score">More than 10</set></li>
</
condition>
</
think>
</
template>
</
category


<
category>
<
patternWhat is my score </pattern>
<
template>
<
condition name="score">
<
li value="*"><get name="score"/></li>
<
li>You dont have any correct answer.</li>
</
condition>
</
template></category

 

 

 
  [ # 5 ]

That is because, “correct. Your next question is…” is two sentences.

You need something like this:

<category>
<
pattern>RED</pattern>
<
that>WHAT COLOUR IS A TOMATO</that>
<
template>
<
srai>CORRECTANSWER</srai>
Correcthere comes your next question.<br/><br/>
How many beans make 5?
</
template>
</
category

<
category>
<
pattern>5</pattern>
<
that>HOW MANY BEANS MAKE 5</that>
<
template>
<
srai>CORRECTANSWER</srai>
Correcthere comes your next question.<br/><br/>
....
</
template>
</
category
 

 
  [ # 6 ]

well that was really quick smile i am gonna try it and will let u know smile

 

 
  [ # 7 ]

by the way thanks Sir

 

 
  [ # 8 ]

No problem. If you still struggle with it, just post again and I will try to help.

 

 
  [ # 9 ]

its still not working :S….when i asked “what is my score?” after running this 1st category, bot response was “You don’t have any correct answer.” It means it didn’t get into <srai>CORRECTANSWER</srai> tag and the condition didn’t set “score” variable?? or there is any problem in my method of getting the value of “score” (i.e: 3rd category of this code)??

<category>
<
pattern>no</pattern>
<
that>Is it possible for two classes to inherit from each other *</that>
<
template><srai>CORRECTANSWER</srai>correct.here comes your next question.
<
random>
<
li>What are the 3 levels of data abstraction?</li>
<
li>What are the unary operations in Relational Algebra?</li>
<
li>What does Cin corresponds to?</li>
</
random>
</
template>
</
category>

<
category>
<
pattern>CORRECTANSWER</pattern>
<
template>
<
think>
<
condition name="score">
 <
li value="0"><set name="score">1</set></li>
 <
li value="1"><set name="score">2</set></li>
 <
li value="2"><set name="score">3</set></li>
 <
li value="3"><set name="score">4</set></li>
 <
li value="4"><set name="score">5</set></li>
 <
li value="5"><set name="score">6</set></li>
 <
li value="6"><set name="score">7</set></li>
 <
li value="7"><set name="score">8</set></li>
 <
li value="8"><set name="score">9</set></li>
 <
li value="9"><set name="score">10</set></li>
 <
li value="10"><set name="score">More than 10</set></li>
</
condition>
</
think>
</
template>
</
category>  

<
category>
<
pattern>What is my score</pattern>
<
template>
<
condition name="score">
<
li value="*"><get name="score"/></li>
<
li>You dont have any correct answer.</li>
</
condition>
</
template>
</
category
 

 
  [ # 10 ]

Are you remembering to set score to 0 before the test begins?

 

 
  [ # 11 ]

I just added these 3 categories in the database…:S
what else i need to do smile? actually i came across this “think” and “condition” tags yesterday as someone recommended me to see warning.aiml file that is used to detect how many times the bot is been insulted so i dont know if we need to do anything prior to it.

 

 
  [ # 12 ]

i also tried this to get the count of correct answers.
i added following lines in PROGRAM O’s index.php.

$ans=0;
$findme = “Correct”;
echo $res;    // $res contains bot’s response
if((stripos($res,$findme) === false ? 0 : 1))
    $ans++;
echo $ans;


result:

You: hello
Bot: Hello there. Are you Ready for interview?
You: yes
Bot: Is it possible for two classes to inherit from each other? (yes/no)
You: no
Bot: correct.here comes your next question. What are the unary operations in Relational Algebra?
You: hello
Bot: Hello are you prepared? Shall we proceed?
You: yes
Bot: What is a Concrete Object?
You: anything initaed with keyword new
Bot: correct. What does Cin corresponds to?
...........


*)the value of $ans must be 2 now but it still contains “1”..... its value changed from 0 to 1 when it first encountered “correct” in bot’s response.

 

 
  [ # 13 ]

I didn’t realise you were basing this on my warnings.aiml file.

In the category that says, “Hello there. Are you Ready for interview?”, you need to include this:

<think><set name="score">0</set></think

This will set the score to 0 so the other categories will work.

 

 
  [ # 14 ]

this is what i read

“<set name=“VALUE”> ...... </set>
Sets whatever is within the tags to the variable VALUE. “

and this is what i did… i set the score to “0” like this at the beginning.

<category>
<
pattern>Hello</pattern>
<
template>
<
set name="score">0</set>
Hi.So are you ready for interview?
</
template>
</
category

then i test again here is the result:


Bot: 0 Hi.So are you ready for interview?
You: yes
Bot: What is a Concrete Object?
You: anything initaed with keyword new
Bot: correct.what is the degree of relation?
You: in a relation number of attributes
Bot: correct.Is it possible for two classes to inherit from each other? (yes/no)
You: what is my score?
Bot: You don’t have any correct answer.

correct me if i am not correctly setting the value of score to zero

 

 
  [ # 15 ]

okayy

 

1 of 6
1
 
  login or register to react