Generative AI for Public Service: Foundations, Prompting, and Ethics