virtual-assistant | simple virtual assistant powered by a multinomial Naive | Chat library
kandi X-RAY | virtual-assistant Summary
kandi X-RAY | virtual-assistant Summary
This is a virtual assistant aimed for students powered by Naive Bayes. Actions available include responding to greetings and praise, telling jokes, retrieving the weather, checking grades, playing music, and looking things up.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Sends user input to the virtual assistant
- Retrieves Spotify music on the device
- Responsible for responding to user input
- Download Grade data from the portal
- Read training data from a file
- Add training data for each sentence
- Parse json object and return array
- Initialize the widget
- Start the assistant
- Add content to the bubble
- Main entry point
virtual-assistant Key Features
virtual-assistant Examples and Code Snippets
{
"weather": "Dark Sky Weather API"
"grade_username": "your username",
"grade_password": "your password",
"spotify_username": "you username",
"spotify_password": "your password"
}
git clone https://github.com/drewvlaz/virtual-assistant && cd virtual-assistant
gradle shadowjar && java -jar build/libs/virtual-assistant-1.0-all.jar
Community Discussions
Trending Discussions on virtual-assistant
QUESTION
Forgive me if this is a redundant question. I viewed a couple of similar posts and I do believe my issue is unique. I am making a simple AI Assistant using a tutorial on geeksforgeeks. Link below:
https://www.geeksforgeeks.org/build-a-virtual-assistant-using-python/
I wanted to tweak this to be more specific to my needs, and I think I have it all figured out, including replacing import speech_recognition as sr
with it's python3 counterpart, import SpeechRecognition as sr
. I am using PyCharm Community as my IDE, and for those that know it, it allows you to install missing modules used by import
by mousing over them and clicking the prompt to install the module. Long story short, this doesn't work for SpeechRecognition. It's showing No module named 'SpeechRecognition'
despite clicking the prompt several times and seeing that it successfully installed.
I went to the Python Terminal and tried to do this manually with the following:
...ANSWER
Answered 2022-Jan-26 at 19:38I think I have it all figured out, including replacing
import speech_recognition as sr
with it's python3 counterpart,import SpeechRecognition as sr
This is your issue. I can't find anywhere that says you should import the library that way. All the official examples, and the official readme, state that it should be imported via:
QUESTION
In the Virtual Assistant Template introduction (https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-virtual-assistant-template?view=azure-bot-service-4.0) it is said that "a returning user card is shown on subsequent interactions".
I'm not able to have the returning ActiveCard shown.
What the user is supposed to do/say in the dialog to see that card?
...ANSWER
Answered 2020-Jul-16 at 18:18What the user is supposed to do/say in the dialog to see that card?
Start a new converstation after having previous interacted with the bot. For example, using the out-of-the-box VA, if you use the 'test in webchat' blade on Azure, you'll get a welcome card, and a prompt to enter your name. Later converstations, if you 'restart conversation' in that pane, you won't be prompted to enter your name, you'll get just the card.
In other channels, it would be as simple as sending 'hi' or 'are you there' to a bot to restart the convo after the bot has timed out (ie, the user hasn't messaged the bot after some time). This is known as a 'welcome card'.
For generic bot welcome messages: https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-send-welcome-message?view=azure-bot-service-4.0&tabs=csharp
For VA specific welcome messages:https://microsoft.github.io/botframework-solutions/virtual-assistant/tutorials/customize-assistant/csharp/2-edit-your-greeting/
QUESTION
We have Microsoft Virtual Assistant built it Typescript and we are planning to add Timeout capability. What this means is VA should end the conversation with its Skill if user is not engaged for certain amount of time.
There is botbuilder-timeout module to do this in V3 SDK which says,
"Module for Microsoft Bot Framework to enable your bot to prompt the user if the bot detects inactivity and ultimately end the conversation if no user activity after a defined period of time."
Is there anything in V4 or Virtual Assistant that offers similar capability ? If yes any ideas/pointers to document is appreciated.
...ANSWER
Answered 2020-Jan-17 at 18:51There isn't anything official for V4 bots like this. I don't believe I've seen anything unofficial, either.
That being said, we generally recommend something like:
- On each message, start a synchronous timer. You can do this in the bot, but it would be better to do outside of the bot, like with Azure Functions or something. The rest of this answer will assume the timer is outside of the bot. Ensure the timer also keeps track of the conversationReference related to the timer.
- Restart the timer each time the user matching that
conversationReference
sends a message - Once the timer expires, send an event to the bot with the user and conversation information (maybe through
ChannelData
), letting the bot know the timer has expired. You could also create a separate endpoint and monitor there, so you don't need the activity scheme; instead of/api/messages
, you could use something like/api/expiredTimers
. - Once the expired timer event is received, send a proactive message to the user to either 1) see if they're still there, or 2) end the conversation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install virtual-assistant
You can use virtual-assistant like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the virtual-assistant component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page