> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Set up self-driving Canonical URL: https://posthog.com/docs/self-driving/setup ## On this page - [Run the self-driving setup](#run-the-self-driving-setup) - [Connect Slack](#connect-slack) - [Watch your first scout run](#watch-your-first-scout-run) - [Next step](#next-step) Turning on self-driving means connecting the data sources, repositories, and agents that let PostHog ship work for you. The setup wizard handles it all in one command, including installing PostHog if you haven't already. Most teams are set up in a few minutes. **Before you start** You'll need a GitHub repository you want agents to work in. If you don't have PostHog installed yet, the wizard sets it up for you as part of the flow. 1. 1 ## Run the self-driving setup Required The fastest way to turn on self-driving is our setup wizard: `npx @posthog/wizard self-driving` The wizard checks whether PostHog is already installed and capturing events. If it isn't, it installs PostHog first, then continues straight into self-driving. From there it enables your signal sources, sets up your scouts, and hands you a link to your inbox. The signal sources it can turn on include [Error Tracking](https://posthog.com/docs/error-tracking.md), [Session Replay](https://posthog.com/docs/session-replay.md), and external sources like Jira, Zendesk, GitHub Issues, and Linear. The more you enable, the more PostHog can watch to make your product self-driving. **AI data processing required** Self-driving relies on AI, so your organization needs [AI data processing turned on](https://posthog.com/docs/posthog-ai/allow-access.md). The wizard checks this and tells you how to enable it if it's off. Prefer to install PostHog manually? Follow the [install guide](https://posthog.com/docs/getting-started/install.md) first, then run the command above. #### Set up manually without the wizard Some teams cannot run the wizard, for example when they have no command-line access. Self-driving has an in-product path for this. Open your [inbox](https://posthog.com/docs/self-driving/inbox.md) and select **Set up manually**, or go straight to the **Configuration** tab. From there: - Turn on the [signal sources](https://posthog.com/docs/self-driving/inbox/sources.md) you want to watch. - Turn on the [scouts](https://posthog.com/docs/self-driving/scouts.md) you want to run. - [Connect GitHub](https://posthog.com/docs/libraries/github.md) so agents can open pull requests. A project admin connects the project repository, and each teammate who ships pull requests connects a personal GitHub account. The manual path enables the same self-driving as the wizard. You still need [AI data processing turned on](https://posthog.com/docs/posthog-ai/allow-access.md). 2. 2 ## Connect Slack Recommended Add the [PostHog Slack app](https://posthog.com/docs/slack.md) so you can summon agents and review their work from your team's channels. You connect your Slack workspace once, and each teammate who wants to ship a pull request connects their own GitHub. PostHog also posts a notification to the `#posthog-inbox` channel whenever a new report lands, so your team sees work as it comes in. 3. ## Watch your first scout run Required The wizard hands you a link to your [inbox](https://posthog.com/docs/self-driving/inbox.md). From there, scouts run on a schedule and emit [signals](https://posthog.com/docs/self-driving/signals.md), related signals group into [reports](https://posthog.com/docs/self-driving/reports.md), and those reports land in your inbox ranked by priority and ready to act on. 4. 3 ## Next step You've got a working self-driving setup: scouts watching your data, reports landing in your inbox, and agents ready to open pull requests for actionable reports. Pull requests are optional. In the inbox **settings**, under **PR generation**, you can turn them off, or set the priority a report must reach before an agent opens one. Reports still land in your inbox and notify your team. Now head to your inbox to review and merge what lands. [Your inbox](https://posthog.com/docs/self-driving/inbox.md)