AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How I get predicates value to Java API
 
 

Hello guys,
I need to know how to catch predicates the AIML and send to my java code. I am using the code:

private Chat chatSession;

public 
AIMLAnswer(){
        
        BotMother bm 
= new BotMother();
        
Bot bot bm.getBot(); //method to initialize bot, load aiml files etc.
        
bot.brain.nodeStats();
        
chatSession = new Chat(bot);
  

And I use this code to get predicates value:

ChatSession.predicates.get ("predicate_name"

but its does not work

 

 
  [ # 1 ]

I can resolve this problem.

I forgot to add in the config file.

:p

 

 
  login or register to react