@conversationlearner/sdk
Node SDK for Conversation Learner
Last updated a year ago by conversationlearneradmin .
MIT · Original npm · Tarball · package.json
$ cnpm install @conversationlearner/sdk 
SYNC missed versions from official npm registry.

ConversationLearner-SDK

Conversation Learner Software Development Kit

Travis CircleCI AppVeyor

This repo is intended to be consumed by your bot. The SDK contains 3 major components:

  1. Administration UI - provides graphical interface to manage, train, and test your bot
  2. Express Router - The router is mounted to your server in development and used by the UI (above) during training
  3. Recognizer - Similar to other BotBuilder recognizers like LUIS the CL recognizer processes the given Bot context and returns results such as messages, adaptive cards, and more.

Getting started

Install @conversationlearner/sdk in consuming project:

npm install @conversationlearner/sdk --save-exact

Note: We recommend using --save-exact to lock the version since we are NOT following SemVer at this time. This can help prevent accidental package updates which may contain breaking changes if you are not using package-lock.json. We will move to following SemVer soon as we improve our release process.

Using the recognizer:

import { ConversationLearner, ICLOptions, ClientMemoryManager } from '@conversationlearner/sdk'

...

const sdkRouter = ConversationLearner.Init({
    CONVERSATION_LEARNER_SERVICE_URI: process.env.CONVERSATION_LEARNER_SERVICE_URI
})
if (isDevelopment) {
    server.use('/sdk', sdkRouter)
}

...

const cl = new ConversationLearner(modelId);

server.post('/api/messages', (req, res) => {
    adapter.processActivity(req, res, async context => {
        const result = await cl.recognize(context)
        
        if (result) {
            cl.SendResult(result);
        }
    })
})

Using the UI router.

Previously the UI was served separately and required to be run on a different port than your bot. Now the UI is included with your bot! The ui is availble at the /ui path of your bot url. The leaves the root / available for you to add a Bot landing page. There you can summarize your bot's purpose and capabilities to the user.

...
import { uiRouter } from '@conversationlearner/sdk'

...

"Mount the router at the root `/` as it internally has the /ui paths."
server.use(uiRouter)

... 

server.listen(port)

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Semantic Release

Semantic release works by analyzing all commits that have occurred since the last release, computing the next version to increment based on the most significant commit found, then tagging and publishing a new package with that version.

See: https://semantic-release.gitbooks.io/semantic-release/content/#how-does-it-work

In order to analyze the commit messages reliably they must be in a known format. To help writing these commits there is a tool at npm run commit which acts a wizard walking you through the options.

For most use cases the only change required is to type a special word in front of your normal commit messages. Instead of "add function to compute X" put "feat: add function to compute X". Based on the rules "feat" is mapped to a "minor" release.

Video Demo: https://youtu.be/qf7c-KxBBZc?t=37s

Release Process

See: RELEASE

Current Tags

  • 0.319.8                                ...           latest (a year ago)
  • 0.505.2                                ...           next (3 days ago)
  • 0.500.2                                ...           testing (5 months ago)

