How to Create Dynamic Slots Without Mention in domain file

I will try to get Multiple inputs from users only using custom actions. Is it possible without using forms

from rasa_sdk import Action, Tracker

class GetInputsAction(Action): def name(self) → Text: return “get_inputs”

def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
    # Get the user's input for the first slot.
    first_name = input("What is your first name? ")

    # Get the user's input for the second slot.
    last_name = input("What is your last name? ")

    # Do something with the user's inputs.
    print(f"The user's inputs are: {first_name}, {last_name}")

    # Trigger the greet intent.
    tracker.trigger_next_action("greet")

    return []

Like This Its only work in shell i need to use it all channals