-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rest of the rasa files
- Loading branch information
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 [] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#### This file contains tests to evaluate that your bot behaves as expected. | ||
#### If you want to learn more, please see the docs: https://rasa.com/docs/rasa/testing-your-assistant | ||
|
||
stories: | ||
- story: happy path 1 | ||
steps: | ||
- user: | | ||
hello there! | ||
intent: greet | ||
- action: utter_greet | ||
- user: | | ||
amazing | ||
intent: mood_great | ||
- action: utter_happy | ||
|
||
- story: happy path 2 | ||
steps: | ||
- user: | | ||
hello there! | ||
intent: greet | ||
- action: utter_greet | ||
- user: | | ||
amazing | ||
intent: mood_great | ||
- action: utter_happy | ||
- user: | | ||
bye-bye! | ||
intent: goodbye | ||
- action: utter_goodbye | ||
|
||
- story: sad path 1 | ||
steps: | ||
- user: | | ||
hello | ||
intent: greet | ||
- action: utter_greet | ||
- user: | | ||
not good | ||
intent: mood_unhappy | ||
- action: utter_cheer_up | ||
- action: utter_did_that_help | ||
- user: | | ||
yes | ||
intent: affirm | ||
- action: utter_happy | ||
|
||
- story: sad path 2 | ||
steps: | ||
- user: | | ||
hello | ||
intent: greet | ||
- action: utter_greet | ||
- user: | | ||
not good | ||
intent: mood_unhappy | ||
- action: utter_cheer_up | ||
- action: utter_did_that_help | ||
- user: | | ||
not really | ||
intent: deny | ||
- action: utter_goodbye | ||
|
||
- story: sad path 3 | ||
steps: | ||
- user: | | ||
hi | ||
intent: greet | ||
- action: utter_greet | ||
- user: | | ||
very terrible | ||
intent: mood_unhappy | ||
- action: utter_cheer_up | ||
- action: utter_did_that_help | ||
- user: | | ||
no | ||
intent: deny | ||
- action: utter_goodbye | ||
|
||
- story: say goodbye | ||
steps: | ||
- user: | | ||
bye-bye! | ||
intent: goodbye | ||
- action: utter_goodbye | ||
|
||
- story: bot challenge | ||
steps: | ||
- user: | | ||
are you a bot? | ||
intent: bot_challenge | ||
- action: utter_iamabot |