|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from typing import Any, Text, Dict, List |
|
|
|
from rasa_sdk import Action, Tracker |
|
from rasa_sdk.executor import CollectingDispatcher |
|
|
|
|
|
class action_ReversePhoneLookup(Action): |
|
|
|
def name(self) -> Text: |
|
return "action_ReversePhoneLookup" |
|
|
|
def run(self, dispatcher: CollectingDispatcher, |
|
tracker: Tracker, |
|
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: |
|
|
|
dispatcher.utter_message(text="ๅๆฅไพ้ป่็") |
|
|
|
return [] |
|
|
|
class action_CallReservationHotline(Action): |
|
|
|
def name(self) -> Text: |
|
return "action_CallReservationHotline" |
|
|
|
def run(self, dispatcher: CollectingDispatcher, |
|
tracker: Tracker, |
|
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: |
|
|
|
dispatcher.utter_message(text="้ ็ดๆไฟฎๆนๆ่่็") |
|
|
|
return [] |
|
|
|
class action_human_handoff(Action): |
|
|
|
def name(self) -> Text: |
|
return "action_human_handoff" |
|
|
|
def run(self, dispatcher: CollectingDispatcher, |
|
tracker: Tracker, |
|
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: |
|
|
|
dispatcher.utter_message(text="ๅ
ถไป่็") |
|
|
|
return [] |
|
|