---
title: AI Assistant environment variables
description: Environment variables to configure AI Assistant. 
contentType: reference
tags:
  - environment variables
hide:
  - toc
  - tags
---

# AI Assistant environment variables

| 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 the AI Assistant. |