Help on template in RT

Dear sir,

I’m making template and i need to include the last comment of the ticket and
a keyword. How can i do that ?

I need also to change the automatic search criteria when i click on a queue.

Thanks for your answer

Regards

Damien Gauthier