Customer Actions "dispatcher.utter_message" not posting to rasa X

Hi,

In the below action. The dispatcher.utter_message not posting to Rasa x. it working fine in rasa shell.

    for key, value in rest['skills'].items():
        skill = value.split(',')
        for tec in skill:
            if sk.lower() in tec.lower():
                Mandate = rest['Mandate'][key]
                role = rest['role'][key]
                print(Mandate, role)
                **dispatcher.utter_message(text=" Name: {}".format(key))**

Please help to find the solution

1 Like