Hello, everyone
I am developing an integration with CRM and need to pass the phone number used in the sender variable, would it be possible to get the value of sender in actions.py?
My code:
def validate_outdoor_seating(
self,
value: Text,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],
) -> Dict[Text, Any]:
"""Validate outdoor_seating value."""
if isinstance(value, str):
if "out" in value:
# convert "out..." to True
return {"outdoor_seating": True}
elif "in" in value:
# convert "in..." to False
return {"outdoor_seating": False}
else:
dispatcher.utter_template("utter_wrong_outdoor_seating", tracker)
# validation failed, set slot to None
return {"outdoor_seating": None}
else:
print(value)
sender = track.sender_id