Automation set a text entity?

I have created a HA Automation (WebHook). The Webhook hit will provide a value. I currently send that value to my phone as a message. That works fine.

I want to write that text value to Home Assistant so that it survives beyond the message. My attempt to do this was to add a helper to Home Assistant, of type text. And I then wanted to add another action to the automation to set this new text entity to the value supplied in the webhook. But I am unsure what type of action could be used to set the text value. Is there a way to set a text helper entity from an automation action?

Thank you
David

Yeah sure, like this:

service: input_text.set_value
data:
  value: your text goes here
target:
  entity_id: input_text.my_text_input