How to test bot in different languages? - bots

We have a bot on dialogflow. The bot is setup in both languages - french and english.
It is not a problem to configure our botium instance in order to test all the intents in english (default language).
How to configure our botium instance in order to test all the intents in french?
My botium.json file contains now the capability like
"DIALOGFLOW_LANGUAGE_CODE": "fr"
When I run the botium cli command like
botium-cli dialogflowimport --buildconvos=true
I received convos and utterances in english.
Any workaround to get convos/utterances in french?
Thank you in advance.

With the most recent Github commit it is now possible to import/export Botium data to and from Dialogflow in multiple languages - the DIALOGFLOW_LANGUAGE_CODE-capability is now respected. It is not part of the official release yet, so for now you have to install the latest version directly from Github:
npm install codeforequity-at/botium-connector-dialogflow#master

Related

Outputting/Testing of Code within Google Cloud Shell Editor

Hopefully you are safe and well.
During this lockdown my company moved to Slack. As a bit of a WFH hobby, about a week ago I started to learn how to code basic Slack apps within Google Cloud. The reason for this message is to ask a novice question, so please forgive me. Is there a way to test/ output/ compile code within Google Cloud without having to go through the steps to send it to Slack and test within that eco-system. I imagine not, as I've looked through the platform and help files.
Many thanks for any help with this question.
Best wishes,
David
Cloud Shell runs a docker container, with many language SDK's already installed.
Developers will enjoy access to all their favorite
development tools pre-configured. You’ll find Java, Go, Python,
Node.js, PHP, and Ruby development and deployment tools. Run your web
applications inside the Cloud Shell instance and preview them from the
browser. Then commit it back to your repo with the pre-configured git
and Mercurial clients.
So yes, you can actually test/output/compile all your Java, Go, Python, Node.js, PHP, and Ruby code.
For example it comes out of the box with:
Maven for Java.
NPM for NodeJS.
PIP for Python.
And many others.
If you are using NodeJS to code Slack apps, you can even run Visual Studio Code in Google Cloud Shell:
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server-$VERSION-linux-x86_64.tar.gz
tar -xvzf code-server-$VERSION-linux-x86_64.tar.gz
cd code-server-$VERSION-linux-x86_64
./code-server --no-auth --port 8080
For reference the code and image for VS Code were taken from this medium post.
Please check the official docs for the most up-to-date list of supported languages.

How to write Google DataFlow templates in NodeJS?

I'm looking for information on writing DataFlow jobs in NodeJS. The tutorials are all referring to Java or Python.
Any ideas if it's possible?
Until now(2.13.0), Beam allows writing pipeline by Python, Java and Go.
Beam community is working on cross language pipeline feature that allows call PTransforms written in another language, but NodeJS is not on the roadmap.
Check[1] for more information on it.
[1] https://beam.apache.org/roadmap/portability
There is support for TypeScript now.
As of February 2023. it's still experimental but main functionality is covered, from Apache Beam documentation:
The Typescript SDK supports Node v16+ and is still experimental.
You can install it via npm:
npm install apache-beam
More instructions and documentation can be found in the official sites at npm and github.
Link npm: https://www.npmjs.com/package/apache-beam
Link github (example): https://github.com/apache/beam-starter-typescript

How to test a local bot with a test-bot in bot framework V4

I know version 3 of botbuilder SDK used the npm bot-tester module to send messages to the local bot, but I don't know if this will work for the newer version because you cannot create a UniversalBot to create those kinds of tests.
I am using Botframework V4 with Node.js, Mocha testing module, and Yarn package manager. I have successfully setup the test environment so I just call yarn test and the basic assertions I make (e.g. assert.equals(1,0,'this will not work);) run without unintended errors.
How can I implement testing so that I can pass a simulated conversation flow? It would essentially be two bots chatting with each other with expected results from each conversation.

Is there a way to access Windows APIs like CORTANA form electron / node.js apps?

I just got the "Creators Update" on winodws 10.
I've read a while back that Cortana speech apis will become available for developers trough an SDK in this update.
Given that the node.js run-time is not sandboxed like the browser - is there a way to get the native windows apis like Cortana working in node.js? and by extension in electron.. using something like
var cortana = require ('cortana');
I couldn't find any npm package at this point. But i can't tell if is because it's too soon - or because there is some incompatibility here.
Can someone provide an explanation of what is actually happening?
Sure there are ways to make APIs like Cortana works with your app, for example botbuilder is an excellent npm package you can use:
https://github.com/Microsoft/BotBuilder-Samples

Updates to Watson Node.js SDK for Conversation Service

I am waiting for the IBM Watson Conversation updates to the Node.js API to add/update entities and workspaces. I see this https://www.ibm.com/watson/developercloud/conversation/api/v1/#create_value , but it has been saying "Coming soon" for a few months now. Any ETA on the npm package support ?
I had a similar issue, only for Python and my watson-conversation-tool project. The Watson Node SDK has already been updated and you can use the API to manage entities and workspaces.
The Node.js API for Watson Conversation: https://github.com/watson-developer-cloud/node-sdk/blob/master/conversation/v1.js

Resources