Comments (6)
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.
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.
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.
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.
@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.
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);
});
- The bot engine way
Take a look at the WIT facebook messenger example: https://github.com/wit-ai/node-wit/blob/master/examples/messenger.js
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)
- Is it possible to return promises from all the functions? HOT 1
- Advice for keeping the templates in different modules ? HOT 1
- X-Hub-Signature configuration missing HOT 1
- Hapi.js botly HOT 1
- Unexpected token u in JSON at position 0 HOT 2
- Botly Conversation HOT 2
- pass params through postback button HOT 1
- Unable to Run Example on heroku HOT 1
- How do we set sender actions? HOT 1
- message after postback.? HOT 2
- error: TypeError: Cannot read property 'forEach' of undefined HOT 1
- TypeError: Cannot read property 'forEach' of undefined HOT 4
- [Unsolved] How do I receive attachments? HOT 1
- createShareButton() not working
- Reply with multiple messages? HOT 4
- FB_URL hardcoded - can it be configurable for better testability? HOT 1
- Breaking Changes to the API: "messaging_type" Property Required HOT 1
- Request thread control
- Upgrade to latest FB Graph API version by July 2018 HOT 1
- Handle FB User Profile API changes to default profile fields HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botly.