npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-doubao-api

v0.1.5

Published

n8n节点 - 豆包大模型API调用

Readme

n8n-nodes-doubao-api

这是一个 n8n 社区节点,用于调用豆包大模型 API,实现人工智能对话和内容生成。

安装

在 n8n 项目目录中执行以下命令安装此节点:

npm install n8n-nodes-doubao-api

或者在 n8n 界面中,通过 设置 -> 社区节点 进行安装。

功能

  • 支持 doubao-1.5-pro-32k-250115doubao-1.5-7b-Chat 模型
  • 可自定义系统提示词和用户提示词
  • 支持请求超时设置和自动重试
  • 完全符合豆包 API 的请求和响应格式

使用方法

  1. 在 n8n 中创建一个工作流
  2. 添加"豆包 API"节点
  3. 配置节点参数:
    • 认证方式:选择 API Key
    • 模型:选择要使用的豆包模型
    • 系统提示词:设置 AI 的角色和行为
    • 用户提示词:与系统提示词组合使用,引导AI进行回答
    • 用户输入:实际需要 AI 回答的内容
    • 选项(可选):
      • 超时时间:API 请求超时设置,默认 30 秒
      • 最大重试次数:请求失败时重试次数,默认 3 次

凭证设置

使用此节点需要设置豆包 API 凭证:

  1. 在 n8n 中进入 凭证 页面
  2. 点击 添加凭证 按钮
  3. 选择 豆包 API 类型
  4. 输入在豆包官网获取的 API Key

输出数据

节点执行成功后,输出的 JSON 数据格式如下:

{
  "content": "AI生成的回复内容",
  "model": "使用的模型名称",
  "created": 1234567890,
  "id": "请求ID",
  "usage": {
    "prompt_tokens": 15,
    "completion_tokens": 10,
    "total_tokens": 25
  }
}

注意事项

  • 豆包 API 请求需要将系统提示词和用户提示词组合到一起
  • API 请求需要有效的豆包账户和足够的使用额度
  • 确保网络环境能够正常访问豆包 API 服务

常见问题

API 调用失败怎么办?

  • 检查 API Key 是否正确
  • 检查网络连接是否正常
  • 确认豆包账户有足够的使用额度
  • 查看错误日志了解详细错误信息

如何优化响应结果?

  • 优化系统提示词和用户提示词
  • 提供更清晰、具体的用户输入
  • 针对不同场景选择适合的模型