Are there any plans to integrate more closely with...
# give-feedback
b
Are there any plans to integrate more closely with Segment (i.e. Audiences)?
👀 1
f
I think you could kind of get this to work today. Segment has an API endpoint to get all of the audiences for a user. https://segment.com/docs/engage/audiences/#access-your-audiences-using-the-profiles-api You can add an attribute in GrowthBook called
audiences
, which is an array of strings. Then, in your app, call that API endpoint and pass in the list of traits to that attribute in the GrowthBook SDK.
One thing that we'll definitely add in the future is a way to edit attributes via our REST API. That way, you'll be able to have the list of audiences sync automatically from Segment and show up in our Targeting Conditions form as a dropdown instead of a freeform text input where you have to copy/paste the audience id.
b
Thanks, Jeremy!