Giter Site home page Giter Site logo

salesforce / violet-conversations Goto Github PK

View Code? Open in Web Editor NEW
85.0 16.0 22.0 2.18 MB

Sophisticated Conversational Applications/Bots

Home Page: http://HelloViolet.ai/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 93.52% HTML 6.48%

violet-conversations's Issues

Alexa Launch: _processIntent Not Defined

There is a bug when launching from an Alexa device.

ReferenceError: _processIntent is not defined
2018-02-16T15:21:54.848332+00:00 app[web.1]: at alexa.app.launchFunc (/app/node_modules/violet/lib/violet.js:101:5)
2018-02-16T15:21:54.848334+00:00 app[web.1]: at /app/node_modules/alexa-app/index.js:575:41
2018-02-16T15:21:54.848336+00:00 app[web.1]: at tryCatcher (/app/node_modules/alexa-app/node_modules/bluebird/js/main/util.js:26:23)
2018-02-16T15:21:54.848354+00:00 app[web.1]: at Promise._settlePromiseFromHandler (/app/node_modules/alexa-app/node_modules/bluebird/js/main/promise.js:510:31)
2018-02-16T15:21:54.848357+00:00 app[web.1]: at Promise._settlePromiseAt (/app/node_modules/alexa-app/node_modules/bluebird/js/main/promise.js:584:18)
2018-02-16T15:21:54.848359+00:00 app[web.1]: at Promise._settlePromises (/app/node_modules/alexa-app/node_modules/bluebird/js/main/promise.js:700:14)
2018-02-16T15:21:54.848360+00:00 app[web.1]: at Async._drainQueue (/app/node_modules/alexa-app/node_modules/bluebird/js/main/async.js:123:16)
2018-02-16T15:21:54.848362+00:00 app[web.1]: at Async._drainQueues (/app/node_modules/alexa-app/node_modules/bluebird/js/main/async.js:133:10)
2018-02-16T15:21:54.848363+00:00 app[web.1]: at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules/alexa-app/node_modules/bluebird/js/main/async.js:15:14)
2018-02-16T15:21:54.848365+00:00 app[web.1]: at runCallback (timers.js:756:18)
2018-02-16T15:21:54.848367+00:00 app[web.1]: at tryOnImmediate (timers.js:717:5)
2018-02-16T15:21:54.848368+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:697:5)

Add support to customize the launch and close messages

Right now, there is a non-configurable launch and closing messages. For production use, we would need to be able to change those out.

Launch:
response.say(['Yes. How can I help?', 'Hey. Need me?', 'Yup. I am here.']);

Close:
violet.respondTo({name: 'closeSession', expecting: ["I am good", "No I am good", "Thanks", "Thank you"], resolve: (response) => { response.clearAllGoals(); response.endConversation(); }});

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.