Hey @ricwo ,
I tried this on telegram , but dosn’t work.
Do you have a working example for this?
Below is my actions.py file. I have added the
I have also included
- action_session_start in my
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.forms import FormAction
from rasa_sdk.events import SlotSet, SessionStarted, ActionExecuted, EventType
def name(self) -> Text:
return "action_session_start" # This name function returns the name of the custom action.Here is is action_session_start
def fetch_slots(tracker: Tracker) -> List[EventType]:
"""Collect slots that contain the user's name and phone number."""
slots = 
for key in ("name", "email", "pincode", "mobnumber"):
value = tracker.get_slot(key)
if value is not None: # this is how to check if slot value is filled or not.
def apply_to(self, tracker: "DialogueStateTracker") -> None:
# noinspection PyProtectedMember
async def run(
domain: Dict[Text, Any],
) -> List[EventType]:
# the session should begin with a `session_started` event
events = [SessionStarted()]
# # any slots that should be carried over should come after the
# # `session_started` event
# # an `action_listen` should be added at the end as a user message follows
But Still it dosn’t seem to start the conversation with
I ran the command
rasa run actions -p 5002 in one terminal and
Using ngrok to connect to telegram.( ngrok is running in port 5005, so earlier I got error as action server can’t be started.)
All telegram configutations are done and set up the bot in telegram as well.
Here are my logs…
I can’t seem to figure it out…Could you please help ?
@Saul Any luck ??