IBM Watson how to change the hint from textbox - ibm-watson

I created a Bot using the IBM Watson feature. I would like to know how to change the "tip" of the Web Chat text box (Example: "Type something" to "Type a message"). I looked in the related documentation about this, but I didn't find anything.
thanks in advance

These strings are language dependent, hence you can override them as you see fit.
see
https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-instance-methods#updatelanguagepack

Related

Discord Bot Special Text Boxes

I'm trying to figure out how to make these special text boxes that I've seen in some discords for my own bot, they look like this - https://i.stack.imgur.com/AyLQL.png. I'm aware there is a way to do something similar to this that's built into discord but I'm not sure how to do this particular "style" of box if you will, any help would be much appreciated
This is a feature called Embeds.
You can find out more about them here: https://discordjs.guide/popular-topics/embeds.html

It is possible to get the location of classified content in Watson Visual Recognition?

I'm testing IBM's Watson Visual Recognition using Node-RED, I've trained it to identify some elements in the image, but I wonder if it's possible to get the exact position of these elements.
At this time it is not possible to get a location for anything other than a face which you do using the detect_faces end point. However we recognize this is a valuable feature so please “stay tuned”
Update: This is now possible with the v4 "Custom Object Detection" API:
https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-getting-started-tutorial

Facebook Messenger Platform - Detect user typing

When developing bots, it's common practice to show typing indicator to user, while bot is working on background, but is it possible to detect opposite situation: whether USER is typing or idle? I could not find any info in docs or google. Does anybody know how to achieve that?
This currently can't be done.
You can only show the user that you are typing.
"typing_on" and "typing_off" for the sender_action.
I made it using twisted way,
Using image processing i take screenshot and see if he is typing or not using python sc

Salesforce's APEX language specification

I'd like to find out exact APEX language specification (with all that grammars, etc.) but I've spent half a day and ended with almost nothing.
I know that APEX is Java-based language, but compiling it's spec on my own from Java spec and exclusively APEX things will be a pain.
Is there any place where I can get APEX language specification?
For those not familiar with them - I'm looking for a such document http://docs.oracle.com/javase/specs/jls/se7/html/index.html for it.
Thanks in advance!
My understanding is that Salesforce haven't currently published such a document. Instead they want you to use the Tooling API to get the tokens etc...
See Grammar for creating an Apex parser
Depending on your scenario you might find the Apex Language Server a useful tool. It does the Apex parsing etc... behind the scenes for the current VSCode tooling.
Incidentally, the Salesforce StackExchange site linked above is a great place to ask Salesforce specific questions.
Actually, Salesforce does publish a detailed Apex developer guide.
The current 2017 document can be found here :
https://resources.docs.salesforce.com/208/latest/en-us/sfdc/pdf/salesforce_apex_language_reference.pdf
This document and it's location could be updated frequently, so you can also Google 'Apex Developer Guide' to get here :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm
Once here, click the PDF button to generate/view the latest PDF, or use the available content options to view online.

Autocompletion on multiple words in a text box

I'd like to create a simple winforms application, that enables simple&fast text input on a given topic.
My plan is to have a small db with frequently used words by the user on a given topic (e.g. some technical terms of his job) and when he is typing, an autocomlete feature advises word completion from a drop down list, like in an intellisense editor. As I know .net winforms autcompletion can be used only for a word, not 'dynamically'. It would be like predictive SMS typing in a mobile phone.
I know there are some open source intellisense controls, but as I see they does not fit my requirements, they are specifically for programming languages, not for any type of text.
Do you have any suggestions about open-source projects on this topic?
Thanks in advance!
.net4/c#/vs2010/winforms
This tutorial is for a text file auto completion but it's a good starting point if you want to create your own control for it.
http://www.dreamincode.net/forums/topic/34785-create-an-autocomplete-textbox-control-in-c%23/

Resources