GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - humley/Cognitive-Assistant-JavaScript-SDK: Javascript SDK for Humley's Cognitive Assistant

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
cognitive-assistant
cognitive-assistant
 
 
libs
libs
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
package.json
package.json
 
 
typings.json
typings.json
 
 

Repository files navigation

Cognitive Assistant JavaScript SDK

This SDK requires a Account with Humley account. Please contact Humley [email protected]

Installation:

Bower:

bower install Humley-Cognitive-Assistant-JavaScript-SDK --save

Latest File:

cognitive-assistant/h-assistant.js

Example:

allowfeedback is defaulted to true. This will allow you to get feedback after each question is reecived..

var humleyBot = new humleyConversationBot(
	{
		username:'username',
		password: 'password',
		productId: 12
	},
	allowfeedback
);

Methods

async humleyBot.init(interface:Init) : boolean

Init: Use to start session. If return false then an error has occurred

async humleyBot.talk(string) : interface:ConversationResult

Talk is the core method to receive the reply from your Cognitive Assistant

async humleyBot.sendCheckPoint(checkpointId:number, variableName:string, value:string) :null

Send checkpoint to track activivty.

Check Point Id

Open in Browser 6001. This checkpoint should be fired when a user presses an action which has an action type of browser.

Client Error - 8064

async humleyBot.sendFeedback(typeId) :null

If "allowedfeedback" is set to true, you can send feedback on the last answer received.

##Interfaces##

interface:Init:

 interface init {
 params: Object; // information about the user
 uuid: number; // - optional humley uuid for user set by imei 
 cv: string; // - optional
 mx: string; // - optional
 imei: string; // unquic ID to user
 udid: string; // - optional
 noid: string; // - optional
 imsi: string; // - optional
 simid: string; // - optional
}

interface:ConversationResult:

interface ConversationResult {
    question: string;
    error: boolean;
    replies: ConversationResultReplies[];
    errorInfo: any;
}

interface:ConversationResultReplies

interface ConversationResultReplies {
    replyId: number;
    actionType: string;
    actionURL: string;
    category: string;
    buttonId: number;
    confidence: number;
    reply: string;
    hasVideo: boolean;
    video: ConversationResultRepliesVideo;
}

interface:ConversationResultRepliesVideo

interface ConversationResultRepliesVideo {
    header: string;
    url: string;
}

Feedback type ID:

3 = yes
2 = sort of
0 = No

About

Javascript SDK for Humley's Cognitive Assistant

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.