Ejemplo n.º 1
0
def test_dispatcher_utter_custom_message(default_dispatcher, capsys):
    elements = [
        Element(title="hey there",
                subtitle="welcome",
                buttons=[
                    Button(title="Btn1", payload="_btn1"),
                    Button(title="Btn2", payload="_btn2")
                ]),
        Element(title="anoter title",
                subtitle="another subtitle",
                buttons=[
                    Button(title="Btn3", payload="_btn3"),
                    Button(title="Btn4", payload="_btn4")
                ])
    ]
    default_dispatcher.utter_custom_message(*elements)
    out, _ = capsys.readouterr()
    assert "hey there" in out
    assert "welcome" in out
    assert "Btn1" in out
    assert "Btn2" in out
    assert "anoter title" in out
    assert "another subtitle" in out
    assert "Btn3" in out
    assert "Btn4" in out
Ejemplo n.º 2
0
def test_dispatcher_utter_custom_message(default_dispatcher_collecting):
    elements = [
        Element(title="hey there",
                subtitle="welcome",
                buttons=[
                    Button(title="Btn1", payload="/btn1"),
                    Button(title="Btn2", payload="/btn2")
                ]),
        Element(title="another title",
                subtitle="another subtitle",
                buttons=[
                    Button(title="Btn3", payload="/btn3"),
                    Button(title="Btn4", payload="/btn4")
                ])
    ]
    default_dispatcher_collecting.utter_custom_message(*elements)
    collected = default_dispatcher_collecting.output_channel.messages
    assert len(collected) == 2
    assert collected[0]['text'] == "hey there : welcome"
    assert collected[0]['buttons'] == [{
        'payload': u'/btn1',
        'title': u'Btn1'
    }, {
        'payload': u'/btn2',
        'title': u'Btn2'
    }]
    assert collected[1]['text'] == "another title : another subtitle"
    assert collected[1]['buttons'] == [{
        'payload': u'/btn3',
        'title': u'Btn3'
    }, {
        'payload': u'/btn4',
        'title': u'Btn4'
    }]
Ejemplo n.º 3
0
def test_dispatcher_utter_buttons(default_dispatcher, capsys):
    buttons = [
        Button(title="Btn1", payload="_btn1"),
        Button(title="Btn2", payload="_btn2")
    ]
    default_dispatcher.utter_button_message("my message", buttons)
    out, _ = capsys.readouterr()
    assert "my message" in out
    assert "Btn1" in out
    assert "Btn2" in out
Ejemplo n.º 4
0
def test_dispatcher_utter_buttons(default_dispatcher_collecting):
    buttons = [
        Button(title="Btn1", payload="/btn1"),
        Button(title="Btn2", payload="/btn2")
    ]
    default_dispatcher_collecting.utter_button_message("my message", buttons)
    collected = default_dispatcher_collecting.output_channel.messages
    assert len(collected) == 3
    assert collected[0][1] == "my message"
    assert collected[1][1] == "1: Btn1 (/btn1)"
    assert collected[2][1] == "2: Btn2 (/btn2)"
Ejemplo n.º 5
0
def test_dispatcher_utter_buttons(default_dispatcher_collecting):
    buttons = [
        Button(title="Btn1", payload="/btn1"),
        Button(title="Btn2", payload="/btn2")
    ]
    default_dispatcher_collecting.utter_button_message("my message", buttons)
    collected = default_dispatcher_collecting.output_channel.messages
    assert len(collected) == 1
    assert collected[0]['text'] == "my message"
    assert collected[0]['data'] == [
        {'payload': u'/btn1', 'title': u'Btn1'},
        {'payload': u'/btn2', 'title': u'Btn2'}
    ]
Ejemplo n.º 6
0
    def run(self, dispatcher, tracker, domain):

        department = None
        question = None
        buttons = None
        response = None
        loc = tracker.get_slot('answer')


        if loc == 'nope':
            department = "child health and illness"
            buttons = [
                Button(title="Prof. Dr. Musa Kazim Caglar", payload="/btn1"),
                Button(title="Prof. Dr. Suleyman Kalman", payload="/btn2"),
                Button(title="Prof. Dr. Hatice Emel Ozyurek", payload="/btn3"),
                Button(title="Yar. Doc. Dr. Pakize Elif Alkisn", payload="/btn4"),
                Button(title="Uzm. Dr. Mustafa Yucel Kiziltan", payload="/btn5"),
                Button(title="Uzm. Dr. Gokalp Basbozkurt", payload="/btn6"),
                Button(title="Uzm. Dr. Hafsa Ucur", payload="/btn7"),
                Button(title="Uzm. Dr. Husniye Altan", payload="/btn8"),
                Button(title="Uzm. Dr. Sarkhan Elbayiyev", payload="/btn9"),
                Button(title="Uzm. Dr. Shahin Guliyev", payload="/btn10")
            ]
        else:
            question = "Diger hekimler hakkinda bilgi alabilmek icin musteri temsilcimiz ile gorusunuz."



        if response is not None:
            dispatcher.utter_message(response)
        if question is not None:
            dispatcher.utter_message(question)

        if buttons is not None:
            dispatcher.utter_button_message(" ", buttons)

        retval = list()
        if department is not None:
            retval.append(SlotSet('department', department))
        if loc is not None:
            retval.append(SlotSet('answer', loc))

        return retval
