Slot filling manually

Is there any way to fill the slots manually . Like tracker.set_slot(“first_name”) = first_name

You can return an event of the type SlotSet in a custom action. See this part of the documentation: Events