How to set slots without using return in the action

Hi all,

I would like to know if there is a way to set slots without using return SetSlot ??

If a use return SetSlot my actual utter__resonse will not take into consideration the new slots.

Help pleeease !!

You can use create a string with the full response and send it, like

response = "Helo " + name + ". How are you?"
dispatcher.utter_message(response)

after that you can use return to set the slots.

Hi @Asmacats, you can always send the utter_ response after the custom action is run as well.