Ejemplo n.º 7
0
def test_logging_of_bot_utterances_on_tracker(default_processor,
                                              default_dispatcher,
                                              default_agent):
    sender_id = "test_logging_of_bot_utterances_on_tracker"
    tracker = default_agent.tracker_store.get_or_create_tracker(sender_id)
    buttons = [
        Button(title="Btn1", payload="_btn1"),
        Button(title="Btn2", payload="_btn2")
    ]

    default_dispatcher.utter_template("utter_goodbye")
    default_dispatcher.utter_attachment("http://my-attachment")
    default_dispatcher.utter_message("my test message")
    default_dispatcher.utter_button_message("my message", buttons)

    assert len(default_dispatcher.latest_bot_messages) == 4

    default_processor._log_bot_utterances_on_tracker(tracker,
                                                     default_dispatcher)
    assert not default_dispatcher.latest_bot_messages
Ejemplo n.º 8
0
def test_dispatcher_utter_custom_message(default_dispatcher_collecting):
    elements = [
        Element(title="hey there",
                subtitle="welcome",
                buttons=[
                    Button(title="Btn1", payload="/btn1"),
                    Button(title="Btn2", payload="/btn2")
                ]),
        Element(title="another title",
                subtitle="another subtitle",
                buttons=[
                    Button(title="Btn3", payload="/btn3"),
                    Button(title="Btn4", payload="/btn4")
                ])
    ]
    default_dispatcher_collecting.utter_custom_message(*elements)
    collected = default_dispatcher_collecting.output_channel.messages
    assert len(collected) == 6
    assert collected[0][1] == "hey there : welcome"
    assert collected[1][1] == "1: Btn1 (/btn1)"
    assert collected[2][1] == "2: Btn2 (/btn2)"
    assert collected[3][1] == "another title : another subtitle"
    assert collected[4][1] == "1: Btn3 (/btn3)"
    assert collected[5][1] == "2: Btn4 (/btn4)"
