diff --git a/chatbot/action/__init__.py b/chatbot/action/__init__.py new file mode 100644 index 0000000..06d7405 Binary files /dev/null and b/chatbot/action/__init__.py differ diff --git a/chatbot/action/actions.py b/chatbot/action/actions.py new file mode 100644 index 0000000..8bf1f75 --- /dev/null +++ b/chatbot/action/actions.py @@ -0,0 +1,27 @@ +# This files contains your custom actions which can be used to run +# custom Python code. +# +# See this guide on how to implement these action: +# https://rasa.com/docs/rasa/custom-actions + + +# This is a simple example for a custom action which utters "Hello World!" + +# 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 []