Segment

Customer data platform

Go to site

Integrate the Segment API with the Discord Webhook API

Setup the Segment API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Segment and Discord Webhook remarkably fast. Free for developers.

Send Message to Channel

Send a message to the channel tied to your incoming webhook. At least one of message OR embeds is required.

 
Try it
Track actions your users perform

Track lets you record the actions your users perform (note requires userId or anonymousId)

 
Try it
Associate an identified user with a group

Group lets you associate an identified user with a group (note requires userId or anonymousId)

 
Try it
Associate one identity with another

Alias is how you associate one identity with another.

 
Try it
Identify a user, tie them to their actions and record traits about them

identify lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about them (note requires userId or anonymousId)

 
Try it

Connect Segment

const data = {
  "event": `PipedreamTestOrder`,
  "anonymousId": `019mr8mf4r`,
}
return await require("@pipedreamhq/platform").axios(this, {
  method: "post",
  url: `https://api.segment.io/v1/track`,
  auth: {
    username: `${auths.segment.write_key}`,
    password: ``,
  },
  data,
})

Connect Discord Webhook

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://discord.com/api/users/@me`,
  headers: {
    Authorization: `Bearer ${auths.discord_webhook.oauth_access_token}`,
  },
})