Exemple #1
0
    def run(self, dispatcher, tracker, domain):
        recipient = tracker.get_slot('email')

        top10 = restaurants.head(10)
        print("got this correct email is {}".format(recipient))
        send_email(recipient, top10)

        dispatcher.utter_message("Have a great day!")
Exemple #2
0
    def run(self, dispatcher, tracker, domain):
        recipient = tracker.get_slot('email')

        top10 = df.head(10)
        print("got this correct")
        send_email(recipient, top10)

        dispatcher.utter_message("Have a great day!")
Exemple #3
0
    def run(self, dispatcher, tracker, domain):
        recipient = tracker.get_slot('email')

        top5 = restaurants.head(5)
        print("got this email id {}".format(recipient))
        send_email(recipient, top5)

        dispatcher.utter_message(
            "Details of the top 5 restuarants have been emailed.")
Exemple #4
0
    def run(self, dispatcher, tracker, domain):

        print("restaurants_found slot is {}".format(tracker.get_slot('restaurants_found')))
        print("all slot values: {}".format(tracker.current_slot_values()))

        recipient = tracker.get_slot('email')
        if recipient is not None:
            top10 = restaurants.head(10)
            print("got this correct email is {}".format(recipient))
            send_email(recipient, top10)
            dispatcher.utter_message("Sure. Mail Sent!")
        else:
            dispatcher.utter_message("Aw snap! Some error occured while sending mail!")
Exemple #5
0
	def run(self, dispatcher, tracker, domain):
		global restaurants
		recipient = tracker.get_slot('email')
		print(recipient)
		loc = tracker.get_slot('location')
		cuisine = tracker.get_slot('cuisine')
		price = tracker.get_slot('price')
		restaurants = results(loc,cuisine,price)
		top10 = restaurants.head(10)
		print("got this correct email is {}".format(recipient))
		send_email(recipient, top10)

		dispatcher.utter_message("Have a great day!")