Bot custom action replies with duplicate messages

bot is replying the same message multiple times using the custom action

actions.py

domain.yml

policies.yml

Duplicate bot response

action server

Can someone help me understand where i’m going wrong and how to avoid the duplicate messages?

Do a return [UserUtteranceReverted()]

yes using UserUtteranceReverted resolved the issue

But there is a bug in the docs rasa_core.actions.action

It is not from rasa_core.events import UserUtteranceReverted Correct one is from rasa_core_sdk.events import UserUtteranceReverted