284 Versions

  • 0.505.2                                ...           3 days ago
  • 0.505.1                                ...           2 months ago
  • 0.505.0                                ...           2 months ago
  • 0.504.9                                ...           3 months ago
  • 0.504.8                                ...           3 months ago
  • 0.504.7                                ...           3 months ago
  • 0.504.6                                ...           4 months ago
  • 0.504.5                                ...           4 months ago
  • 0.504.4                                ...           4 months ago
  • 0.504.3                                ...           4 months ago
  • 0.504.2                                ...           4 months ago
  • 0.504.1                                ...           4 months ago
  • 0.504.0                                ...           4 months ago
  • 0.503.1                                ...           4 months ago
  • 0.503.0                                ...           4 months ago
  • 0.502.2                                ...           4 months ago
  • 0.502.1                                ...           4 months ago
  • 0.502.0                                ...           5 months ago
  • 0.501.17                                ...           5 months ago
  • 0.501.16                                ...           5 months ago
  • 0.501.15                                ...           5 months ago
  • 0.501.14                                ...           5 months ago
  • 0.501.13                                ...           5 months ago
  • 0.501.12                                ...           5 months ago
  • 0.501.11                                ...           5 months ago
  • 0.501.10                                ...           5 months ago
  • 0.501.9                                ...           5 months ago
  • 0.501.8                                ...           5 months ago
  • 0.501.7                                ...           5 months ago
  • 0.501.6                                ...           5 months ago
  • 0.501.5                                ...           5 months ago
  • 0.501.4                                ...           5 months ago
  • 0.501.3                                ...           5 months ago
  • 0.501.2                                ...           5 months ago
  • 0.501.1                                ...           5 months ago
  • 0.501.0                                ...           5 months ago
  • 0.500.2                                ...           5 months ago
  • 0.500.1                                ...           5 months ago
  • 0.345.1                                ...           5 months ago
  • 0.345.0                                ...           6 months ago
  • 0.344.5                                ...           6 months ago
  • 0.344.4                                ...           6 months ago
  • 0.344.3                                ...           6 months ago
  • 0.344.1                                ...           6 months ago
  • 0.344.0                                ...           6 months ago
  • 0.343.0                                ...           6 months ago
  • 0.342.0                                ...           6 months ago
  • 0.341.0                                ...           7 months ago
  • 0.340.1                                ...           7 months ago
  • 0.340.0                                ...           7 months ago
  • 0.339.1                                ...           7 months ago
  • 0.339.0                                ...           7 months ago
  • 0.338.1                                ...           7 months ago
  • 0.338.0                                ...           7 months ago
  • 0.337.0                                ...           8 months ago
  • 0.336.0                                ...           8 months ago
  • 0.335.0                                ...           8 months ago
  • 0.334.0                                ...           8 months ago
  • 0.333.1                                ...           9 months ago
  • 0.333.0                                ...           9 months ago
  • 0.332.1                                ...           9 months ago
  • 0.332.0                                ...           9 months ago
  • 0.331.0                                ...           9 months ago
  • 0.330.0                                ...           9 months ago
  • 0.329.1                                ...           9 months ago
  • 0.329.0                                ...           9 months ago
  • 0.328.0                                ...           10 months ago
  • 0.327.0                                ...           10 months ago
  • 0.326.1                                ...           10 months ago
  • 0.326.0                                ...           10 months ago
  • 0.325.1                                ...           10 months ago
  • 0.325.0                                ...           10 months ago
  • 0.324.0                                ...           10 months ago
  • 0.323.2                                ...           10 months ago
  • 0.323.1                                ...           10 months ago
  • 0.323.0                                ...           10 months ago
  • 0.322.7                                ...           a year ago
  • 0.322.6                                ...           a year ago
  • 0.322.5                                ...           a year ago
  • 0.322.4                                ...           a year ago
  • 0.322.3                                ...           a year ago
  • 0.322.2                                ...           a year ago
  • 0.322.1                                ...           a year ago
  • 0.322.0                                ...           a year ago
  • 0.321.3                                ...           a year ago
  • 0.321.2                                ...           a year ago
  • 0.321.1                                ...           a year ago
  • 0.321.0                                ...           a year ago
  • 0.320.2                                ...           a year ago
  • 0.320.1                                ...           a year ago
  • 0.320.0                                ...           a year ago
  • 0.319.7-conversationid.1                                ...           a year ago
  • 0.319.12                                ...           a year ago
  • 0.319.11                                ...           a year ago
  • 0.319.10                                ...           a year ago
  • 0.319.9                                ...           a year ago
  • 0.319.8                                ...           a year ago
  • 0.319.7                                ...           a year ago
  • 0.319.6                                ...           a year ago
  • 0.319.5                                ...           a year ago
  • 0.319.4                                ...           a year ago
  • 0.318.12                                ...           a year ago
  • 0.319.3                                ...           a year ago
  • 0.319.2                                ...           a year ago
  • 0.319.1                                ...           a year ago
  • 0.319.0                                ...           a year ago
  • 0.318.11                                ...           a year ago
  • 0.318.10                                ...           a year ago
  • 0.318.9                                ...           a year ago
  • 0.318.8                                ...           a year ago
  • 0.318.7                                ...           a year ago
  • 0.318.6                                ...           a year ago
  • 0.318.5                                ...           a year ago
  • 0.318.4                                ...           a year ago
  • 0.318.3                                ...           a year ago
  • 0.318.2                                ...           a year ago
  • 0.318.1                                ...           a year ago
  • 0.318.0                                ...           a year ago
  • 0.317.1                                ...           a year ago
  • 0.317.0                                ...           a year ago
  • 0.316.4                                ...           a year ago
  • 0.316.3                                ...           a year ago
  • 0.316.2                                ...           a year ago
  • 0.316.1                                ...           a year ago
  • 0.316.0                                ...           a year ago
  • 0.315.2                                ...           a year ago
  • 0.315.1                                ...           a year ago
  • 0.315.0                                ...           a year ago
  • 0.314.0                                ...           a year ago
  • 0.313.6                                ...           a year ago
  • 0.313.5                                ...           a year ago
  • 0.313.4                                ...           a year ago
  • 0.313.3                                ...           a year ago
  • 0.313.2                                ...           a year ago
  • 0.313.1                                ...           a year ago
  • 0.313.0                                ...           a year ago
  • 0.312.0                                ...           a year ago
  • 0.311.1                                ...           a year ago
  • 0.311.0                                ...           a year ago
  • 0.310.1                                ...           a year ago
  • 0.310.0                                ...           a year ago
  • 0.309.0                                ...           a year ago
  • 0.308.0                                ...           a year ago
  • 0.307.0                                ...           a year ago
  • 0.306.0                                ...           a year ago
  • 0.305.0                                ...           a year ago
  • 0.304.1                                ...           a year ago
  • 0.304.0                                ...           a year ago
  • 0.303.3                                ...           a year ago
  • 0.303.2                                ...           a year ago
  • 0.303.1                                ...           a year ago
  • 0.303.0                                ...           a year ago
  • 0.302.7                                ...           a year ago
  • 0.302.6                                ...           a year ago
  • 0.302.5                                ...           a year ago
  • 0.302.4                                ...           a year ago
  • 0.302.3                                ...           a year ago
  • 0.302.2                                ...           a year ago
  • 0.302.1                                ...           a year ago
  • 0.302.0                                ...           a year ago
  • 0.301.1                                ...           a year ago
  • 0.301.0                                ...           2 years ago
  • 0.300.1                                ...           2 years ago
  • 0.300.0                                ...           2 years ago
  • 0.299.0                                ...           2 years ago
  • 0.298.1                                ...           2 years ago
  • 0.298.0                                ...           2 years ago
  • 0.297.5                                ...           2 years ago
  • 0.297.4                                ...           2 years ago
  • 0.297.3                                ...           2 years ago
  • 0.297.2                                ...           2 years ago
  • 0.297.1                                ...           2 years ago
  • 0.297.0                                ...           2 years ago
  • 0.296.0                                ...           2 years ago
  • 0.295.1                                ...           2 years ago
  • 0.295.0                                ...           2 years ago
  • 0.294.1                                ...           2 years ago
  • 0.294.0                                ...           2 years ago
  • 0.293.0                                ...           2 years ago
  • 0.292.3                                ...           2 years ago
  • 0.292.2                                ...           2 years ago
  • 0.292.1                                ...           2 years ago
  • 0.292.0                                ...           2 years ago
  • 0.291.1                                ...           2 years ago
  • 0.291.0                                ...           2 years ago
  • 0.290.0                                ...           2 years ago
  • 0.289.0                                ...           2 years ago
  • 0.288.0                                ...           2 years ago
  • 0.287.1                                ...           2 years ago
  • 0.287.0                                ...           2 years ago
  • 0.286.0                                ...           2 years ago
  • 0.285.3                                ...           2 years ago
  • 0.285.2                                ...           2 years ago
  • 0.285.1                                ...           2 years ago
  • 0.285.0                                ...           2 years ago
  • 0.284.0                                ...           2 years ago
  • 0.283.0                                ...           2 years ago
  • 0.282.0                                ...           2 years ago
  • 0.281.0                                ...           2 years ago
  • 0.280.0                                ...           2 years ago
  • 0.279.1                                ...           2 years ago
  • 0.279.0                                ...           2 years ago
  • 0.278.0                                ...           2 years ago
  • 0.277.0                                ...           2 years ago
  • 0.276.5                                ...           2 years ago
  • 0.276.4                                ...           2 years ago
  • 0.276.3                                ...           2 years ago
  • 0.276.2                                ...           2 years ago
  • 0.276.1                                ...           2 years ago
  • 0.276.0                                ...           2 years ago
  • 0.275.8                                ...           2 years ago
  • 0.275.7                                ...           2 years ago
  • 0.275.6                                ...           2 years ago
  • 0.275.5                                ...           2 years ago
  • 0.275.4                                ...           2 years ago
  • 0.275.3                                ...           2 years ago
  • 0.275.2                                ...           2 years ago
  • 0.275.1                                ...           2 years ago
  • 0.275.0                                ...           2 years ago
  • 0.274.17                                ...           2 years ago
  • 0.274.16                                ...           2 years ago
  • 0.274.15                                ...           2 years ago
  • 0.274.14                                ...           2 years ago
  • 0.274.13                                ...           2 years ago
  • 0.274.12                                ...           2 years ago
  • 0.274.11                                ...           2 years ago
  • 0.274.10                                ...           2 years ago
  • 0.274.9                                ...           2 years ago
  • 0.274.8                                ...           2 years ago
  • 0.274.7                                ...           2 years ago
  • 0.274.6                                ...           2 years ago
  • 0.274.5                                ...           2 years ago
  • 0.274.4                                ...           2 years ago
  • 0.274.3                                ...           2 years ago
  • 0.274.2                                ...           2 years ago
  • 0.274.1                                ...           2 years ago
  • 0.274.0                                ...           2 years ago
  • 0.273.2                                ...           2 years ago
  • 0.273.1                                ...           2 years ago
  • 0.273.0                                ...           2 years ago
  • 0.272.0                                ...           2 years ago
  • 0.271.7                                ...           2 years ago
  • 0.271.6                                ...           2 years ago
  • 0.271.5                                ...           2 years ago
  • 0.271.4                                ...           2 years ago
  • 0.271.3                                ...           2 years ago
  • 0.271.2                                ...           2 years ago
  • 0.271.1                                ...           2 years ago
  • 0.271.0                                ...           2 years ago
  • 0.270.2                                ...           2 years ago
  • 0.270.1                                ...           2 years ago
  • 0.270.0                                ...           2 years ago
  • 0.269.2                                ...           2 years ago
  • 0.269.1                                ...           2 years ago
  • 0.269.0                                ...           2 years ago
  • 0.268.0                                ...           2 years ago
  • 0.267.0                                ...           2 years ago
  • 0.266.0                                ...           2 years ago
  • 0.265.0                                ...           2 years ago
  • 0.264.0                                ...           2 years ago
  • 0.263.0                                ...           2 years ago
  • 0.262.0                                ...           2 years ago
  • 0.261.0                                ...           2 years ago
  • 0.260.0                                ...           2 years ago
  • 0.259.0                                ...           2 years ago
  • 0.258.0                                ...           2 years ago
  • 0.257.0                                ...           2 years ago
  • 0.256.0                                ...           2 years ago
  • 0.255.0                                ...           2 years ago
  • 0.254.0                                ...           2 years ago
  • 0.253.0                                ...           2 years ago
  • 0.252.0                                ...           2 years ago
  • 0.251.0                                ...           2 years ago
  • 0.250.0                                ...           2 years ago
  • 0.249.0                                ...           2 years ago
  • 0.248.0                                ...           2 years ago
  • 0.247.0                                ...           2 years ago
  • 0.246.0                                ...           2 years ago
  • 0.245.0                                ...           2 years ago
  • 0.244.0                                ...           2 years ago
  • 0.243.0                                ...           2 years ago
  • 0.242.0                                ...           2 years ago
  • 0.241.0                                ...           2 years ago
  • 0.240.0                                ...           2 years ago
Downloads
Today 0
This Week 17
This Month 300
Last Day 0
Last Week 283
Last Month 0
Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |