HI , I made some custom actions for my project , but the responses entered in the custom actions is not uttered by the bot .
I have attached the python code for the custom actions
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
def name (self) -> Text:
def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text,Any]) -> List[Dict[Text, Any]]:
value = tracker.get_slot("area_travel")
if value == 'Domestic':
elif value == 'International':
Hello @Venkat I guess this is same as this thread Facing syntax error with custom action in rasa open source can I politely asked why you open this new thread? as you not satisfied with the assistance and suggestion Chris and I gave you on the above thread link?
Hello @nik202 actually this is a different issue , I’m not facing an error , actually my bot dosn’t reply according to the story written
if you see in the screenshot attached below , the response of the bot after the selection of the button it should reply with another set of buttons . I have also attached the stories file for your review . stories.yml (841 Bytes)
@Venkat I previously suggested you this below solution about same code and again I am sharing you the same.
Class always will be capital
Use template rather then response, if new update is enforce you to use response then fine
I hope you had seen this
@Venkat there is no attachment?
sorry , this is the screenshot
@Venkat Please share the
@Venkat share your domain file for the above screenshot.
Thank you for the help , the above mentioned solution worked .