chatbot

How can I properly get my Luis chatbot working?

自古美人都是妖i 提交于 2019-12-11 14:33:21
问题 I have to connect Luis to node.js and create my first chatbot that, as a first stage should handle simple requests. I have checked the following links : https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-recognize-intent-luis https://github.com/Microsoft/BotBuilder-Samples/tree/master/Node/intelligence-LUIS but getting started has proven to be difficult, what I've done as a first stage is: var restify = require('restify'); var builder = require('botbuilder'); var http =

Returning List of possible answers

你。 提交于 2019-12-11 14:16:47
问题 I have an assignment to make a "simple" chatbot and my main problem now is in a predicate that receives a list of atoms (Ex: ["good","morning"]) and should return a list of possible answers that are already defined in structures. Also the predicate needs to filter for keywords and only return answer that contain keywords from the list given. I have tried checking if an element from the list is already defined in any of the defined answers. If yes it would concat to the returning list. (This

ImportError: No module named 'Kernel'

删除回忆录丶 提交于 2019-12-11 12:52:04
问题 I'm using windows 10 and working on a chatbot project and use aiml integrated with python I got this error import aiml File"C:\Python34\lib\site-packages\aiml\__init__.py", line 4, in <module> from Kernel import Kernel ImportError: No module named 'Kernel' when running the integration code here import aiml # Create the kernel and learn AIML files kernel = aiml.Kernel() kernel.learn("std-startup.xml") kernel.respond("load aiml b") # Press CTRL-C to break this loop while True: print (kernel

Is the Bot Framework Emulator handling new members differently from Bot Framework Webchat?

给你一囗甜甜゛ 提交于 2019-12-11 10:14:36
问题 According to this official sample project (https://github.com/microsoft/BotBuilder-Samples/blob/master/samples/typescript_nodejs/13.core-bot/src/bots/dialogAndWelcomeBot.ts) I can identity new members and send them a welcome message using this (my code): this.onMembersAdded(async (context) => { const welcomeCardTemplate = require("../lib/data/resources/cards/welcomeCard.json"); const membersAdded = context.activity.membersAdded; for (const member of membersAdded) { if (member.id !== context

How can I make a call from my action on google?

此生再无相见时 提交于 2019-12-11 09:56:32
问题 I'm building an action for Google Assistant using DialogFlow. And for this action, I want an intent say "Call X" with which the user can call "X". Here "X" is not a contact in the user's device but a contact defined within my intent's response. Is there any option with which I can achieve any of the following for my action? Make a Call to X, or atleast Open up the dialer with the defined number from my action Please guide me on this. 回答1: What you can do is Use a Helper Intent Through which

Load a YAML file with variable in Ruby

巧了我就是萌 提交于 2019-12-11 07:33:14
问题 I'm building a chatbot and storing my 'replies' in a Yaml file below: # say_hello.yml - reply_type: text text: "Welcome <%= @user.first_name %>" - reply_type: delay duration: 2 - reply_type: text text: "We're here to help you learn more about something or another." - reply_type: delay duration: 2 In order to run the replies I use this method: def process @user = User.find(user_id) replies = YAML.load(ERB.new(File.read("app/bot/replies/say_hello.yml")).result) replies.each do |reply| # code

DialogFlow Fulfilment - How to get both original and default value for a parameter

橙三吉。 提交于 2019-12-11 05:45:03
问题 I am trying to get a time value from an intent as both $time and $time.original. I need the $time value to do some processing on it and I need the $time.original to show the output back to user. For example, if user says, 'are you open tomorrow?', I want to respond 'Yes, we are open tomorrow?' but on the back end, I need the value of date 'tomorrow' to do the processing. Any help would be appreciated. 回答1: First, you would need @sys.date entity if you want to catch value of entities like

Maintaining session in Gupshup bot calls to Api.ai

偶尔善良 提交于 2019-12-11 05:19:41
问题 I am building a bot in Gupshup with Api.ai integration. I have an agent in Api.ai with several intents and each of them linked through contexts(input & output contexts). When I use the following code to call Api.ai, the first intent is called and I get the reply. However when the second message is given, the bot takes it as a completely new message, without identifying its relation with first. How can I solve this issue? Kindly help function MessageHandler(context, event) { // var nlpToken =

mIRC bot - copy/paste lines in 2 channels

柔情痞子 提交于 2019-12-11 04:52:21
问题 I’m a noob in mirc scripting, and I need some help. there’s 2 irc channels. let’s call then #channel1 and #channel2; There’s 2 bots. One is mine, let’s call him “mybot” (my bot is in both channels). The other bot is from a third person, let’s call him “otherBot”; What I need is… let me make an example to better explain. a) in #channel1 some user type: [14:38:48] <@someuser> !user xpto At this time, “mybot” is in both channels. he reads the command “!user*” and copy/paste it in #channel2,

PermissionDenied: 403 IAM permission 'dialogflow.intents.list'

江枫思渺然 提交于 2019-12-11 02:48:46
问题 I'm trying to get the list of the intents in my Dialogflow agent using Dialogflow's V2 APIs but have been getting the following error: PermissionDenied: 403 IAM permission 'dialogflow.intents.list' on 'projects/xxxx/agent' denied. I adopted the following steps: I created a new agent(with V2 APIs enabled) and a new service account for it. I downloaded the JSON key and set my GOOGLE_APPLICATION_CREDENTIALS variable to its path. Following is my code: import dialogflow_v2 as dialogflow os.environ