Hi @akelad I’ve tried:
class TestActionSchedule(Action):
def name(self):
return 'action_test_schedule'
def run(self, dispatcher, tracker, domain):
return [ReminderScheduled(action_name='action_test_notify')]
class TestActionNotify(Action):
def name(self):
return 'action_test_notify'
def run(self, dispatcher, tracker, domain):
dispatcher.utter_message('test notify')
return []
Then tried put a reminder:
POST http://localhost:5005/conversations/abc123/tracker/events
{
"event": "reminder",
"action": "action_test_schedule",
"date_time": "2019-06-17T16:57:10.128172",
"name": "my_reminder",
"kill_on_user_msg": true
}
In logs:
2019-06-17 16:56:04 DEBUG rasa.core.tracker_store - Recreating tracker for id 'abc123'
Also, I’ve tried return just ReminderScheduled()
in action_test_notify
, and call this action via event, but no success (same message in log)
Sorry, but I still can’t figure out how this should work. Do you have an example?