# Getting started with PostHog AI - Docs

## 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](/docs/settings/access-control.md) for your organization.

[Allow access](/docs/posthog-ai/allow-access.md)

## 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](https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/pasted_image_2025_11_05_T18_45_14_288_Z_3ba2f02b30.png)![Run /init command](https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/pasted_image_2025_11_05_T18_44_37_792_Z_22b4398563.png)

Think of it as onboarding your new robot product analyst.

[Edit memory](/docs/posthog-ai/edit-memory.md)

## 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?`](https://app.posthog.com/#panel=max:!What%20changed%20across%20my%20product%20this%20week?)
-   [`Find session replays where users got stuck`](https://app.posthog.com/#panel=max:!Find%20session%20replays%20where%20users%20got%20stuck)
-   [`Build a dashboard for onboarding retention`](https://app.posthog.com/#panel=max:!Build%20a%20dashboard%20for%20onboarding%20retention)
-   [`Write a SQL query to find the top 10 events by count`](https://app.posthog.com/#panel=max:!Write%20a%20SQL%20query%20to%20find%20the%20top%2010%20events%20by%20count)
-   [`How do I set up a feature flag?`](https://app.posthog.com/#panel=max:!How%20do%20I%20set%20up%20a%20feature%20flag?)

[Explore PostHog AI features](/docs/posthog-ai/tools.md)

## 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](/docs/posthog-ai/context-and-commands.md)

## Explore

Across the platform, look for the AI icon to see where PostHog AI is also available to perform intelligent work.

![PostHog AI icons](https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/session_ai_icon_light_f966b94105.png)![PostHog AI icons](https://res.cloudinary.com/dmukukwp6/image/upload/q_auto,f_auto/session_ai_icon_dark_8fa0b7b423.png)

---

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

[Chat with PostHog AI](https://app.posthog.com/#panel=max)

1/5

[**Allow PostHog AI access** ***Required***](#quest-item-allow-posthog-ai-access)[**Run /init command** ***Required***](#quest-item-run-init-command)[**Ask PostHog AI to do things** ***Required***](#quest-item-ask-posthog-ai-to-do-things)[**Add context** ***Recommended***](#quest-item-add-context)[**Explore** ***Recommended***](#quest-item-explore)

**Allow PostHog AI access**

***Required***

### Community questions

Ask a question

### Was this page useful?

HelpfulCould be better