> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Linking Neo4j as a source **Alpha release** This source is currently in **alpha**. The interface and available tables may change. ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_9608fcca70) ![](https://res.cloudinary.com/dmukukwp6/image/upload/texture_tan_dark_a92b0e022d) Let AI connect your sources for you Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog. `npx @posthog/wizard warehouse` ![PostHog Wizard hedgehog](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png) ![](https://res.cloudinary.com/dmukukwp6/image/upload/wizard_3f8bb7a240.png)Let AI connect your sources for you The Neo4j connector syncs nodes and relationships from your Neo4j graph database into PostHog, so you can query graph data alongside your product data using SQL. PostHog discovers every node label and relationship type in your database and creates a table for each one. Node tables are prefixed `node_` and relationship tables are prefixed `rel_`. ## Prerequisites - A Neo4j Aura instance, or a self-managed Neo4j 5.19+ deployment with a **public HTTPS endpoint**. Self-managed versions before 5.25 require the [Query API to be enabled](https://neo4j.com/docs/operations-manual/current/) explicitly. - A database user with **read access**. PostHog only reads data. - The database credentials (username and password) you received when you created the Aura instance, or equivalent credentials from your database administrator. ## Adding a data source 1. In PostHog, go to the [Sources tab](https://app.posthog.com/data-management/sources) of the data pipeline section. 2. Click **\+ New source** and click **Link** next to this source. 3. Enter your credentials (see [Configuration](#configuration) below) and click **Next**. 4. Select the tables you want to sync, choose a sync method and frequency, then click **Import**. Once the syncs are complete, you can start querying this data in PostHog. When linking Neo4j, you need: - **HTTPS host** – the public URL of your Neo4j instance, for example `https://your-instance.databases.neo4j.io`. Must be HTTPS with no path, query string, or embedded credentials. - **Database** – the name of the database to connect to, for example `neo4j`. - **Username** – your Neo4j username, typically `neo4j` on Aura instances. - **Password** – the password for the database user. PostHog validates the host, authenticates with Basic auth, and discovers available tables automatically. ## Configuration | Option | Type | Required | | --- | --- | --- | | `HTTPS host` | text | Yes | | `Database` | text | Yes | | `Username` | text | Yes | | `Password` | password | Yes | ## Supported tables The tables available from this source are discovered from your account when you connect it, so the exact list depends on your data. Once connected, you can pick which tables to sync from the [sources tab](https://app.posthog.com/data-management/sources). ### How tables are discovered PostHog calls `db.labels()` and `db.relationshipTypes()` to discover every node label and relationship type in the connected database. Each label becomes a `node_