SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to Configure a Webhook Destination with Segment Journeys

Objective

This article explains how to set up a webhook destination in Segment Journeys to trigger actions, such as sending emails or notifications, when a user enters a journey audience. The steps ensure that the webhook is correctly configured to deliver the required payload to the external service.

 

Product

Segment

 

Environment

Segment Console

 

User Account Permission/Role(s) Required 

Workspace admin or user with permissions to edit Journeys and Destinations

 

Procedure 

  1. Identify the external service’s webhook requirements, including the endpoint URL and required payload fields.
  2. In the Segment Console, navigate to the desired Journey.
  3. Add a “Send to destination” step and select the Extensible Webhook destination.
  4. Enter the webhook endpoint URL provided by the external service.
  5. Map the required fields from the user profile or event data to the payload fields expected by the external service. Use static values for fields that must always be included (such as campaign IDs).
  6. Ensure the user’s email or identifier is mapped to the correct field as required by the external service.
  7. Save the mapping configuration.
  8. Use the Event Tester in the Segment Console to send a test event and verify the webhook is triggered and the payload is received as expected by the external service.
  9. Review the response and adjust mappings if necessary.
  10. Publish the Journey when testing is successful.

 

Additional Information 

Refer to the documentation of the external service for specific payload requirements. For more details on configuring webhooks in Segment, see the Segment documentation on Extensible Webhook destinations and Journeys.

Have more questions? Submit a request
Powered by Zendesk