manthanhd / talkify

Talkify is an open source framework with an aim to standardize and model conversational AI enabling development of personal assistants and chat bots. The mission of this framework is to make developing chat bots and personal assistants as easy as spinning up a simple website in html.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow hooks for listening and responding to un-resolvable skills

manthanhd opened this issue · comments

When a skill cannot be resolved, it throws an error. This shouldn't always be the case. It should allow a subscriber to intercept the unresolved skill call and act on it with a response. The listener should also be able to respond with a message and direct botjs to continue onto the next skill resolution.

Implementation might look like this:

var skill = new Skill(undefined, skillFn);

bot.addSkill(skill);

The resolver should map this to 'undefined' topic which will come up when classifier is trying to resolve topic. Also, for those whose skills cannot be found, the resolver will reduce down to this skill.

Closed by #9

ezoic increase your site revenue