> 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/build/ways-of-building-workflows/use-the-ai-assistant.md).

# Use Ask n8n AI

Ask n8n AI helps you build, debug, and optimize your workflows. From answering questions about n8n to providing help with coding and expressions[^1], Ask n8n AI supports you as you navigate n8n's capabilities.

{% hint style="info" %}
Ask n8n AI is n8n's built-in help assistant and is no longer actively developed. To build, edit, and run workflows from a chat, see [Use AI Assistant (Preview)](/build/ways-of-building-workflows/ai-assistant-preview.md).
{% endhint %}

## Current capabilities <a href="#current-capabilities" id="current-capabilities"></a>

Ask n8n AI offers a range of tools to support you:

* **Debug helper**: Identify and troubleshoot node execution issues in your workflows to keep them running without issues.
* **Answer n8n questions**: Get instant answers to your n8n-related questions, whether they're about specific features or general functionality.
* **Coding support**: Receive guidance on coding, including SQL and JSON, to optimize your nodes and data processing.
* **Expression assistance**: Learn how to create and refine [expressions](/build/work-with-data/expressions-versus-data-nodes.md) to get the most out of your workflows.
* **Credential setup tips**: Find out how to set up and manage node [credentials](/integrations/builtin/credentials.md) securely and efficiently.

## Tips for getting the most out of the Assistant <a href="#tips-for-getting-the-most-out-of-the-assistant" id="tips-for-getting-the-most-out-of-the-assistant"></a>

1. **Engage in a conversation**: Ask n8n AI can collaborate with you step-by-step. If a suggestion isn't what you need, let it know! The more context you provide, the better the recommendations will be.
2. **Ask specific questions**: For the best results, ask focused questions (for example, "How do I set up credentials for Google Sheets?"). The assistant works best with clear queries.
3. **Iterate on suggestions**: Don't hesitate to build on the assistant's responses. Try different approaches and keep refining based on the assistant's feedback to get closer to your ideal solution.
4. **Things to try out**:
   * Debug any error you're seeing
   * Ask how to setup credentials
   * "Explain what this workflow does."
   * "I need your help to write code: \[Explain your code here]"
   * "How can I build X in n8n?"

## AI usage settings <a href="#ai-usage-settings" id="ai-usage-settings"></a>

{% hint style="info" %}
Available in n8n v2.7.0 and above.
{% endhint %}

You can manage your AI usage settings by navigating to **Settings** > **AI Usage** in your n8n instance. Here, you can control what data is shared with Ask n8n AI.

These settings are only available to the instance owners and administrators, and will apply to all users on the instance.

![ai\_usage\_settings.png](/files/HD1FNUL4f1azb6SylD9j)

Toggle whether to share actual workflow data (like node names, parameters, and structure) with Ask n8n AI. Disabling this option will limit the assistant's ability to provide context-aware help based on your workflows.

Since access to workflow data is essential for the AI Workflow builder to function, **disabling this option will also disable the AI Workflow builder feature**.

### Disable sending data <a href="#disable-sending-data" id="disable-sending-data"></a>

To stop sending actual data values to Ask n8n AI, turn off the **Send actual data values** checkbox on the **AI Usage** settings page.

## FAQs <a href="#faqs" id="faqs"></a>

### What context does the Assistant have? <a href="#what-context-does-the-assistant-have" id="what-context-does-the-assistant-have"></a>

Ask n8n AI has access to all elements displayed on your n8n screen, excluding actual input and output data values (like customer information). To learn more about what data n8n shares with Ask n8n AI, refer to [AI in n8n](/privacy-and-security/privacy.md#ai-in-n8n).

### Who can use the Assistant? <a href="#who-can-use-the-assistant" id="who-can-use-the-assistant"></a>

Any user on a Cloud plan can use the assistant.

### How does the Assistant work? <a href="#how-does-the-assistant-work" id="how-does-the-assistant-work"></a>

The underlying logic of the assistant is build with the advanced AI capabilities of n8n. It uses a combination of different agents[^2], specialized in different areas of n8n, RAG to gather knowledge from the docs and the community forum, and custom prompts, memory[^3] and context.

[^1]: In n8n, expressions allow you to populate node parameters dynamically by executing JavaScript code. Instead of providing a static value, you can use the n8n expression syntax to define the value using data from previous nodes, other workflows, or your n8n environment.

[^2]: AI agents are artificial intelligence systems capable of responding to requests, making decisions, and performing real-world tasks for users. They use large language models (LLMs) to interpret user input and make decisions about how to best process requests using the information and resources they have available.

[^3]: In an AI context, memory allows AI tools to persist message context across interactions. This allows you to have a continuing conversations with AI agents, for example, without submitting ongoing context with each message. In n8n, AI agent nodes can use memory, but AI chains can't.
