Geek Culture
Published in

Geek Culture

Working with IBM Watson
and Artificial Intelligence in Node.js

You may have always wanted an assistant, a virtual business helper to get your daily tasks done — a reminder to check, validate and approve an outcome. Focusing on remedial tasks and turning them into a full-circle event that encapsulates every step of an important process in one-go.

Watson does, that, well, it can. Dialog works the way you speak — would speak, rather, and possibly are, as if you were having a conversation, intents, well they monitor your type exchanges for quality and return a score of how precise your request described a step in the process.

Confidence is the magic word here, where alluding to the solution you type an inquisitive question, Watson qualifies this, and returns the nearest proximity of dialog.

IBM Watson API (Application Programming Interface)

You may be wondering how many of the great chatbots of this era are built? How are so many people & businesses developing Artificially Intelligent solutions and shipping them so quickly?

Well, your answer is that in fact, there are often application interfaces accessing pre-trained data sets that convert logical natural language (NLP) into persistent conversations. You can go about this in many programming languages, but a quite popular one to approach this with today is Node.js, the very browser you are using, is mostly likely using the same technology.

Getting Started with IBM Watson AI

If you are familiar with POST requests, then you can get started building requests that become responses in Curl, JAVA, Node, Python, Go, .NET, Ruby, Swift, and even Unity — that is right, Watson, in your game engine.

For anyone based around languages that is PHP, JavaScript, Python, Go, C#, and Ruby. There are a lot of options that you can build Watson into, through an application is of course the main goal, but just getting started only requires a command line tool.

Tips For Success:

  1. ) If you are looking to establish a connection directly to Watson, connect with the full Assistant URL, it has a built in session.
  2. ) Wanting to get more involved? Create an application to GET and return the Session Id and use that to create a POST for your message.
  3. ) You have some plans in mind I see, so really you want to connect a database with a JSON format so that you can start building developed responses with logging.

Building with Watson can be easier than GET and POST with embedded scripts that enable your web assistant to bring your dialogs and intents to life. If you are looking to go a bit further with a flow, there are even web-hooks, and cloud functions that can communicate to common API hubs like Twilio or Slack for messaging.

There will always be great success in understanding the framework, before anticipating the solution, building with the no-code tools can inform you of future steps and project plans at scale.

Crafting keen solutions to customer, partner, business and user needs can be very supportive to your objectives. Simplifying contextual questions, processes and daily flows that consume time and could be more fun will unfold naturally into the Watson ecosystem.

Do more, sell more, communicate more and connect with more people across the globe with a universal solution that is around 24/7, waiting to support your users.

Full Stack IBM Watson Assistant Solutions

You may be wondering how you build your own solution, when your audience is large or you are looking to replace imperative business transactions that follow a similar logic. APIs can be custom to the business, and have translations or even request needs that reach beyond the many solutions that connect with Watson.

Luckily you are here, the Watson API is very flexible and quite simple, not to mention it returns and accepts JSON (JavaScript Object Notation), which makes working with a JavaScript object a very interpretive solution for many.

If you are familiar with JavaScript, you can find a recently built Watson solution with an open-source codebase on GitHub. I would like to mention this is also available with a walk-through from Nicholas Renotte on YouTube, I started with his videos, and adapted it for my solution.

This application Routed in Node with Express, is proxied to React through Axios, handling responses with Redux and then updating the UI state with React Hooks.

Finding yourself looking to add more? You are welcome to fork and build upon this simple framework, make sure you thank the creator, attribute to Watson, and leave a comment if you found this useful, it can be a lot to get started, but it is surely worth the freedom of build to find a development path to Watson.

Thanks for Reading, Keep Discussing!

Looking for more Application Development advice? Follow along on Twitter, GitHub, and LinkedIn. Visit online for the latest updates, news, and information at



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joe Alongi

Joe Alongi


Application Developer @IBM — JavaScript, Java, Kubernetes, and Cloud Native. (These Views Are My Own)