Set up Segment as an event-based data source.

Capture Segment webhooks to get real-time data on every action your users take.

Add Segment as a source

Follow the steps (see the screenshots below).

  1. Tap into a workspace in your Velvet dashboard
  2. Navigate to "Data sources"
  3. Tap "Add a data source"
  4. Name your source “Segment”
  5. Copy the Segment webhook link

Add a data source.

Name your data source.

Copy the webhook link.

Capture webhooks from Segment

If you get stuck, read further documentation from Segment here.

  1. Navigate to “Connections” > “Catalog” > “Destinations”
  2. Search for “Webhooks (Actions)” under the destinations catalog, and select it.
  1. Click “Add Destination”
  2. Select which source you want to send data from.
  3. Name the destination.
  4. Click “Create Destination”.
  5. Navigate to Connections” > Destinations. Find the destination you created.
  6. Toggle on "Enable Destination", and save your changes.
  1. Navigate to Mappings and click “New Mapping”
  2. Choose the “Send an HTTP Request” action.
  3. Select which events you want to send to your Velvet webhook link.
  4. Add a test event for testing the connection to your Velvet webhook link (this can include any JSON body).
  5. Under Select Mappings, paste your Velvet webhook link in the URL field.
  6. If you would like to enable batching, switch the “Enable Batching?” field to “Yes” and modify the “Batch Size field” to a number greater than 0.
  7. Test and save your mapping

Great job, you’ve connected Segment as a data source. From this point on, we’ll create a queue of every event you’re sending from Segment and collect them in your Velvet workspace.

Note: You'll need to send a webhook for each type of event you want to send from Segment. Email [email protected] for tech support.