Giter VIP home page Giter VIP logo

Comments (6)

miki2826 avatar miki2826 commented on August 17, 2024

Hi @dcsan - thanks!,
I don't think it is necessary to implement something that botkit already did.
I provide a more low level sdk that you can use to create your own higher level sdk or use as is.
That being said, if I'll see demand for it, I will consider it :)

from botly.

dcsan avatar dcsan commented on August 17, 2024

yea, could be right. well maybe some example integration with a api.ai or other "conversation system" or NLP tools could be helpful...

are you just coding your bots using raw regexes? managing conversation state is quite a pain...

from botly.

miki2826 avatar miki2826 commented on August 17, 2024

I integrate today with WIT.ai. But I use it for NLP only.
I do manage the conversation state myself - it is a small pain but it is consistent and I have full control over it.

I will add some integration examples soon, thanks.

from botly.

dcsan avatar dcsan commented on August 17, 2024

yes control is good ;)

I had some problems when in the middle of a bot kit conversation, and a menu event comes in from somewhere - ie not a conversation event. it's hard to exit the conversation. ms bot framework seems a bit more flexible for changing state to jump across trees, not just out of the loop.

from botly.

chiransudha avatar chiransudha commented on August 17, 2024

@miki2826 Hi Miki 2826 can you please post integration to wi.ai example. I am trying to integrate to wit.ai but kinda new to this.
Thank you.

from botly.

miki2826 avatar miki2826 commented on August 17, 2024

Hi @chiransudha ,

There are few ways to use WIT API.

  • The message API (for entity extraction)
const botly = new Botly({
    accessToken: "FACEBOOK_ACCESS_TOKEN"
    verifyToken: 'VERIFICATION_TOKEN'
});
const client = new Wit({accessToken: 'MY_TOKEN'});
botly.on('message', (sender, message, data) => {
   client.message(data.text, {})
   .then((data) => {
      console.log('Yay, got Wit.ai response: ' + JSON.stringify(data));
   })
   .catch(console.error);
});

With botly you can save the whole wiring with express and just call wit.runActions on message.
Also, replace the send action implementation with your own using botly.sendText for example

from botly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.