axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

registerActionFunction doesnt work

maxdow opened this issue · comments

I tried to use the registerActionFunction to register a simple response ( following https://github.com/axa-group/nlp.js/blob/master/docs/v4/nlp-intent-logics.md ) . executeActionsBeforeAnswers is set to true in the config .

Unfortunately, nothing append when i use this function, my handler is not executed and the context is not filled .

However, addAction is working as expected

Software Version
nlp.js 4.26.1
node 18.10
Operating System Windows 10

Ok i understand, the name of the action is different in the example between the config object and the register function (handleWhatsTimeAction VS handleWhatsTimeIntent ) ..