SimoCanc
(Simone)
March 23, 2021, 9:45am
1
Hi all,
I would like to know which is the simplest way to set a response as chatbot’s first message.
I have tried with:
rules:
- rule: top bot description
conversation_start: true
wait_for_user_input: false
steps:
- action: utter_start
but it doesn’t work.
j.mosig
(Johannes Mosig)
March 23, 2021, 11:46am
2
Hi @SimoCanc
To have the assistant start the conversation, you can use the action_session_start
action.
1 Like
SimoCanc
(Simone)
April 5, 2021, 12:41pm
3
As suggested, I have tried:
class ActionSessionStart(Action):
def name(self) -> Text:
return "action_session_start"
def run(self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]):
events = [SessionStarted()]
say_hello = "Say hello to Xyz, our chatbot"
dispatcher.utter_message(say_hello)
return events
When I run the aforementioned code, I get this error:
[2579] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/conversations/c9c1cb27c0c2492785ada7527fb254bf/tracker?include_events=ALL
’
AttributeError: 'NoneType' object has no attribute 'send_response'
If needed, I can post the entire (very long) error’s log
j.mosig
(Johannes Mosig)
April 12, 2021, 12:41pm
4
SimoCanc
(Simone)
April 12, 2021, 1:29pm
5
Rasa Version : 2.4.3
Rasa SDK Version : 2.4.1
Rasa X Version : None
Python Version : 3.6.12
Operating System : Linux-5.4.0-70-generic-x86_64-with-debian-bullseye-sid
1 Like