Giter VIP home page Giter VIP logo

bot-dialogflow's Introduction

bot-api.ai

A BotUI app connected to API.AI.

Update : This repo was made at the time when Dialogflow was known as API.AI. You will have to use Dialogflow APIs V1 in the console to make it work, that said. this repo is no longer maintained by the creators.

FEEL FREE TO MAKE PULL REQUESTS
How to Use?

You can simply chose to Build it yourself from scratch using this Tutorial.

OR...

Follow these steps below

  1. Go to API.AI and get a key!
  2. Clone the Repo, git clone https://github.com/sushantshekhar20/bot-api.ai.git
  3. cd bot_api.ai
  4. Place your Key in config/api.js
  5. npm install
  6. node bin/www
  7. Open Browser , go to "localhost:3000"

Edit the Chat Flow from public/javascripts/convo.js

UI Design by BotUI. NLP Used API.AI.

bot-dialogflow's People

Contributors

inidaname avatar kellygilliam avatar richardimms avatar sheksushant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bot-dialogflow's Issues

Issue while executing the chatbotui tutorials

Following this link:
https://chatbotslife.com/custom-api-ai-chatbot-using-botui-58d673155c7d

Issues are:

  1. There are many js files which are created in separate folders but where does that folders exist or does this folder need to be created manually?

  2. why does express module after following the instruction not able recognize the command
    express --view=ejs my_cool_bot view is not executed getting this error
    C:\Users\shrinidhi_ha\Documents\chatbotui>express --view=ejs my_cool_bot view
    'express' is not recognized as an internal or external command,

    operable program or batch file.

  3. why node bin/www throw this error
    module.js:545
    throw err;
    ^

Error: Cannot find module 'C:\Users\shrinidhi_ha\Documents\chatbotui\bin\www'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:666:3
4. Go to public/javascripts and create a new file and name it convo.js what does this mean? where should we look out for public/javascripts folder?

directory structure in C Drive Documents of my system
image
please help me out in resolving the issue as i am a new comer to botui development. I am from a background java, javascript development but unable to trace out this issue.
enclosing the js files and package.json file created for chatbotui program.

chatbotui.zip

Cannot find module 'serve-favicon'

running on centOS 7

[root@ai bot-dialogflow-master]# node bin/www
module.js:549
throw err;
^

Error: Cannot find module 'serve-favicon'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/primtek/bot-dialogflow-master/bot-dialogflow-master/app.js:3:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
[root@ai bot-dialogflow-master]#

proxy bypass

i am not able to run the project due to the proxy.please help me how to put proxy in www

How to use only for javascript and Html?

Hi,
I want to use fr java script and html , for my cutomized bot and in javascript 'require' is not defined and showing Reference error. So is there any solution for it?

SessionID with Dialogflow

All installation is good and I can communicate successfully with Dialogflow. However, I notice that it is under 1 single dialog regardless of the browser that I would use. This can be quite a security issue since multiple users are speaking using a single session ID. What should be the modification so that the ID can be assigned to different users (e.g. different browser, ip address) or different session once browser is closed?

Why is bin/www throwing an error

running bin/www is throwing an error even though I followed the exact steps mentioned

C:\Users........\bot-api.ai>node bin/www
module.js:549
throw err;
^

Error: Cannot find module 'serve-favicon'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (C:\Users......\bot-api.ai\app.js:3:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

Unable to deploy to Heroku

Hi,

I've tried to deploy to heroku but it isn't working. I am getting this polling error below in the console and do not know how to change the 8010 to a port that works.

polling-xhr.js:264 GET http://localhost:8010/socket.io/?EIO=3&transport=polling&t=MIEd4F3 0 ()

I tried replacing all the 8010 ports to be the same as the one heroku has assigned in the www file process.env.PORT but it gives a different error saying that the port is already in use. Please let me know what I need to change in both client and server code for it to be deployed to heroku.

I really appreciate your time and help!

Fix suggested in sock.js

Hi Shushant,

I believe a fix may be needed in sock.js: on line 20 we have:

api.getRes('hello').then(function(res){

I could only get the bot to show me correct responses from APIAI when I changed this line to:

api.getRes(data.client).then(function(res){

Also, I don't know why, but when I get the first correct response in the browser, I don't see a prompt/field to enter the next questions. I played with the code in convo.js but could not make it work.

Thanks again,
Andrei

when I run node bin/www, nothing happens

Hi Sushant,

Thanks very much for your tutorial/article on Chatbotslife and the project. I have:

  • cloned the repo
  • run npm install
  • modified the api.js file (and verified that I get results from my api.ai agent)

when I run node bin/www, nothing happens - nothing appears in the CMD screen or anywhere else

I think I am missing something both important and simple; please let me know what that might be.

Thanks,
Andrei Link

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.