1.0.8 • Published 6 years ago

@xmachina/message v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

message

Factory function for the low latency messaging platform from Strategic Machines, helping to connect businesses to the conversational economy. This function simplifies the development of microservices, by providing a set of functions to deliver elegant and richly composed interactions between users and virtual agents

Incorporates state machines and pure functions

Background and Context

Strategic Machines is dedicated to helping businesses engage in the conversational economy. We recognize that creating apps which interact 'intelligently' with trading partners and employees is a challenge on a number of fronts. Our approach is to use 'common technologies' and 'common frameworks' with some assistance from ai and ml when needed -- rather the reinventing everything in order to address the unique use cases of effective customer interactions. By embracing open standards and leveraging 'common technologies' in our quest to deliver winsome and clever interactions for our customers, we hope to deliver increasing economic returns for businesses everywhere!

Microservices are the core of an Agent's 'intelligent interaction' at Strategic Machines. The design of Strategic Machines is to integrate the use NLO, NLU, NLG and Machine Learning with pure functions (microservices) -- reducing complexity, cost and cycle time to build, test and deploy winsome virtual Agents for companies. The architecture of the Machines platform presumes a separation of concerns between important entities involved in the composition of cognitive apps:

platform services- The messaging platform is a low latency processing platform, integrating channels, state machines, and data services for every message received before trigger web actions (microservices) for response processing ai services - the platform leverages ai engines for intent, entity identification and other cognitive services as required microservices - pure functions which parse data objects and compose responses with precision and speed

Usage

super simple to use

const {createMachine} =    required('@xmachina/message')    // install the factory function

const m = createMachine()    // create an object with an array of functions

m.updateWorkObj(obj)       // pass in the data object from Strategic Machine messaging platform to initialize
                         // the state machine. Context and state of a dialogue is tracked and available for retrieval

// examples
m.getWorkObj()          // retrieve the latest copy of the data object
m.getConnection()      // db connection for a customer
m.getMessage()         // original text message from the channel
m.getPostdate()        // timestamp at moment text message received
m.getCustomer()       // network owner info
m.getMember()        // info about the user who sent the text
m.getStatus()        // status of this dialogue (new, active, errors, terminated for various reasons)
m.getMeter()        // count of number of skills (microservices) invoked in the current dialogue
m.getWatsonClassification() // returns the classifier object from Watson ai engine
m.getWatsonClassification().confidence // confidence level of Watson ai in identified intent
m.getWatsonClassification().topclass // identified intent for the current text
m.getAgent()          // retrieve agent object
m.getAgent().name     // name of the agent identified for current interaction
m.getAgent().avatar    // avatar url
m.getAgent().skills    // array of skills (microserviices) defined for this agent
m.getMachineState()    // the state of a discussion with a virtual agent .. which is the index to the skills array

Check the code for other available methods and data

Pull Requests welcomed

License and Use

LICENSE

Contributing

contributing

Strategic Machines labs and affiliates

connecting businesses with the conversational economy

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.5.9

6 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago