Activity Feeds
Auto-generated activity feeds from engagement events using feed rules.
Activity feeds show social activity within your app. Set up feed rules to automatically create feed items when users track specific events.
How it works
- Admin creates feed rules that map engagement events to feed actions
- When a user tracks a matching event, a feed item is created automatically
- Users can browse their feed to see friends' activity
Feed rules
A feed rule has:
source_event— the engagement event that triggers feed item creationaction— the action string in the feed item (e.g., "reached_streak_milestone")target_type— optional target type for context
Example rule
When a user tracks streak_milestone, create a feed item with action reached_streak_milestone:
Client API reference
| Method | Path | Description |
|---|---|---|
GET | /client/feeds | Get the user's activity feed |
GET | /client/feeds/friends | Get friends' activity feed |
MCP tools
| Tool | Description |
|---|---|
amba_create_feed_rule | Create a rule to auto-generate feed items from events |
Example
Database tables
| Table | Purpose |
|---|---|
feed_rules | Rules mapping events to feed actions |
feed_items | Generated feed items with actor, action, and target |