Hello, as per documentation i did play around with MS teams integration. Docu writes with an actionserver running and the following in action.py:
import logging
from typing import Dict, Text, Any, List, Union, Optional
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormAction, REQUESTED_SLOT
from rasa_sdk.events import AllSlotsReset, SlotSet, EventType, SessionStarted, ActionExecuted
logger = logging.getLogger(name)
class ActionSessionStart(Action): def name(self) → Text: return “action_session_start”
async def run(
self, dispatcher, tracker: Tracker, domain: Dict[Text, Any]
) -> List[Dict[Text, Any]]:
metadata = tracker.get_slot("session_started_metadata")
# Do something with the metadata
logger.debug(metadata)
# the session should begin with a `session_started` event and an `action_listen`
# as a user message follows
return [SessionStarted(), ActionExecuted("action_listen")]
i should get the metadata (including the UserID).
The log file of the action server shows:
- 2021-06-28 16:38:29 DEBUG rasa_sdk.executor - Received request to run ‘action_session_start’
- 2021-06-28 16:38:29 DEBUG actions.actions - None
- 2021-06-28 16:38:29 DEBUG rasa_sdk.executor - Finished running ‘action_session_start’
Any Idea whats going wrong? Bot is working, actionserver is called and it is exactly like in doku … but not working
- Rasa Version : 2.7.1
- Minimum Compatible Version: 2.6.0
- Rasa SDK Version : 2.7.0
- Rasa X Version : 0.41.1
- Python Version : 3.8.10
- Operating System : macOS-10.16-x86_64-i386-64bit