Browse Source

Upload files to 'chatbot/action'

SadhulaSaiKumar 2 years ago
parent
commit
a3cd34535e
2 changed files with 27 additions and 0 deletions
  1. BIN
      chatbot/action/__init__.py
  2. 27
    0
      chatbot/action/actions.py

BIN
chatbot/action/__init__.py View File


+ 27
- 0
chatbot/action/actions.py View File

@@ -0,0 +1,27 @@
1
+# This files contains your custom actions which can be used to run
2
+# custom Python code.
3
+#
4
+# See this guide on how to implement these action:
5
+# https://rasa.com/docs/rasa/custom-actions
6
+
7
+
8
+# This is a simple example for a custom action which utters "Hello World!"
9
+
10
+# from typing import Any, Text, Dict, List
11
+#
12
+# from rasa_sdk import Action, Tracker
13
+# from rasa_sdk.executor import CollectingDispatcher
14
+#
15
+#
16
+# class ActionHelloWorld(Action):
17
+#
18
+#     def name(self) -> Text:
19
+#         return "action_hello_world"
20
+#
21
+#     def run(self, dispatcher: CollectingDispatcher,
22
+#             tracker: Tracker,
23
+#             domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
24
+#
25
+#         dispatcher.utter_message(text="Hello World!")
26
+#
27
+#         return []

Loading…
Cancel
Save