For Rasa installation on your system please visit here
The main goal of this project is create a Bengali conversational chatbot using Rasa
Custom response is one of the feature of Rasa ai
To enable this use follow the steps:
1.add action to domain.yml
actions:
.
.
.
- action_hello_world
.
.
.
- Enable endpoints.yml
action_endpoint:
url: "http://localhost:5055/webhook"
- Edit action.py
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
class ActionHelloWorld(Action):
def name(self) -> Text:
return "action_hello_world"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
dispatcher.utter_message(text="Hello World!")
return []
- for installation python sdk for custom action go here
Install Sdk using:
pip install rasa-sdk
rasa run actions
for run custom action