chatbot

Python speech recognition slowing down

[亡魂溺海] 提交于 2021-02-16 21:20:50
问题 I have developed a new program to speak to my chatbot. It works very well, but there is one strange issue I can't seem to figure out. Every time the process repeats (the console outputs listening and does speech recognition), it slows down. The 1st go is quick, the 2nd a little slower, the 3rd slow, and then it just gets too slow to respond from there on. Please help me figure out what syntax could be causing this. import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as

Botfront webchat widget not showing at Azure environment

点点圈 提交于 2021-02-10 19:54:30
问题 I'm running Rasa chatbot in container and apache2 in normal environment. When I open web page where chatbot is running there is no chatbot widget. When I run same configuration in my Virtual box environment, with Ubuntu 18.04 desktop , it works. it only shows this, no error messages // you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js Some information below: paulii@vetbot:~/rasaProd/rasaAsPa$ sudo netstat -plnt

How to add different fallback intents for different intents

纵饮孤独 提交于 2021-02-10 12:43:46
问题 How to add different fallback intents for different intents? So that user will see appropriate message instead of common fallback message. 回答1: If you are developing your own webhook to handle requests and response, it would be better to use Default Fallback intent for all the intents. Add an output context to each of your individual intents and based on this context you can respond back from the webhook using the single Default Fallback Intent like switch(inputContextToDefaultFallback){ case

How to add different fallback intents for different intents

痞子三分冷 提交于 2021-02-10 12:43:00
问题 How to add different fallback intents for different intents? So that user will see appropriate message instead of common fallback message. 回答1: If you are developing your own webhook to handle requests and response, it would be better to use Default Fallback intent for all the intents. Add an output context to each of your individual intents and based on this context you can respond back from the webhook using the single Default Fallback Intent like switch(inputContextToDefaultFallback){ case

discord.js v12: How do I await for messages in a DM channel?

江枫思渺然 提交于 2021-02-09 09:13:14
问题 This is the code that I've tried: message.author.dmChannel.awaitMessages(msg => { console.log(msg.content) }); But it returns this error message: TypeError: Cannot read property 'awaitMessages' of null Updated Code: message.author.send("What is your name?") const filter = m => m.author.id === message.author.id message.author.dmChannel.awaitMessages(filter) .then((collected) => console.log(collected.first().content)) 回答1: You're not using awaitMessages() properly, you need to pass a filter

Carousel in adaptive card

元气小坏坏 提交于 2021-02-08 15:16:35
问题 Please guide me to create carousel adaptive card in MS bot framework. I am using .Net sdk.I tried using adaptive card designer to design but couldn't do it. 回答1: Well, Adaptive card designer helps you to create template for one single card. In you case, based on your list create attachment from the created template in a loop and add each of the generated attachments to Activity.Attachments. if(listOfReservationCardsData.Any()) { foreach (var checkInStatusCardData in listOfReservationCardsData

Carousel in adaptive card

牧云@^-^@ 提交于 2021-02-08 15:13:16
问题 Please guide me to create carousel adaptive card in MS bot framework. I am using .Net sdk.I tried using adaptive card designer to design but couldn't do it. 回答1: Well, Adaptive card designer helps you to create template for one single card. In you case, based on your list create attachment from the created template in a loop and add each of the generated attachments to Activity.Attachments. if(listOfReservationCardsData.Any()) { foreach (var checkInStatusCardData in listOfReservationCardsData

Is there any implementation guide about AIML-OWL Integration?

只谈情不闲聊 提交于 2021-02-08 09:44:08
问题 So, i've done build an ontology using protégé and generate owl file, as far as i know owl is the rdf xml-based with more expressivity, and there are couples of paper that tells RDF can be integrated with AIML to build pattern matching chatbot with some kind of extensible knowledge such as https://www.researchgate.net/publication/228877414_Extending_knowledge_of_AIML_by_using_RDF http://conferences.idealliance.org/extreme/html/2007/Freese01/EML2007Freese01.html But i can't get any clear

Azure function run code on startup for Node

帅比萌擦擦* 提交于 2021-02-08 07:37:25
问题 I am developing Chatbot using Azure functions. I want to load the some of the conversations for Chatbot from a file. I am looking for a way to load these conversation data before the function app starts with some function callback. Is there a way load the conversation data only once when the function app is started? This question is actually a duplicate of Azure Function run code on startup. But this question is asked for C# and I wanted a way to do the same thing in NodeJS 回答1: You can use

rasa_nlu error while creating small chatbot

无人久伴 提交于 2021-01-29 17:52:11
问题 Iam getting the below error ModuleNotFoundError: No module named 'rasa_nlu', even though i installed rasa_nlu and rasa My code : from rasa_nlu.training_data import load_data from rasa_nlu.config import RasaNLUConfig from rasa_nlu.model import Trainer def train_nlu(data, config, model_dir): training_data = load_data(data) trainer = Trainer(RasaNLUConfig(config)) trainer.train(training_data) model_directory = trainer.persist(model_dir, fixed_model_name='weathernlu') if __name__ == '__main__':