diff --git a/kairon/actions/definitions/database.py b/kairon/actions/definitions/database.py index 9a085fb26..59bba4a59 100644 --- a/kairon/actions/definitions/database.py +++ b/kairon/actions/definitions/database.py @@ -8,7 +8,7 @@ from kairon.actions.definitions.base import ActionsBase from kairon.shared.actions.data_objects import ActionServerLogs, DatabaseAction from kairon.shared.actions.exception import ActionFailure -from kairon.shared.actions.models import ActionType, DbQueryValueType +from kairon.shared.actions.models import ActionType from kairon.shared.actions.utils import ActionUtility from kairon.shared.constants import KaironSystemSlots from kairon.shared.vector_embeddings.db.factory import VectorEmbeddingsDbFactory @@ -64,6 +64,7 @@ async def execute(self, dispatcher: CollectingDispatcher, tracker: Tracker, doma failure_response = 'I have failed to process your request.' filled_slots = {} msg_logger = [] + request_body = None try: vector_action_config = self.retrieve_config() @@ -101,6 +102,7 @@ async def execute(self, dispatcher: CollectingDispatcher, tracker: Tracker, doma action=self.name, config=vector_action_config, sender=tracker.sender_id, + payload=str(request_body) if request_body else None, response=str(response) if response else None, bot_response=str(bot_response) if bot_response else None, messages=msg_logger,