Hi @JiteshGaikwad
I am define my action_welcome like this
class ActionWelcome(Action):
def name(self) -> Text:
return "action_welcome"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
dispatcher.utter_message(text="Hi, I am Gamma. Welcome to MauveStay.")
dispatcher.utter_message(text="What can I help you with today? Choose an option")
dispatcher.utter_message(template="utter_greet")
return []
I want to trigger this action as bot to start the conversation in action_trigger function in JavaScript file provided by you.
If I try to replace action_name as action_welcome
I am getting error like this
2021-01-29 11:29:08 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_welcome’.
2021-01-29 11:29:11 DEBUG rasa.core.processor - Policy prediction ended with events ‘[]’.
2021-01-29 11:29:11 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘mounika’.
2021-01-29 11:29:11 DEBUG rasa.server - Traceback (most recent call last):
File “c:\python38\lib\site-packages\rasa\server.py”, line 843, in execute_action
await app.agent.execute_action(
File “c:\python38\lib\site-packages\rasa\core\agent.py”, line 564, in execute_action
return await processor.execute_action(
File “c:\python38\lib\site-packages\rasa\core\processor.py”, line 341, in execute_action
await self._run_action(action, tracker, output_channel, nlg, prediction)
File “c:\python38\lib\site-packages\rasa\core\processor.py”, line 770, in _run_action
self._log_action_on_tracker(tracker, action, events, prediction)
File “c:\python38\lib\site-packages\rasa\core\processor.py”, line 833, in _log_action_on_tracker
tracker.update(action.event_for_successful_execution(prediction))
File “c:\python38\lib\site-packages\rasa\core\actions\action.py”, line 252, in event_for_successful_execution
self.name(), prediction.policy_name, prediction.max_confidence
File “c:\python38\lib\site-packages\rasa\core\policies\policy.py”, line 487, in max_confidence
return max(self.probabilities, default=0.0)
TypeError: ‘>’ not supported between instances of ‘str’ and ‘float’
2021-01-29 11:29:11 ERROR rasa.server - An unexpected error occurred. Error: ‘>’ not supported between instances of ‘str’ and ‘float’