User query intent recognition techniques

The transformer models has multiple heads e.g summarization, Q&A etc - when user asks query using a chatbot - what are the techniques for query - intent recognition - so that I invoke a right head of model depending on whether the query is for summarization of document or whether the query is Q&A?

Question is - should we care about query intent recognition? If yes, what technique should we use?