Pass text from an input into the chat

Hi there! I’m hoping to collect a user’s message in another text field, then pass that text to Intercom.

User enters their message → clicks start a chat → that messages gets passed into Intercom → user hits send in Intercom.

I’m doing this so I can run it through Algolia first.