Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

added intent validator, intent post processor, context handler and de… #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manojkumar1412
Copy link

…faultEars

  1. Context Handler - A context handler interface to get the context object and send it to wit,
    It has a function with below signature
    function getContext(bot, message); - return context object
  2. defaultEars - If wit fails to give any intent then this may help to do some processing over wit,
    may be a regex based botkit defaultEars can be used to do regex matching if wit fails
  3. validateIntent - a Validate Intent interface to validate the intent from wit,
    it requires to do some validation over it.
    function validateIntent(entities) - return true if valid else false
  4. postProcessIntent - a post process intent interface to do some post processing over wit intent
    function postProcessIntent(entities) - return entities after post processing

…faultEars

1. Context Handler - A context handler interface to get the context object and send it to wit,
It has a function with below signature
function getContext(bot, message); - return context object
2.  defaultEars - If wit fails to give any intent then this may help to do some processing over wit,
may be a regex based botkit defaultEars can be used to do regex matching if wit fails
3.  validateIntent - a Validate Intent interface to validate the intent from wit,
it requires to do some validation over it.
function validateIntent(entities) - return true if valid else false
4.  postProcessIntent - a post process intent interface to do some post processing over wit intent
function postProcessIntent(entities) - return entities after post processing
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants