Skip to main content
The Webhook module automatically notifies external systems when specific journey events occur on the GBG GO platform. For example, if you have an automated customer journey configured in GO and want to update a component on your site when the journey completes, you can add the Webhook module to that journey. The module then sends a notification message using an HTTP POST request containing the journey’s completion status to your site or application. This guide shows you how to use the GO Webhook module.

Why use webhooks in your journey?

The Webhook module enables you to:
  • Integrate with existing external systems: Automatically update your other applications when a customer completes verification.
  • Monitor journey progress: Receive real-time notifications about the customer onboarding status.
  • Customise notifications: Tailor the webhook payload to include relevant information for your use case.
  • Log events: Log verification events for compliance or auditing purposes.
The Webhook module can’t determine if a journey has been completed because the module itself is still running when it sends data. To ensure accurate journey status information, place the webhook as the last module in your journey, just before the “End of journey” node.
A typical customer journey with a Webhook module looks like this:
Webhook 2 Pn
Use the Webhook module only once per journey. Adding multiple Webhook modules to a single journey can lead to unexpected errors and complications in managing webhook notifications.

Add a Webhook module to your journey

To add a Webhook module:
  1. Open your journey in the journey builder.
  2. Click Browse and add modules.
  3. Type “Webhook” into the search bar. You can also locate the Webhook module in the utilities module library category.
  4. Select the Webhook module.
  5. Click Add to journey.
  6. Ensure the Webhook module is the last step before the end of your journey.

Configure the Webhook module

After adding the Webhook module to your journey, you need to configure where notifications should be sent and what information they should contain. To configure the Webhook module:
  1. Click the Webhook module in your journey. The Webhook configuration panel opens.
  2. Click Settings. The settings window appears as shown below:
Webhook 1 Pn
  • Preview URL: Enter the webhook URL where you want notifications to be sent to when previewing or testing journeys. This allows you to test webhook functionality without affecting your production environment.
  • Production URL: Enter the webhook URL where you want notifications to be sent to when in the production environment. This is the live URL that receives real customer verification events.
  • Include message: Enable this setting to send a custom message in the webhook payload. When enabled, the Message field accepts message inputs. When disabled, the Message field goes grey and can’t accept inputs.
  • Message: Message input field for typing in any message that aligns with your use case, for example, “Customer verification completed”.
  • Timeout: Set the maximum time the webhook module will wait for a response from your webhook URL using ISO 8601 duration format, for example, PT5M = 5 minutes.
The custom message field is optional. If you don’t need to send additional context with your webhooks, leave the Include message toggle off.
  1. Click Save all settings.

Webhook outcomes

The Webhook module provides status information about message delivery:
OutcomeDescription
SentThe webhook message was successfully sent to the specified URL.
ErrorThere was an error sending the webhook message. Common causes include network failure, invalid URL, timeout exceeded, or server unavailable.
Like any other module, Webhook modules can be configured. For more information about module configuration, refer to How to configure module outcomes in GO.

What the webhook sends

When the Webhook module executes, it sends an HTTP POST request to your configured URL containing journey information and status data. The notification includes:
  • Journey instance identifier
  • Current journey status
  • Timestamp of when the webhook was triggered
  • Custom message, if Include message is enabled
  • Journey outcome and decision data

Example: Test the Webhook module

For this example, we’ll be using a free webhook site called webhook.site to get a webhook URL for testing in a preview and production environment.
  1. Go to webhook.site and copy the unique webhook URL generated for you.
  2. Paste the webhook URL into the Preview and Production URL field in your webhook settings window.
  3. Click Save all settings.
  4. Publish your journey to the Preview or Production environment.
  5. Start a test journey instance by sending a POST request to the /start/journey API endpoint. For more details on how to start a journey, see the Start a journey guide.
You should receive a response in webhook.site containing the journey information and status data.

Troubleshooting

If you encounter issues with the Webhook module, consider the following troubleshooting option:
  • Verify the URL: Ensure the URL you provided is correct and accessible from the internet. Test it using tools like Postman or curl.