docs: Add PostHog AI activity log querying capability#14998
docs: Add PostHog AI activity log querying capability#14998inkeep[bot] wants to merge 4 commits intomasterfrom
Conversation
PostHog AI can now query activity logs to answer questions like "who changed this flag?" or "what was modified last week?" This feature requires the audit logs feature (Scale/Enterprise plans). Related to PR #47104
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| - "Who changed the checkout-flow feature flag?" | ||
| - "What experiments were modified last week?" | ||
| - "Show me all dashboard changes by jane@example.com" |
There was a problem hiding this comment.
can you change these questions to use the MaxCTA component for these questions?
example:
also make sure all three questions are real use cases PostHog users could use to query with AI. the last one uses a fake email and isn't helpful
|
|
||
| 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. | ||
|
|
||
| > **Note:** Querying activity logs with PostHog AI requires the audit logs feature, which is available on Scale and Enterprise plans. |
There was a problem hiding this comment.
use the correct callout component!
…feedback - Replace bullet list of example questions with three MaxCTA components - Use real, useful questions without fake email addresses - Replace blockquote note with proper CalloutBox component (type="fyi")
|
Thanks for the feedback @sarahxsanders! I've made the following updates: Changes made:
|
| <MaxCTA question="Who changed the checkout-flow feature flag?" /> | ||
|
|
||
| <MaxCTA question="What experiments were modified last week?" /> | ||
|
|
||
| <MaxCTA question="Show me all feature flag changes in the last 7 days" /> |
There was a problem hiding this comment.
actually format it like this:
PostHog AI components
You can also link to PostHog AI which used to be called Max AI.
Use <AskMax> to provide in-context help:
The <AskMax> component opens the PostHog AI chat window directly on the website. Use this for documentation pages where users might need help understanding concepts or troubleshooting. Unlike <MaxCTA> which links to the PostHog app, this keeps users in the docs context.
<AskMax
quickQuestions={[
'How do I mask sensitive data?',
'Can I enable recordings only for certain users?',
'How can I control costs?',
]}
/>…loutBox formatting - Replace three individual MaxCTA components with single AskMax component using quickQuestions array - Add proper blank lines inside CalloutBox component per MDX style guidelines
|
Thanks for the feedback @sarahxsanders! I've made the requested changes:
Let me know if there's anything else that needs adjusting! |
Changes
This PR updates documentation to reflect the new activity log querying capability added to PostHog AI in PostHog/posthog#47104.
Updates made:
1. PostHog AI overview (
contents/docs/posthog-ai/overview.mdx)2. Activity logs documentation (
contents/docs/settings/activity-logs.mdx)Context
PostHog AI can now query activity logs using the
read_datatool. Users can ask questions like:This feature is gated behind
AvailableFeature.AUDIT_LOGS(available on Scale and Enterprise plans).