Ejemplo n.º 9
0
    def run(self, dispatcher, tracker, domain):

        loc = tracker.get_slot('info')
        department = None
        buttons = None
        response = None

        # response = '#' + json.dumps(aaa) + '#'

        if loc == 'acrep socks':
            response = randevu_yok

        elif loc == 'bee sting':
            response = randevu_yok

        elif loc == 'bug bite':
            response = randevu_yok

        elif loc == 'freeze':
            response = randevu_yok

        elif loc == 'general body trauma':
            response = randevu_yok

        elif loc == 'follow-up of serum':
            response = randevu_yok

        elif loc == 'injection':
            response = randevu_yok

        elif loc == 'snaking':
            response = randevu_yok

        elif loc == 'neuropathic pain':
            response = cm1
            department = "algology"
            buttons = [Button(title="Prof. Dr. Oznur Oken", payload="/Dr1")]

        elif loc == 'chronic pain':
            response = cm1
            department = "algology"
            buttons = [Button(title="Prof. Dr. Oznur Oken", payload="/Dr1")]

        elif loc == 'implant':
            response = durum3 + randevu
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'prosthesis':
            response = durum3 + bolum
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'endodontics':
            response = durum3 + bolum
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'orthodontics':
            response = durum3 + bolum
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'jaw surgery':
            response = durum3 + bolum
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'peridontology, implantology':
            response = durum3 + bolum
            department = "mouth and dental health"
            buttons = [
                Button(title="There is not available doctor.", payload="/Dr1")
            ]

        elif loc == 'diabetes (TIP1, TIP2) nutrition':
            response = cm2 + asd
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'obesity feeding':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'metabolic diseases, heart disease nutrition':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'obesity and diabetes nutrition':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition in metabolic syndrome':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition in heart diseases':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition in polystic over syndrome':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition for pregnant and lactating mothers':
            response = cm2
            department = "nutrition and diet"
            buttons = [Button(title="Dyt. Gaye Baskurt", payload="/Dr1")]

        elif loc == 'Nutrition for children over 10':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'adolescent feeding':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition for individuals who want to gain weight':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition in oncology patients':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'constipation / gas-bloating / reflux (digestive system diseases) nutrition':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'nutrition in eating disorders':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'corporate nutrition':
            response = cm2
            department = "nutrition and diet"
            buttons = [
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr1"),
                Button(title="Dyt. Gaye Baskurt", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'diagnosis and treatment services for brain and spinal cord diseases':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'belly button':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'neck hernia':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'brain and spinal tumors':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'celebral hemorrhage':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'complaints about brain vessels':
            response = cm1
            department = "brain and neurosurgery (neurosurgery)"
            buttons = [
                Button(title="Prof. Dr. Ethem Beskonakli", payload="/Dr1"),
                Button(title="Uzm. Dr. Cetin Akyol", payload="/Dr2"),
                Button(title="Doc. Dr. Gulsah Bademci", payload="/Dr3")
            ]

        elif loc == 'checkup':
            response = cm1
            department = "checkup"
            buttons = [
                Button(title="Uzm. Dr. Sevgi Karabuga", payload="/Dr1"),
                Button(title="Uzm. Dr. Sercan Cansaran", payload="/Dr2")
            ]

        elif loc == 'allianz insurance family medicine':
            response = cm
            department = "checkup"
            buttons = [
                Button(title="Doc. Dr. Reskan Altun", payload="/Dr1"),
                Button(title="Doc. Dr. Beril Akman", payload="/Dr2")
            ]

        elif loc == '(0-17 years), from birth to adulthood until adulthood, is the department that applies diagnosis and treatment methods of surgical diseases that are related to congenital and / or acquired respiratory, digestive and excretory systems':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'circumcision':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'gobek fitigi':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'inguinal hernia':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'innervated testis':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'newborn surgical diseases':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            question = "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'laparoscopic interventions in children':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'pediatric thoracic surgeon':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'childhood urology':
            response = cm1 + "\n" + "Cocuk sagligi ve hastaliklari olarak da kabulunuz yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'child health and illness':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'fabry':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'juvenil idiyopatik atrit':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'mumps':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'constipation':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'measles':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'rubella':
            response = cm1 + "\n" + "Diger hekimlere de yonlendırme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'red':
            response = cm1 + "\n" + "Diger hekimlere de yonlendirme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'diphtheria':
            response = cm1 + "\n" + "Diger hekimlere de yonlendirme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'neurofibromatosis':
            response = cm1 + "\n" + "Diger hekimlere de yonlendirme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'rickets':
            response = cm1 + "\n" + "Diger hekimlere de yonlendirme yapilabilir. Istiyor musunuz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'growth and development of the baby (social / mental / speech and movement)':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'development of risky babies':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'safe toys and games suitable for development':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'adjustment of eating / sleeping regimen and toilet habit in children':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'arrangement of relations between siblings':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'behavioral disorders (lowering, nail-eating, finger sucking, irritability, stubbornness, etc.)':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'to determine the best age for starting a child\'s nursery or primary school':
            response = durum4 + "\n" + "Uygun doktor bulunmamaktadır."
            department = "child development"

        elif loc == 'child blood diseases, anemia':
            response = cm1 + "\n" + "16 yasindan buyuk cocuklar icin yetiskin hematolojiye randevu verilebilir. Ister misiniz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'childhood cancers':
            response = cm1 + "\n" + "16 yasindan buyuk cocuklar icin yetiskin hematolojiye randevu verilebilir. Ister misiniz?"
            buttons = [
                Button(title="yes", payload="/Dr1"),
                Button(title="no", payload="/Dr2")
            ]

        elif loc == 'congenital heart diseases':
            response = durum4

        elif loc == 'adolescent and adult age-related heart diseases':
            response = durum4

        elif loc == 'rheumatic heart diseases':
            response = durum4

        elif loc == 'interventional treatment of pediatric cardiology (transcatheter closure of congenital heart defects, balloon valvuloplasty and angioplasty)':
            response = durum4

        elif loc == 'None':
            response = durum4

        elif loc == 'None':
            response = durum4

        elif loc == 'child-adolescent psychodynamic-oriented psychotherapy':
            response = cm2

        elif loc == 'group therapy':
            response = cm2

        elif loc == 'psychodrama':
            response = cm2

        elif loc == 'lack of attention':
            response = cm2

        elif loc == 'hyperactivity':
            response = cm2

        elif loc == 'childhood traumas':
            response = cm2

        elif loc == 'asthma and allergy diseases':
            response = cm2

        elif loc == 'asthma':
            response = cm2

        elif loc == 'whistling children':
            response = cm2

        elif loc == 'allergic rhinitis':
            response = cm2

        elif loc == 'eye allergy':
            response = cm2

        elif loc == 'urticaria':
            response = cm2

        elif loc == 'eczema (atopic dermatitis)':
            response = cm2

        elif loc == 'drug allergies':
            response = cm2

        elif loc == 'bee allergy':
            response = cm2

        elif loc == 'hereditary angioedema':
            response = cm1

        elif loc == 'food allergies (cow|\'s milk allergy and other food allergies)':
            response = cm1

        elif loc == 'diseases of immunology':
            response = cm1

        elif loc == 'immunodeficiencies (immunodeficiency)':
            response = cm1

        elif loc == 'infected children':
            response = cm1

        elif loc == 'respiratory tract diseases':
            response = cm1

        elif loc == 'recurrent lung infections':
            response = cm1

        elif loc == 'cystic fibrosis':
            response = cm

        elif loc == 'bronchiectasis':
            response = cm1

        elif loc == 'chronic lung diseases':
            response = cm1

        elif loc == 'sleep apnea problems':
            response = cm1

        elif loc == 'skin prick test (allergy tests)':
            response = cm1

        elif loc == 'patch test (skin patch test)':
            response = cm1

        elif loc == 'pulmonary function tests':
            response = cm1

        elif loc == 'drug allergy tests':
            response = cm1

        elif loc == 'nitrate nitric oxide measurement':
            response = cm1

        elif loc == 'sweat test':
            response = cm1

        elif loc == 'Pediatric Kidney Diseases / Urinary tract problems / Urinary incontinence problems / Mediterranean fever / Kidney stones in children (urology if surgery is needed) / Protein leaking / Night abduction / Hypertension':
            response = cm1

        elif loc == 'Rheumatoid arthritis / vasculitis vasculitis':
            response = cm1

        elif loc == 'a major part of the adult patient group is the main chapter on the diagnosis and resolution of internal health problems':
            response = cm1

        elif loc == 'high fever':
            response = cm1

        elif loc == 'weakness':
            response = cm1

        elif loc == 'abdominal pain':
            response = cm1

        elif loc == 'diarrhea':
            response = cm1

        elif loc == 'high cholesterol':
            response = cm1

        elif loc == 'bruising without any reason in the body':
            response = cm1

        elif loc == 'flu':
            response = cm1

        elif loc == 'hypertension':
            response = cm1

        elif loc == 'sweating':
            response = cm

        elif loc == 'nausea':
            response = cm

        elif loc == 'evaluation of blood results':
            response = cm

        if response is not None:
            dispatcher.utter_message(response)
        if buttons is not None:
            dispatcher.utter_button_message(" ", buttons)

        retval = []
        if loc is not None:
            retval.append(SlotSet('info', loc))
        if department is not None:
            retval.append(SlotSet('department', department))
        return retval
Ejemplo n.º 10
0
    def run(self, dispatcher, tracker, domain):

        loc = tracker.get_slot('department')

        if loc == 'algology':
            buttons = [Button(title="Prof. Dr. Oznur Oken", payload="/Dr1")]

        elif loc == 'brain and neurosurgery':
            buttons = [
                Button(title="Doc. Dr. Gulsah Bademci", payload="/btn1"),
                Button(title="Doc. Dr. Suat CANBAY", payload="/btn2")
            ]

        elif loc == 'child hematology':
            buttons = [
                Button(title="Prof. Dr. Hatice Emel Ozyurek", payload="/btn1")
            ]

        elif loc == 'child nephrology':
            buttons = [
                Button(title="Prof. Dr. Suleyman Kalman", payload="/btn1")
            ]

        elif loc == 'child health and illness':
            buttons = [
                Button(title="Prof. Dr. Musa Kazim Caglar", payload="/btn1"),
                Button(title="Prof. Dr. Suleyman Kalman", payload="/btn2"),
                Button(title="Prof. Dr. Hatice Emel Ozyurek", payload="/btn3"),
                Button(title="Yar. Doc. Dr. Pakize Elif Alkisn",
                       payload="/btn4"),
                Button(title="Uzm. Dr. Mustafa Yucel Kiziltan",
                       payload="/btn5"),
                Button(title="Uzm. Dr. Gokalp Basbozkurt", payload="/btn6"),
                Button(title="Uzm. Dr. Hafsa Ucur", payload="/btn7"),
                Button(title="Uzm. Dr. Husniye Altan", payload="/btn8"),
                Button(title="Uzm. Dr. Sarkhan Elbayiyev", payload="/btn9"),
                Button(title="Uzm. Dr. Shahin Guliyev", payload="/btn10")
            ]
        elif loc == 'dermatology':
            buttons = [
                Button(title="Uzm. Dr. Aylin Gozubuyukogullari",
                       payload="/Dr1"),
                Button(title="Uzm. Dr. Yesim Akpinar Kara", payload="/Dr2")
            ]
        elif loc == 'diet policlinic':
            buttons = [
                Button(title="Uzm. Dyt. Gaye Baskurt", payload="/Dr1"),
                Button(title="Dyt. Deniz Ozdemir", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'endocrinology':
            buttons = [Button(title="Prof. Dr. Serdar Guler", payload="/Dr1")]

        elif loc == 'infectious diseases':
            buttons = [
                Button(title="Uzm. Dr. Mine Isik Arigun", payload="/Dr1")
            ]

        elif loc == 'physical therapy and rehabilitation':
            buttons = [
                Button(title="Prof. Dr. Oznur Oken", payload="/Dr1"),
                Button(title="Uzm. Dr. Beril Ozturan", payload="/Dr2")
            ]

        elif loc == 'gastroenterology':
            buttons = [
                Button(title="Doc. Dr. Reskan Altun", payload="/Dr1"),
                Button(title="Doc. Dr. Yasemin Ozderin Ozin", payload="/Dr2")
            ]

        elif loc == 'general surgery':
            buttons = [
                Button(title="Prof. Dr. Mehmet Mahir Ozmen", payload="/Dr1"),
                Button(title="Yar. Doc. Dr. Cem Emir Guldogan",
                       payload="/Dr2"),
                Button(title="Yar. Doc. Dr. Emre Gundogdu", payload="/Dr3")
            ]

        elif loc == 'chest diseases':
            buttons = [Button(title="Prof. Dr. Ugur Gonullu", payload="/Dr1")]

        elif loc == 'eye diseases':
            buttons = [Button(title="Op. Dr. Samim Ozdes", payload="/Dr1")]

        elif loc == 'hematology policlinic':
            buttons = [Button(title="Prof. Dr. Oral Nevruz", payload="/Dr1")]

        elif loc == 'internal diseases':
            buttons = [
                Button(title="Doc. Dr. Beril Akman", payload="/Dr1"),
                Button(title="Uzm. Dr. Sercan Cansaran", payload="/Dr2"),
                Button(title="Uzm. Dr. Sevgi Karabuga", payload="/Dr3"),
                Button(title="Yar. Doc. Dr. Gokhan Celbek", payload="/Dr4")
            ]

        elif loc == 'gynecology and Obstetrics':
            buttons = [
                Button(title="Yar. Doc. Dr. Muberra Namli Kalem",
                       payload="/Dr1"),
                Button(title="Yar. Doc. Dr. Coskun Simsir", payload="/Dr2"),
                Button(title="Prof. Dr. Ali Ergun", payload="/Dr3"),
                Button(title="Doc. Dr. Korhan Kahraman", payload="/Dr4"),
                Button(title="Doc. Dr. Turgut Var", payload="/Dr5"),
                Button(title="Doc. Dr. Turkan Ornek Gulpinar", payload="/Dr6"),
                Button(title="Op. Dr. Asli Yuceturk", payload="/Dr7"),
                Button(title="Op. Dr. Ebru Yuce", payload="/Dr8"),
                Button(title="Prof. Dr. Timur Gurgan", payload="/Dr9")
            ]

        elif loc == 'cardiac surgery':
            buttons = [
                Button(title="Prof. Dr. Erol Sener", payload="/Dr1"),
                Button(title="Yar. Doc. Dr. Emre Boysan", payload="/Dr2"),
                Button(title="Yar. Doc. Renda Circi", payload="/Dr3")
            ]

        elif loc == 'cardiology':
            buttons = [
                Button(title="Prof. Dr. Erdogan Ilkay", payload="/Dr1"),
                Button(title="Doc. Dr. Alper Canbay", payload="/Dr2"),
                Button(title="Uzm. Dr. Cigdem Koca Tari", payload="/Dr3"),
                Button(title="Uzm. Dr. Erol Kalender", payload="/Dr4")
            ]

        elif loc == 'ENT diseases':
            buttons = [
                Button(title="Prof. Dr. Ali Altuntas", payload="/Dr1"),
                Button(title="Prof. Dr. Serdar Karahatay", payload="/Dr2"),
                Button(title="Yar. Doc. Dr. Canset Aydin", payload="/Dr3")
            ]

        elif loc == 'nephrology':
            buttons = [Button(title="Doc. Dr. Beril Akman", payload="/Dr1")]

        elif loc == 'neurology':
            buttons = [
                Button(title="Prof. Dr. Mehmet Zulkuf Onal", payload="/Dr1"),
                Button(title="Yar. Doc. Dr. Akcay Ovunc Ozon", payload="/Dr2")
            ]

        elif loc == 'orthopedics and traumatology':
            buttons = [
                Button(title="Yar. Doc. Dr. Ugur Gonc", payload="/Dr1"),
                Button(title="Op. Dr. Mesut Atabek", payload="/Dr2"),
                Button(title="Prof. Dr. levent Celebi", payload="/Dr3")
            ]

        elif loc == 'plastic surgery':
            buttons = [
                Button(title="Op. Dr. Ergin Isik", payload="/Dr1"),
                Button(title="Op. Dr. Serdar Duzgun", payload="/Dr2")
            ]

        elif loc == 'psychiatry':
            buttons = [Button(title="Prof. Dr. Ali Bozkurt", payload="/Dr1")]

        elif loc == 'psychologist':
            buttons = [Button(title="Psk. Ezgi Kılınc", payload="/Dr1")]

        elif loc == 'rheumatology':
            buttons = [
                Button(title="Doc. Dr. Orhan Kucuksahin", payload="/Dr1")
            ]

        elif loc == 'medical oncology':
            buttons = [
                Button(title="Prof. Dr. Fikret Arpaci", payload="/Dr1"),
                Button(title="Doc. Dr. Gokhan Erdem", payload="/Dr2")
            ]

        elif loc == 'urology':
            buttons = [
                Button(title="Musait doktor bulunmamaktadir...",
                       payload="/Dr1")
            ]

        dispatcher.utter_button_message("Doctors", buttons)

        response = loc

        return [SlotSet('doctor', response)]
Ejemplo n.º 11
0
    def run(self, dispatcher, tracker, domain):

        loc = tracker.get_slot('answer')
        department = tracker.get_slot('department')
        # question = "Hangi departmandan randevu almak istersiniz?"
        # response = tracker.current_slot_values()
        buttons = []

        if loc == 'nope':
            department = "child surgeon"
            buttons = [
                Button(title="Doc. Dr. Mustafa Kemal Aslan", payload="/btn1")
            ]
        elif loc == 'yes':
            department = "child health and illness"
            buttons = [
                Button(title="Prof. Dr. Musa Kazim Caglar", payload="/btn1"),
                Button(title="Prof. Dr. Suleyman Kalman", payload="/btn2"),
                Button(title="Prof. Dr. Hatice Emel Ozyurek", payload="/btn3"),
                Button(title="Yar. Doc. Dr. Pakize Elif Alkisn",
                       payload="/btn4"),
                Button(title="Uzm. Dr. Mustafa Yucel Kiziltan",
                       payload="/btn5"),
                Button(title="Uzm. Dr. Gokalp Basbozkurt", payload="/btn6"),
                Button(title="Uzm. Dr. Hafsa Ucur", payload="/btn7"),
                Button(title="Uzm. Dr. Husniye Altan", payload="/btn8"),
                Button(title="Uzm. Dr. Sarkhan Elbayiyev", payload="/btn9"),
                Button(title="Uzm. Dr. Shahin Guliyev", payload="/btn10")
            ]

        # dispatcher.utter_message(response)
        dispatcher.utter_button_message(" ", buttons)

        retval = []
        if department is not None:
            retval.append(SlotSet('department', department))
        if loc is not None:
            retval.append(SlotSet('answer', loc))

        return retval
Ejemplo n.º 12
0
    def run(self, dispatcher, tracker, domain):

        loc = tracker.get_slot('department')
        #response = tracker.current_slot_values()
        # response = '#' + json.dumps(aaa) + '#'

        if loc == 'algology':
            #response = "Prof. Dr. Öznur Öken"
            buttons = [Button(title="Prof. Dr. Öznur Öken", payload="/Dr1")]

        elif loc == 'brain and neurosurgery':
            #response = "1- Doç. Dr. Gülşah Bademci\n2- Doç. Dr. Suat CANBAY"
            buttons = [
                Button(title="Doç. Dr. Gülşah Bademci", payload="/btn1"),
                Button(title="Doç. Dr. Suat CANBAY", payload="/btn2")
            ]

        elif loc == 'child hematology':
            #response = "Prof. Dr. Hatice Emel Özyürek"
            buttons = [
                Button(title="Prof. Dr. Hatice Emel Özyürek", payload="/btn1")
            ]

        elif loc == 'child nephrology':
            #response = "Prof. Dr. Süleyman Kalman"
            buttons = [
                Button(title="Prof. Dr. Süleyman Kalman", payload="/btn1")
            ]

        elif loc == 'child health and illness':
            #response = "1- Prof. Dr. Musa Kazım Çağlar\n2- Prof. Dr. Süleyman Kalman\n3- Prof. Dr. Hatice Emel Özyürek\n4- Yar. Doç. Dr. Pakize Elif Alkış\n5- Uzm. Dr. Mustafa Yücel Kızıltan\n6- Uzm. Dr. Gökalp Başbozkurt\n7- Uzm. Dr. Hafsa Uçur\n8- Uzm. Dr. Hüsniye Altan\n 9- Uzm. Dr. Sarkhan Elbayıyev\n 10- Uzm. Dr. Shahın Guliyev"
            buttons = [
                Button(title="Prof. Dr. Musa Kazım Çağlar", payload="/btn1"),
                Button(title="Prof. Dr. Süleyman Kalman", payload="/btn2"),
                Button(title="Prof. Dr. Hatice Emel Özyürek", payload="/btn3"),
                Button(title="Yar. Doç. Dr. Pakize Elif Alkışn",
                       payload="/btn4"),
                Button(title="Uzm. Dr. Mustafa Yücel Kızıltan",
                       payload="/btn5"),
                Button(title="Uzm. Dr. Gökalp Başbozkurt", payload="/btn6"),
                Button(title="Uzm. Dr. Hafsa Uçur", payload="/btn7"),
                Button(title="Uzm. Dr. Hüsniye Altan", payload="/btn8"),
                Button(title="Uzm. Dr. Sarkhan Elbayıyev", payload="/btn9"),
                Button(title="Uzm. Dr. Shahın Guliyev", payload="/btn10")
            ]
        elif loc == 'dermatology':
            #response = "1- Uzm. Dr. Aylin Gözübüyükoğulları\n2- Uzm. Dr. Yeşim Akpınar Kara"
            buttons = [
                Button(title="Uzm. Dr. Aylin Gözübüyükoğulları",
                       payload="/Dr1"),
                Button(title="Uzm. Dr. Yeşim Akpınar Kara", payload="/Dr2")
            ]
        elif loc == 'diet policlinic':
            #response = "1- Uzm. Dyt. Gaye Başkurt\n2- Dyt. Deniz Özdemir\n3- Dyt. Halime Besler"
            buttons = [
                Button(title="Uzm. Dyt. Gaye Başkurt", payload="/Dr1"),
                Button(title="Dyt. Deniz Özdemir", payload="/Dr2"),
                Button(title="Dyt. Halime Besler", payload="/Dr3")
            ]

        elif loc == 'endocrinology':
            #response = "Prof. Dr. Serdar Güler"
            buttons = [Button(title="Prof. Dr. Serdar Güler", payload="/Dr1")]

        elif loc == 'infectious diseases':
            #response = "Uzm. Dr. Mine Işık Arıgün"
            buttons = [
                Button(title="Uzm. Dr. Mine Işık Arıgün", payload="/Dr1")
            ]

        elif loc == 'physical therapy and rehabilitation':
            #response = "1- Prof. Dr. Öznur Öken\n2- Uzm. Dr. Beril Özturan"
            buttons = [
                Button(title="Prof. Dr. Öznur Öken", payload="/Dr1"),
                Button(title="Uzm. Dr. Beril Özturan", payload="/Dr2")
            ]

        elif loc == 'gastroenterology':
            #response = "1- Doç. Dr. Reskan Altun\n2- Doç. Dr. Yasemin Özderin Özin"
            buttons = [
                Button(title="Doç. Dr. Reskan Altun", payload="/Dr1"),
                Button(title="Doç. Dr. Yasemin Özderin Özin", payload="/Dr2")
            ]

        elif loc == 'general surgery':
            #response = "1- Prof. Dr. Mehmet Mahir Özmen\n2- Yar. Doç. Dr. Cem Emir Güldoğan\n3- Yar. Doç. Dr. Emre Gündoğdu"
            buttons = [
                Button(title="Prof. Dr. Mehmet Mahir Özmen", payload="/Dr1"),
                Button(title="Yar. Doç. Dr. Cem Emir Güldoğan",
                       payload="/Dr2"),
                Button(title="Yar. Doç. Dr. Emre Gündoğdu", payload="/Dr3")
            ]

        elif loc == 'chest diseases':
            #response = "Prof. Dr. Uğur Gönüllü"
            buttons = [Button(title="Prof. Dr. Uğur Gönüllü", payload="/Dr1")]

        elif loc == 'eye diseases':
            #response = "Op. Dr. Samim Özdeş"
            buttons = [Button(title="Op. Dr. Samim Özdeş", payload="/Dr1")]

        elif loc == 'hematology policlinic':
            #response = "Prof. Dr. Oral Nevruz"
            buttons = [Button(title="Prof. Dr. Oral Nevruz", payload="/Dr1")]

        elif loc == 'internal diseases':
            #response = "1- Doç. Dr. Beril Akman\n2- Uzm. Dr. Sercan Cansaran\n3- Uzm. Dr. Sevgi Karabuğa\n4- Yar. Doç. Dr. Gökhan Celbek"
            buttons = [
                Button(title="Doç. Dr. Beril Akman", payload="/Dr1"),
                Button(title="Uzm. Dr. Sercan Cansaran", payload="/Dr2"),
                Button(title="Uzm. Dr. Sevgi Karabuğa", payload="/Dr3"),
                Button(title="Yar. Doç. Dr. Gökhan Celbek", payload="/Dr4")
            ]

        elif loc == 'gynecology and Obstetrics':
            #response = "1- Yar. Doç. Dr. Müberra Namlı Kalem\n2- Yar. Doç. Dr. Coşkun Şimşir\n3- Prof. Dr. Ali Ergün\n4- Doç. Dr. Korhan Kahraman\n5- Doç. Dr. Turgut Var\n6- Doç. Dr. Türkan Örnek Gülpınar\n7- Op. Dr. Aslı Yücetürk\n8- Op. Dr. Ebru Yüce\n9- Prof. Dr. Timur Gürgan"
            buttons = [
                Button(title="Yar. Doç. Dr. Müberra Namlı Kalem",
                       payload="/Dr1"),
                Button(title="Yar. Doç. Dr. Coşkun Şimşir", payload="/Dr2"),
                Button(title="Prof. Dr. Ali Ergün", payload="/Dr3"),
                Button(title="Doç. Dr. Korhan Kahraman", payload="/Dr4"),
                Button(title="Doç. Dr. Turgut Var", payload="/Dr5"),
                Button(title="Doç. Dr. Türkan Örnek Gülpınar", payload="/Dr6"),
                Button(title="Op. Dr. Aslı Yücetürk", payload="/Dr7"),
                Button(title="Op. Dr. Ebru Yüce", payload="/Dr8"),
                Button(title="Prof. Dr. Timur Gürgan", payload="/Dr9")
            ]

        elif loc == 'cardiac surgery':
            #response = "1- Prof. Dr. Erol Şener\n2- Yar. Doç. Dr. Emre Boysan\n2- Yar. Doç. Renda Cırcı"
            buttons = [
                Button(title="Prof. Dr. Erol Şener", payload="/Dr1"),
                Button(title="Yar. Doç. Dr. Emre Boysan", payload="/Dr2"),
                Button(title="Yar. Doç. Renda Cırcı", payload="/Dr3")
            ]

        elif loc == 'cardiology':
            #response = "1- Prof. Dr. Erdoğan İlkay\n2- Doç. Dr. Alper Canbay\n3- Uzm. Dr. Çiğdem Koca Tarı\n4- Uzm. Dr. Erol Kalender"
            buttons = [
                Button(title="Prof. Dr. Erdoğan İlkay", payload="/Dr1"),
                Button(title="Doç. Dr. Alper Canbay", payload="/Dr2"),
                Button(title="Uzm. Dr. Çiğdem Koca Tarı", payload="/Dr3"),
                Button(title="Uzm. Dr. Erol Kalender", payload="/Dr4")
            ]

        elif loc == 'ENT diseases':
            #response = "1- Prof. Dr. Ali Altuntaş\n2- Prof. Dr. Serdar Karahatay\n3- Yar. Doç Dr. Canset Aydın"
            buttons = [
                Button(title="Prof. Dr. Ali Altuntaş", payload="/Dr1"),
                Button(title="Prof. Dr. Serdar Karahatay", payload="/Dr2"),
                Button(title="Yar. Doç Dr. Canset Aydın", payload="/Dr3")
            ]

        elif loc == 'nephrology':
            #response = "Doç. Dr. Beril Akman"
            buttons = [Button(title="Doç. Dr. Beril Akman", payload="/Dr1")]

        elif loc == 'neurology':
            #response = "1- Prof. Dr. Mehmet Zülküf Önal\n2- Yar. Doç. Dr. Akçay Övünç Ozon"
            buttons = [
                Button(title="Prof. Dr. Mehmet Zülküf Önal", payload="/Dr1"),
                Button(title="Yar. Doç. Dr. Akçay Övünç Ozon", payload="/Dr2")
            ]

        elif loc == 'orthopedics and traumatology':
            #response = "1- Yar. Doç. Dr. Uğur Gönç\n2- Op. Dr. Mesut Atabek\n3- Prof. Dr. levent Çelebi"
            buttons = [
                Button(title="Yar. Doç. Dr. Uğur Gönç", payload="/Dr1"),
                Button(title="Op. Dr. Mesut Atabek", payload="/Dr2"),
                Button(title="Prof. Dr. levent Çelebi", payload="/Dr3")
            ]

        elif loc == 'plastic surgery':
            #response = "1- Op. Dr. Ergin Işık\n2- Op. Dr. Serdar Düzgün"
            buttons = [
                Button(title="Op. Dr. Ergin Işık", payload="/Dr1"),
                Button(title="Op. Dr. Serdar Düzgün", payload="/Dr2")
            ]

        elif loc == 'psychiatry':
            #response = "Prof. Dr. Ali Bozkurt"
            buttons = [Button(title="Prof. Dr. Ali Bozkurt", payload="/Dr1")]

        elif loc == 'psychologist':
            #response = "Psk. Ezgi Kılınç"
            buttons = [Button(title="Psk. Ezgi Kılınç", payload="/Dr1")]

        elif loc == 'rheumatology':
            #response = "Doç. Dr. Orhan Küçükşahin"
            buttons = [
                Button(title="Doç. Dr. Orhan Küçükşahin", payload="/Dr1")
            ]

        elif loc == 'medical oncology':
            #response = ["Prof. Dr. Fikret Arpacı", "Doç. Dr. Gökhan Erdem"]
            buttons = [
                Button(title="Prof. Dr. Fikret Arpacı", payload="/Dr1"),
                Button(title="Doç. Dr. Gökhan Erdem", payload="/Dr2")
            ]

        elif loc == 'urology':
            response = "Müsait doktor bulunmamaktadır..."

        #response = "abc\n\nasd"

        response = ""
        # buttons = [
        #     Button(title="Btn1", payload="/btn1"),
        #     Button(title="Btn2", payload="/btn2")
        # ]
        dispatcher.utter_button_message("my message", buttons)
        return [SlotSet('doctor', response)]