通过n8n在微信公众号使用nano-banana模型Using the nano-banana model in WeChat Official Accounts via n8n

Showcase: AI Image Edit in WeChatOfficialAccount via n8n, Powered by Google’s nano-banana Model

作品展示:通过n8n在微信公众号使用谷歌nano-banana模型实现图片编辑

Hey n8n community!
嗨,n8n社区的朋友们!

I’ve built a fun and practical workflow that connects a WeChat Official Account with Google’s latest nano-banana AI model.
我构建了一个有趣又实用的工作流,它将微信公众号与谷歌最新的nano-banana AI模型连接起来。

Now, my WeChat users can remove image backgrounds by simply sending a command like: /edit remove background.
现在,你只需要发送一个简单的命令如: /edit 移除图片背景,就可以轻松移除图片背景。

Here’s a quick look at the result:
这里是最终效果的快速预览:




How It Works

工作原理

The workflow is quite straightforward:
这个工作流的原理非常直接:

  1. 使用我之前分享的微信公众号机器人工作流:n8n搭建微信公众号机器人(附完整工作流)Building AI robot for WeChat Official Account with n8n
  2. 编辑工作流新增一个【/edit】命令
  3. 新增一个【http】节点调用谷歌nano-banana(gemini-2.5-flash-image-preview)模型的API
  4. 返回编辑后的图片

How to Try

如何使用

Follow WeChat Official Account 【oneamaze】,send command 【/edit your image-edit prompt], and then send your image to be edited, done!
关注微信公众号 【网鹅】 ,发送【/edit 你的图像编辑描述】,然后根据提示发送想要编辑的图片即可,大功告成!

我另外的工作流:微信公众号自动发布文章:mp-wechat publish articles automaticly