> 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 the AI assistant

The n8n AI Assistant helps you build, debug, and optimize your workflows seamlessly. From answering questions about n8n to providing help with coding and expressions[^1], the AI Assistant can streamline your workflow-building process and support you as you navigate n8n's capabilities.

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

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

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

The AI Assistant 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 the Assistant, refer to [AI in n8n](#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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.n8n.io/build/ways-of-building-workflows/use-the-ai-assistant.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
