Benchmark: Webhook Listener
The Benchmark "Webhook Listener" can trigger action(s) based on information from a remote site
Drag and drop the "Webhook Listener" Benchmark over into the flow on the left. You will be presented with some setting options.
- Listener URL: - Enter a URL.
- Request: - Presents the values collected from the Listener URL.
- Map Request Fields: You can map the fields to contact fields.
- Response: Output the Contact record or custom JSON.
Make sure to hit save after completing the settings.
How to test your Webhook Listener
- Set Up the Webhook Listener in Groundhogg:
- In your funnel, drag the Webhook Listener benchmark into the flow.
- Copy the Listener URL provided.
- Test the Webhook in Postman:
- Visit Postman (free to use).
- Click [New Request] under "Send an API Request."
- Paste the copied Webhook Listener URL and set the method to POST.
- Click the Body tab and select the "raw" option.
- Enter sample JSON data:
{ "first_name": "Phil", "last_name": "Groundhogg", "email": "phil@groundhogg.io" }
- Click [Send]—this will return an "invalid_field_map" message.
- Map Fields in Groundhogg:
- Return to the Webhook Listener in Groundhogg.
- Click [Map Request Fields] and assign each field to the correct value.
- Click [Save Changes].
- Return to the Webhook Listener in Groundhogg.
- Retest the Webhook:
- Go back to Postman and click [Send] again.
- This time, you should receive a "Success" message.
Extension Required!
The Field Changed Benchmark is available with the Advance Features addon. Groundhogg - Advanced Features installed. It can be purchased separately or as part of the Agency, Pro or Plus Plans.