Comments (6)
Hi Marc - Leopard is specifically built to talk to Teneo in that it calls Teneo endpoints and then parses its JSON responses. Now that's not to say it couldn't work for DialogFlow. It would just require some development effort to switch out the API calls to Teneo with ones to DialogFlow.
Look in the actions section of store.js for the areas where requests are made out to Teneo - specifically "login", "sendUserInput" and "logout" and work out from there. Currently all Teneo requests start with "Vue.jsonp(....."
If that's too much of task then you might want to check out Teneo Developers . Try sign up and you will get a developer sandbox for Teneo.
from leopard-chat-ui-teneo.
I have taken a look to the Vue.jsonp() calls and now it seems much more clearer. I think I can redo that to directly call to DialogFlow. If I am able to do it, would you like me to send a PR? Of course, I would try to keep it as optional as possible (config option, for example), without interfering with the Teneo common use.
from leopard-chat-ui-teneo.
Absolutely welcomed - If you get a working version it would be great to have a PR to the following branch https://github.com/jolzee/chat-teneo-vue/tree/dialogflow .
from leopard-chat-ui-teneo.
I have been working and have find a functional solution, but code is too much hardcoded to work with Teneo and it is hard to have a compatible solution for both options. I am going to try it but it seems to require a lot of job.
from leopard-chat-ui-teneo.
Agreed having both CAI platforms in a single codebase might be a bit overkill in that they function slightly differently in their capabilities. A fork or branch might be the way to go.
from leopard-chat-ui-teneo.
I thought you wanted it in a branch but with the objective of merging it. It is clear now.
from leopard-chat-ui-teneo.
Related Issues (7)
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 leopard-chat-ui-teneo.