useActionData in Remixjs works when you submit a form.
Webhooks in general are server to server communication so what you use as webhook you need to handle it otherwise.