介紹 AI Assistant:n8n 內部的工作流程建立代理!

我們想分享一些大新聞!:tada:

我們正在推出 n8n AI 助手,這是一個全新的基於聊天的代理,就在 n8n 中運行,可以為您透過自然語言建立工作流程。它可以使用自然語言建立、編輯、測試和排除工作流程故障

:light_bulb: AI 助手在 n8n 雲端版本 2.29.9 及更高版本上以預覽版本提供

描述您想要自動化的內容,AI 助手就可以規劃工作流程、在您選定的專案中建立、測試它,並幫助您修復錯誤。結果是一個標準的 n8n 工作流程。您可以開啟、編輯和發佈它,就像任何其他工作流程一樣。

正在執行自託管的 n8n?

我們還為自託管實例上的 AI 助手發布了早期設置說明。設置目前是手動的,需要一些工作,所以它有自己的文章包含所有詳細資訊。

[自託管文章連結將在 5 分鐘內推出]。

請在該話題中提出自託管設置問題,在此發佈有關 AI 助手的所有其他內容。

您可以要求 AI 助手做什麼

  • 建立工作流程 - 描述您想要的自動化,它會生成工作流程。
  • 編輯工作流程 - 要求它更改邏輯、新增節點或調整配置。
  • 測試和排除故障 - 要求它執行檢查、檢查錯誤並建議修復。
  • 還有更多…

AI 助手可以存取您作為使用者所做的幾乎所有事情,所以請盡情發揮創意,提出您的要求。

如何開始

  1. 從左側邊欄選擇 AI 助手
    確保您在 n8n 雲端版本 2.29.9 或更高版本上。

  2. 選擇您想要它在其中工作的專案

  3. 描述任務 - 包括觸發器、涉及的應用程式或服務、預期結果和任何約束條件。

  4. 檢查它提議的計劃,然後再建立或更改任何內容。

  5. 測試和檢查工作流程,然後再在生產環境中使用。

您掌控一切

  • 在進行發佈、刪除或其他重要變更等高影響力操作之前,它會要求確認。
  • 它使用您的權限,只能存取您在選定專案中可以存取的工作流程、認證和資源。
  • 您的認證和機密永遠不會發送給 AI。請確保在輸入 API 金鑰、密碼或權杖時始終使用標準 n8n 認證螢幕。不要在聊天中輸入它們。
  • 啟用網路研究後,它會在存取任何外部網域之前要求許可。

需要了解的事項(這是預覽版本)

  • AI 助手可能會出錯,在開發期間行為可能會變更,因此在生產環境中使用之前始終檢查生成的工作流程。
  • 某些功能可能會逐步推出,它可能會比平常更經常要求澄清。
  • 它根據處理的權杖使用信用額度。較長的對話、較大的工作流程和重複迭代使用更多信用額度。如果您在預覽期間需要更多信用額度,可以升級您的計劃到更高層級。我們正在開發一個解決方案,以購買額外的 AI 信用額度,無需升級計劃。
  • AI 助手目前在企業計劃上不可用。

要嘗試的提示

  • 「建立一個工作流程,每天早上檢查 Gmail 的發票,將 PDF 附件儲存到 Google Drive,並向資料表添加一行。發佈前詢問我。」
  • 「對此工作流程的最新失敗執行進行除錯。解釋失敗的原因,然後在更改任何內容之前建議修復。」
  • 「更新此工作流程,以便失敗的訂單傳送到 Slack,然後在 10 分鐘後重試 API 請求。」

常見問題

您可能會問自己的一些問題…

問:這與 AI 工作流程產生器有什麼不同?
答:AI 助手可以執行工作流程產生器能做的所有事情,甚至更多,並且結果更好。因此,它取代了 AI 工作流程產生器。

問:這與使用 n8n MCP 伺服器與 Claude Code(或類似的)有什麼不同?
答:在功能方面,它們非常相似。它們共享許多相同的基礎架構。AI 助手允許您將所有內容放在一個地方,並實時查看 AI 正在建立的內容,以及您的聊天。

問:它使用什麼 LLM 模型?
答:在 n8n 雲端上,它目前對大多數事情使用 opus 4.8。

問:我可以輸入自己的 LLM API 金鑰,而不是在 n8n 雲端上使用 n8n 信用額度嗎?
答:還不行,但這是我們正在考慮的事情。

我們很樂意聽取您的反饋

這是一個早期預覽,所以我們非常希望您的反饋能幫助改進 AI 助手。
只需使用以下任何內容回復此文章:

  • 您建立了什麼以及進展如何
  • 感到不清楚或未按預期工作的任何事項
  • 它出錯的地方,或您希望它做得更好的地方

:open_book: 在文件中閱讀更多:AI 助手(預覽)

感謝您幫助我們公開建立它!:raising_hands:

27 個讚

[更新 2026年7月10日]
當您用完額度時,目前會收到一般性的錯誤訊息,而不是明確指出您額度已用完的訊息。我們正在著手改善。

4 個讚

非常非常酷的團隊!謝謝你們!

1 個讚

這個功能在自託管的 n8n 中可用嗎?

1 個讚

Yes, it is. But at this stage setting it up is still complex. You can find instructions here:

2 個讚

Hi All

I’ve just written a blog post on this very topic - How to Set Up n8n’s AI Assistant on a Self-Hosted Server. I wanted to test it out tonight and clear up my backlog of workflow ideas.

I ran into some Docker issues (networking between containers) and found out the hard way that sysbox does not like Ubuntu 26 but otherwise, was relatively straight forward.

I’ve also opted to use Sonnet-5 instead of Opus and that too has been great.

See you all at n8n fest!

Oli

3 個讚

I’ve been enjoying the n8n mcp with the Pi agent and Ollama which works great, so I was excited to see this AI Assistant, but the docs don’t show it working with Ollama. Is this coming soon?

Hi n8n team, is AWS Bedrock supported as an LLM provider for the AI Assistant? I came across an image that suggests it is supported, but I couldn’t find any documentation about it. If it is supported, could you share which environment variables need to be configured? I wasn’t able to find this information in the docs.

Great to see this coming to self-hosted, even as a pre-release. I run n8n self-hosted on my homelab (Ubuntu, Docker, Cloudflare Tunnel) and it powers real production workflows, WhatsApp agents for clients in the Dominican Republic. I’ll be setting up the Assistant this week following the early instructions and will report back with how it goes on that stack.

1 個讚

This is what i wait for. Thanks n8n team. Awesome works.

1 個讚

This looks really promising! I’m already testing it on my self-hosted n8n instance in my homelab.

Having the assistant directly inside n8n feels much more natural than using an external MCP agent. BYOK would make it even better.

1 個讚

Deze klinkt een stuk natuurlijker:

This actually looks really useful. I’m mostly curious about the debugging part, because that’s usually where I lose the most time. Definitely going to try this.