Create a follow back questions using Gemini Api. Based on the user query I want to fill slots values

I am creating a bot which ask follow up questions based on the previous message. I had call geminin api in custom aciton that will take user message and asked question. I want community help to achieve this. I want to fill slot values text.

class ActionGeminiResponse(Action):

    def name(self) -> Text:
        return "action_gemini_response"
    
    def generate_next_question(self, previous_text: Text, name: Text, high_school: Text, loc: Text) -> Text:
        prompt = f"""
        Please ask the follow-up questions based on the text given.
        I want you to get the required details from the user which include 'full name of deceased person', 'high school', 'location'.
        If user has given any information then don't ask about that details. User has given these details 
        name: {name},
        high school: {high_school},
        location: {loc}.
        You will generate only one question. You need to use a mixed tone which shows emotions as well as professionalism. If any details are provided then do not ask about the same thing.
        """
        response = model.generate_content(prompt)
        return response.text

    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
        
        # print("=============Starting of the dict=====================")
        # print(tracker.latest_message["text"])
        # print("==============Ending of the tracker====================")
        
        latest_message = tracker.latest_message["text"]
        name = tracker.get_slot("name")
        highschool = tracker.get_slot("highschool")
        location = tracker.get_slot("location")
        college = tracker.get_slot("college")

        if not name and not highschool and not location and not college:
            dispatcher.utter_message(text=self.generate_next_question(latest_message, name, highschool, location))
            return []
        elif not highschool and not location and not college:
            dispatcher.utter_message(text=self.generate_next_question(latest_message, name, highschool, location))
            return []
        elif not location and not college:
            dispatcher.utter_message(text=self.generate_next_question(latest_message, name, highschool, location))
            return []
        else:
            dispatcher.utter_message(text=self.generate_next_question(latest_message, name, highschool, location))
            return []
        
        dispatcher.utter_message(text="Sorry I can't find details you're looking for.")
        return []


This is custom action code and I created story liked this:-

- story: Ask information from the user
  steps:
  - intent: greet
  - action: utter_greet
  - intent: find_someone
  - action: action_gemini_response
  - intent: find_someone
  - action: action_gemini_response
  - intent: find_someone
  - action: action_gemini_response
  - intent: find_someone
  - action: action_gemini_response
  - action: utter_confirm_details```