Skip to content

Commit 1c386ac

Browse files
authored
docs(activity-logs): add PostHog AI query section
Documents the new activity_log kind in PostHog AI's read_data tool, which allows users to query activity logs using natural language. Ref: PostHog/posthog#47104
1 parent e71469c commit 1c386ac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contents/docs/settings/activity-logs.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,20 @@ This adds organization-level events to your activity feed, such as member invita
193193

194194
You can view the change history for any individual resource. When viewing a feature flag, dashboard, experiment, or other resource, click the **History** tab to see all changes made to that specific item over time.
195195

196+
## Query with PostHog AI
197+
198+
[PostHog AI](/docs/posthog-ai) can answer questions about your activity logs using natural language. Ask questions like:
199+
200+
- "Who changed the checkout-flow feature flag?"
201+
- "What experiments were modified last week?"
202+
- "Show me all dashboard changes by jane@example.com"
203+
204+
PostHog AI can filter by scope (resource type), activity type, user, date range, and specific item IDs — the same filters available in the UI.
205+
206+
To use this feature, open [PostHog AI](https://app.posthog.com/#panel=max) and ask your question. PostHog AI queries your activity logs and summarizes the results.
207+
208+
> **Note:** Querying activity logs with PostHog AI requires the audit logs feature, which is available on Scale and Enterprise plans.
209+
196210
## Notifications
197211

198212
You can subscribe to activity log changes and receive notifications via Slack, webhooks, or other destinations when specific events occur.

0 commit comments

Comments
 (0)