Getting started with PostHog AI

Allow PostHog AI access

To get started, the first step is to open the PostHog AI chat in the right sidepanel of the PostHog app.

The very first time you say hello or enter a prompt, you'll need to grant PostHog AI access to your project. This action requires admin permissions for your organization.

Allow access

Run /init command

With PostHog AI enabled, run the /init command in the chat. PostHog AI will ask you a few baseline questions about your product and company.

These details are then saved to PostHog AI's memory so it can always be used as context to help conduct research and provide answers relevant to your project.

Run /init command

Think of it as onboarding your new robot product analyst.

Add memory

Ask PostHog AI to do things

PostHog AI is now ready to answer product questions and complete tasks for you. It works best if you already have some data and implemented at least one PostHog application like product analytics, session replays, feature flags, or error tracking.

Here are a few prompts you can try:

  • What changed across my product this week?
  • Find session replays where users got stuck
  • Build a dashboard for onboarding retention
  • Write a SQL query to find the top 10 most active users by event count
  • How do I set up a feature flag?
  • Navigate to the settings page
Explore PostHog AI features

Add context

To make PostHog AI even more effective, you can add and manage context as you prompt it.

PostHog AI automatically detects the active tab or page you're on to infer context. You can also manually add context and include other data points from your project – such as events, actions, insights, or dashboards.

Manage context

Explore

The chat is one way of using PostHog AI. Across the platform, look for the AI icon to see where PostHog AI is also available to perform intelligent work.

PostHog AI icons

That's it! You're ready to start using PostHog AI.

Chat with PostHog AI

Community questions

Was this page useful?

Questions about this page? or post a community question.