Classifying NLP tasks based on prompts?

Hello, currently, I’m working on creating a chatbot for the company. I’ve been assigned the task of “classifying NLP tasks from prompts,” such as identifying if a user request is to summarize text or translate a passage. I’ve searched on Google but haven’t found a clear answer. Could you please advise on how to approach this task or share any relevant resources for research? Thank you.