Activity Feeds V3 is in closed alpha — do not use it in production (just yet).

Processors

Activity Processors

Activity processors enable you to do additional processing on activities after they are posted.

Activity Processors

The activity processors allow you to add data to an activity when it’s added. The most common use case for this is topic analysis using AI.

const response = await serverClient.feeds.createFeedGroup({
  id: "myid",
  activity_processors: [{ type: "image_topic" }, { type: "text_topic" }],
});

This interest tags data can now be used in ranking etc.

Topic Analyzer

The topic analyzer uses AI to set the topics based on the content of the text and images.

You can enable it like this:

const response = await serverClient.feeds.createFeedGroup({
  id: "myid",
  activity_processors: [{ type: "topic" }],
});

Whenever a new activity is posted, it will automatically be enriched with topics:

val activity: Result<ActivityData> = feed.addActivity(
    request = FeedAddActivityRequest(
        text = "check out my 10 fitness tips for reducing lower back pain",
        type = "post"
    )
)
// The activity will now have topics automatically added
println(activity.getOrNull()?.interestTags) // ["fitness", "health", "tips"]
const response = await client.feeds.addActivity({
  feeds: ["user:1"],
  type: "post",
  text: "check out my 10 fitness tips for reducing lower back pain",
  user_id: "<user id>",
});

console.log(response.activity.interest_tags); // ["fitness", "health", "tips"]
© Getstream.io, Inc. All Rights Reserved.