I'm starting with wit.ai, I'm trying to create a simple messenger bot, I have everything working on facebook but I'm struggling with a simple task how to make the bot reply a different phrase based on the response given by the user.
Example:
User: Hello
Bot: Hi, Do you want to listen a joke?
User: Yes
Bot: [Tell a Joke]
or
User: No
Bot: Ok bye bye!
This seems to be very simple but I'm struggling with it. Some one can make an example how to make this?
Note: I know that there are a doc about this issue on wit.ai documentation, but even with that information I can't put this simple bot working.
The recipe can definitely be better...
You will find below how to train the yes/no entity
We are working on a simpler way to do that with branching and it will come soon. Follow your roadmap here: https://github.com/wit-ai/wit
Related
I am doing a proof of concept to find a way to make callouts from Apex code to send automated Whatsapp messages/communications from Salesforce to our customers at difference points of time in Sales life cycle (ex: one at lead conversion, one when a payment is received etc).
My assumption here is to send these messages via triggers. Only thing is i am not able to figure out the correct approach to start with. I did see an example online which is using middleware apps like twilio, weboxapp to convey the messages to Whatsapp servers. Is there a way these communications could be sent directly? Any leads are appreciated!
There appears to be a fairly new integration set up between Salesforce and WhatsApp. There's a good write up in the first link below, and then documentation from Salesforce in the 2nd link. I'd start by looking through there because it might help solve your requirements much more easily. I believe that Whatsapp's APIs are private and need to be accessed through an approved partner.
https://www.wearemarketing.com/blog/salesforce-whatsapp-integration-release.html
https://help.salesforce.com/articleView?id=sf.messaging_set_up_whatsapp.htm&type=5
I want to implement a custom command with a custom response for my Google Home. During my researches, i found these two ways:
Ifttt
DialogFlow
Using Ifttt, I only found the way to create a custom command and trigger then a Webhook. This works fine - so for example if i would say "Ok Google, do whatever...", a webhook is called.
The problem is, that I'm not able to create a custom response from the webhook (e.g. Today it's Tuesday and you look really awesome today...).
Using DailogFlow, I only found the possibiliy to trigger "Ok Google, talk to Whatever". Then I'm in a dialogflow - which works find but I don't want this. I don't want to be in a dialog - I just want a straight answer from a webservice.
Is there any way to do a direct answer like "Ok Google, tell me a joke?"?
Even after using the phrase
Talk to Abhijit Kar
I keep getting: this action is not available in simulation
I have verified the google account as well.
I arrived at the test page using Test Draft Button.
Thanks to Nick Felker, I understood that whatever the app's name maybe, in this case Abhijit.
For testing we need to say talk to my test app.
we have built a very simple bot that simply passes any message onto our own application. (we want to answer questions asked from our customers to be handled straight from our CRM application for customer service purpose)
Now, the bot is declined with message:
Thank you for your submission. We tested the messenger experience on your associated page and received either no response from your messenger bot or received a human response. Please resubmit with the new, improved version of your bot.
Which raises the question for me: is it even allowed to do human assistance via the messenger API? Or is it bot only? I have read through all the platform policies, use case examples, etc.
So, how do I create the simplest integration? (send message straight through to one of our customer service users?)
Making a bot is easy if you use Wit.ai which is an NLP and speech API. It can integrate with the messenger/graph API. Basically, you send text to wit.ai and it returns the intent. For example: you send "get me a large pizza" to Wit and it returns something like (intent = pizza, size=large, time = now) You could also try api.ai but in my opinion, it is not as good yet.
I have searched high and low for an answer without any luck.
Here is my situation:
I have set up fb comment box on my website.
When anyone makes on comment on my website, I am notified in my personal profile, the notification takes me straight to the comment moderator tool, where I can see the comment and and find out which page on my website has been commented.
All that seems to be working ok.
What is not working is, when I reply to a comment made on my website, the person that made the original comment is not receiving a notification of my reply.
Is this a function that is not available?
If it is available where can I find the information to implement it ?
If people are not receiving notifications of my replies, one they could think that I am rude, second it defeats the whole object of creating engaging threads on the website.
Thank you so much, I have been trying for months to find this answer.
Susanna
This is still a problem as of 2017. It seems that the only way is to tag a person in a reply for her to receive a notification.