# actions.py from rasa_sdk import Action from rasa_sdk.events import SlotSet import smtplib import requests class ActionSendEmail(Action): def name(self): return "action_send_email" def run(self, dispatcher, tracker, domain): # Simulation in write log in file with open('../log.txt', 'w') as f: f.write("Email sent\n") class ActionGetWeather(Action): def name(self): return "action_get_weather" def run(self, dispatcher, tracker, domain): # Simulation in write log in file with open('../log.txt', 'w') as f: f.write("Wwaether API called\n")