Filling slots with intents instead of entites using rasa 2.0 forms

Hello, community! Is there a way where I can run a form and instead of extracting entities from the user text I collect the intent of the user and store it inside a slot?

Example: I have a form running, and bot says

utter_ask_say_something:
- say something

The user says “Hello”, it classifies as intent greet and then I store the intent name inside my slot.

@mfkarch, you can use tracker method to do this.

forms:
 my_form:
  my_slot:
  - type: from_trigger_intent
    value: greet
    intent: greet

Can you also tell me if it is another way around it or not? Also how can we use tracker to get current intent when form is active?

tracker.latest_message["intent"].get("name")

For more info: Tracker