> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/deploy/host-n8n/configure-n8n/basic-configuration/use-environment-variables/ai-assistant.md).

# Ask n8n AI

| Variable                    | Type   | Default | Description                                                                                                                                     |
| --------------------------- | ------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `N8N_AI_ASSISTANT_BASE_URL` | String | (empty) | Base URL of the AI assistant service, specified as `https://ai-assistant.n8n.io` . Required if you self-host n8n and want to enable Ask n8n AI. |
