I am developing a Chat bot using Dialog-flow which will be based on a database that I am preferring to use MySQL. The Chat bot will send the answers on the basis of DB after querying the data.
I have created a basic chat bot with a small Database.
What should I do to develop a communication link between MySQL and the Dialog-flow or is there any Database that I can use? Help me, please.
To communicate with your database from a Dialogflow agent, you will need to use fulfillment.
Dialogflow has a fulfillment library for Node.js that you can use to start building your fulfillment code. You can see the Dialogflow GitHub for many samples of fulfillment code.
If you are using Node.js to build your fulfillment, you can integrate it with MySQL via a Node.js MySQL client such as mysqljs/mysql.
Related
I am new to Azure Bot Framework Composer.
I am creating chatbot using Azure Bot Framework Composer(without writing code) which need to be launch in Angular Web Application from Azure Cloud after deployment.
In my chatbot project, need to fetch the user conversation data and send it to backend API from Azure Bot Framework Composer.
How to achieve this?, anyone help on this.
You can view the conversation data using ${conversation} scope and from dialog stack can access required information. To get last conversation data can use ${turn.Activity}. For sending to backend API, create HTTP post method and pass the data in the body of your request.
Without knowing more details on your chatbot project, one reasonable approach to take is to use the Send HTTP Request action in the composer.
After you obtain the values from the conversation that you are looking for, (can be stored in conversation / dialog variables), you could then pass it onto an HTTP send request and deliver that to your backend API.
With this, you can send any payload to your backend API.
I am trying to integrate an oracle chat bot with WhatsApp.
From what i understand
direct integration is not feasible in Oracle and we have to use webhooks.
WhatsApp does not expose its API directly. We have to go through a WhatsApp client (infra[servers, db] for the client hasto be setup separately)
Can someone provide some useful guidelines(steps) on how to proceed with the integration?
I have developed a chatbot using dialogflow and hosted my webhook api to firebase cloud. I have integrated this bot to MS Team and Skype where I am able to access the bot from both channels. I have a requirement that I have to show "user typing..." notification to users in the chat window similar to session.sendTyping() having in MSBot. Do we have similar functionality using webhook option?
Any help would be appreciated.
Thank you!
This is not a feature that is built into Dialogflow. If you want to add this, you'll need to use another system to store the state of the focus and receive it on other devices. This could be accomplished through storing the boolean state in Firebase's database, for example.
I am confused about how to integrate my Watson bot on messaging platforms such as Facebook messenger. To build that bot, I used the Watson Conversation service and also used Bluemix cloudfoundry node.js app to expose it on the web. It works very well, but I just can't integrate it to platforms without the use of a third-party platform like stamplay. I don't really want to use third-party platforms to integrate my bots.
Anyone have any ideas? Maybe I can host my own bots on my Bluemix cloud platform? I just don't know how.
You might want to use some facilitators for this, like Node-red or NGROK.
Use Node-red to Integrate Watson Conversation with facebook easily.
Use NGROK, Tanmay Bakshi teaches how to do that. Check this tutorial.
With Node-RED you can create functions, and have a lot of options for Business rules for your application.
Note: I've built some open source basic example to Integrate Watson Assistant with Telegram and Facebook using Node.js. You can follow the instructions or read the docs in the repositories.
This middleware plugin allows developers to easily integrate a Watson Conversation workspace with multiple social channels like Slack, Facebook, and Twilio. Customers can have simultaneous, independent conversations with a single workspace through different channels.
https://github.com/watson-developer-cloud/botkit-middleware
I created a starter application for this purpose. My example is for Slack and you easily use it by creating an slack API token.
The starter is implemented in node-red and you just need to insert your API token and the rest is deployed automatically. I used Watson Conversation and Natural Language Understanding.
One-Click-Deploy and more detailed description:
https://github.com/BenediktKrueger/SlackBot-Starter-on-Bluemix
Firstly,When I am starting the conversation,I am asking the user for their email address.
The application is deployed in bluemix in nodejs
After the conversation is completed,I want the chat history to be emailed to the given email address.Is it possible? If it is possible, can I save the chat history in the JSON format in Cloudant NoSQL DB ?
Is there any tutorials on how to go about with this?
It is unlikely that you will find documentation for your entire use case, However, there are a few sources of information available to you.
There is a conversation service demo app written in nodejs https://github.com/watson-developer-cloud/conversation-simple. In particular, take a look at https://github.com/watson-developer-cloud/conversation-simple/blob/master/app.js for the conversation code.
There is a nodejs library for Cloudant https://github.com/cloudant/nodejs-cloudant. In that link you will find examples of how to connect to Cloudant and persist data.
For emailing you will probably need to subscribe to a service like sendgrid. In that link you will find documentation for sending emails using nodejs.
As a developer, you will need to integrate the APIs for watson conversation, cloudant and sendgrid in your nodejs application.