Interconnect a chatbot from DialogFlow and one from Watson - dialogflow-es

For those who don’t know, Proximity is a plateform to interconnect and create bots.
A metabot connects bots from different technologies to form a unique “big” bot.
For example , I connected a bot from Recast and one from DialogFlow together to get a metabot.
When i connect a bot from IBM Watson , i get a an unknown error message and nothing appears on the screen :(
One of my friends has already succeded to connect a chatbot from watson in his metabot so i don’t undersatnd why it isn’t working for me....

Be sure that your filling the right access info. Ex :
workspace_id : "ahdhvc-ffdf ..."
username : "fdfhjh-aasd"
password : "ahdhvcffdf"
If your bot is hosted on Germany region "https://gateway-fra ..." or others you must to specify the url too.

Related

Azure Bot Creation with Natural Language understanding(LUIS)

I am facing issues while building a Voice bot using nodejs in Microsoft Azure, Currently i have made some research and built a sample chatbot which works fine using nodejs.
I have tried MS portals for voice bot integration and unable to take it forward, need guidance and suggestions.
My idea is getting a number from Twilio, then put my azure bot's end point URL in the twilio number.
Once my twilio gets an incoming call it will route the request to the Azure bot which will respond with a greeting and ask for few inputs, then the recorded voice should be passed to the LUIS app for Natural Language understanding and give the required text which will be further handled by the Azure bot.
I am not sure whether this is good solution, please suggest
I am not able to see any sample code for nodejs. Steps for integration and a basic sample code is what i need as a basic to start with, Your inputs/suggestions on this is highly appreciated.
Using the Bot Framework SDK for Node.js, you can specify text to be spoken by your bot on a speech-enabled channel in either of the following ways:
Set the IMessage.speak property and send the message using the session.send() method
Send the message using the session.say() method (passing parameters that specify display text, speech text, and options)
Send the message using a built-in prompt (specifying options speak and retrySpeak).
Feel free to review the following documentation provided and sample code for more details.
Update
Also check out Connect a bot to Twilio.

How to enable autocomplete messages on Facebook messenger using set of entities?

I have a Facebook page, Python backend, PostgreSQL DB and Dialogflow agent.
A user communicates with my chat bot by sending a message to my FB page.
This messages is going through my Python backend straight to the Dialogflow agent for analysis (intents, entities etc.).
Dialogflow sends the interpreted text back to my Python backend which replies the user back on Facebook.
Please advise how can I enable autocomplete when user enters a message based on list of entities?
For example I am storing a list of entities (names) ["John", "Mike", "Steve" ....]
When user enters "J" I am presenting him with an autocomplete options: John, Jennifer ....
So the first question is if it's possible, and the second one is how to do this?
I will appreciate any help or direction what to check.
Facebook messenger does not support Autocomplete feature.
Check for all the available features here

How can I save and retrieve conversation data from the bot using Microsoft Bot Framework version 4?

I am using Bot Framework SDK 4 Nodejs, and am going to deploy the bot on Skype. I need to save the conversation data/ chat history of the bot for every user.
I tried using the conversationState property accessor but it returns some JSON having data about the general chat/turn context - like the buttons the bot has prompted etc.
I want the sequential chat history like :-
Bot: "What do you want to do?".
User : "I want to generate a ticket" and so on...
For example when you run the Bot locally on the Bot Framework Emulator, it displays some logs at the bottom right hand corner. I want those exact logs or something similar to be stored and used in my bot.
Please help me out! Thanks!

Sending a message to user when user enters a geofence / area?

I'm making a dialogflow agent that will be integrated with various platforms (Facebook messenger, slack and maybe a few others) that will have the basic functions of a informational chatbot.
The agent will be for a specific store and I'm wondering if it's possible to trigger some sort of welcome message once the user enters the geofence (in this case, the store)?
Thanks for the help. I haven't found any documentation for this on dialogflow specifically or anywhere else so anything will be awesome.
Note: I'm am not by any means dead set of dialogflow, if AWS Lex offers something like this and it's better, I will take a look. I'm just a bit more used to dialogflow.
This cannot be achieved just by using either Lex or Dialogflow. Because at the end of the day, you are using them to integrate with Messenger/Slack/Whatsapp and these apps will (for obvious good reasons) not share the user's location information with the bot. You will need a helper app which takes the user's location permission as well and triggers the bots for you.
Keep in mind that channels like Messenger and Whatsapp have restrictions over sending messages willy-nilly to users. Messenger has a '24+1' policy Whatsapp also you can only send free form messages in the 24 hour window. But after that you can send chargeable pre-approved "hsm" message templates.

How to transfer conversation from Bot to human agents? in ibm watson using node js

I have created watson chat bot which answers users FAQ's using Node js as a middle ware. but how can i transfer the conversation from bot to any human agent.
In this case, you need to know: Watson Conversation Service is one endpoint API, so, you can call the service and creates one condition in your backend for identifying if the user wants to be attended for one's Human Agents or anything that you want to do with yours application.
For example, you can see the Project by IBM Developer's inside Watson Developer Cloud called conversation-simple using Node.js.
You can simply create one #intent condition in your chatbot likes:
if bot recognizes #wantsHumanAgent
response: Do you want to talk with one Professional?
And creates one #entity with the values: yes or no, after it, try to create one child node with the condition:
if bot recognizes #yesOrNo:yes
response: Please wait! I'll pass you on to an attendant.
Or you can add the link for the user's talks with the Attendant too, like:
if bot recognizes #yesOrNo:yes
response: The link to talk with one Attendent is <a target="_blank" href="https://yourlink.com">Talk to one Professional!</a>.<br/><br/>
Obs.: You can add one custom code to creates your functions or do something in your application using this example as a base, and creates one custom code for what you want: Add in your chat one option to talk with Human Agents.
Note.: This is just some's suggestions to use based on good practices. You need to guide your user in your Virtual Assistant for one better Attendance.
See more examples to build with Watson Conversation Service.

Resources