Skip to content

Segment

  • Identify your JustAI org slug (usually your company name in all lower case - feel free to ask us).
  • Log-in to Segment
  • Navigate to “Destinations” and “Add destination”

Step 1

  • Choose “Webhooks (Actions)”

Step 2

  • Click “Add destination”

Step 3

  • Select a data source and set the “Destination name” to “JustAI Webhook” and leave the dropdown menu as “Fill in settings manually”

Step 4

  • Choose “Create destination”
  • In JustAI Console, create an API key.
  • Set a “Shared Secret” with the API key.

Step 5

  • Click “New Mapping” in the Mappings tab

Step 6

  • Set up a mapping and define event trigger
    • Most open-ended is “Event Type,” but we can narrow it down to specific events.

Step 7

  • Set the destination URL to https://worker.justwords.ai/api/webhook/segment/<org_slug>
  • Set the method to POST
  • Set the Headers to “X-Api-Key” => API key from earlier
  • Set the Batch Size to 1000* (We can look at the source data volume and take an educated guess)

Step 8

  • Press “Next”
  • Save and Enable the webhook

Step 9

  • Under Settings, toggle “Enable Destination” and click “Save Changes”

Step 10

  • We should now start seeing traffic to the destination after some time

Step 11