Response to public and private requests

Response to public and private requests

When you send a reply to a ticket, it is marked as public (green padlock) or private (red), could you tell me how these requests are created, are they random or do they depend on some kind of configuration?
Thanks

                  New to ADSelfService Plus?