Send a Message as the End User
Send a text message, like search queries, user actions, or any text, as the end user from a custom component using the Send Message API.
The following example illustrates how you can send a text message when a menu option is clicked from a custom chat header.
See the Customize Header page to know more about custom chat headers.