Add utility functions for handling prompt messages