This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 124
[Feature] Added Chatbot #66
Open
Hendremy
wants to merge
17
commits into
frappe:main
Choose a base branch
from
Hendremy:main
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ocType to include AI Helper settings
Changed variable name from 'content' to 'answer' to avoid confusion
… array twice through ast.literal_eval() doesn't work, need to convert to str in between
Entering the path of a method in the 'Action' field of chat_settings allows to link the Chatbot to a custom API
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following #65
I added a default Chatbot user with whom it is possible to send messages to directly via a chat room.
It can be disabled through the Chatbot Settings.
When a user sends a message in a room where the Chatbot is a member, the "Action" method will be called providing the sender email, the room id and the message content. It then returns a message that will be sent to the room.
This "Action" has to be configured by the admin and can be linked to any Chatbot.
When a user clicks on the "Chatbot" button, it will create a Direct room to the Chatbot and then open that room.