Train TJBot to Translate in Node-RED

JeanCarl Bisson
2 min readAug 9, 2017

--

Today we’ll train TJBot to translate a greeting from one language to another using the Watson Language Translator service.

TJBot can translate content from one language to another using language translation models from the IBM Watson Language Translator service. Create a Watson Language Translator service instance and copy the username and password credentials into the Language Translator section. Select English in the dropdown menu labeled From and Spanish in the dropdown menu labeled To.

When the flow runs, the translation is displayed in the debug window.

Dive into the response and display just the translation by changing the output value in debug node.

Running the flow shows just the translated greeting.

Here’s a video of how to train TJBot to translate content from English to Spanish using the translate node.

That’s it for today’s skill. What can you train TJBot to do now that it can translate phrases from one language to another?

Come back tomorrow and we’ll talk about using the Watson Conversation service and how to train TJBot to respond with simple responses.

This post is part of a series of skills you can train TJBot to perform.

--

--

JeanCarl Bisson
JeanCarl Bisson

Written by JeanCarl Bisson

I’m an IBM Technical Innovation Lead. I love to build prototypes and then share how I designed and built what I made so others can try it too.