Duaer

集成

在 Duaer 里使用 GraphQL

在 Duaer 里,GraphQL 是内置节点。节点上主要填写 HTTP Request Method、Endpoint、Ignore SSL Issues (Insecure)、Query 等 6 项。

把 GraphQL 加到 Duaer 工作流程

带示例的完整说明见 在 Duaer 里用 GraphQL 请求接口。

  1. 在 Duaer 画布上打开节点面板,搜索 GraphQL,接在上一个节点后面。
  2. 在 Authentication 里选 Predefined Credential Type、Basic Auth、Custom Auth、Digest Auth、Header Auth、None、OAuth1、OAuth2、Query Auth 其中一种,再在 Credential to connect with 里选择或新建对应凭证(Basic Auth、Custom Auth、Digest Auth、Header Auth、Query Auth、OAuth1 API、OAuth2 API)。
  3. 填写 Endpoint、Query。
  4. 点 Execute step,查看输出。

Duaer 里 GraphQL 的参数

HTTP Request Method、Endpoint、Ignore SSL Issues (Insecure)、Query、Response Format、Headers。

在 Duaer 里把 GraphQL 当作 AI Agent 的工具

在 AI Agent 的「工具」(Tool)输入里搜索 GraphQL 并添加,由 Agent 决定什么时候调用。要让模型填写的字段,点字段旁的星形按钮,或写 $fromAI('name', '要填什么');固定值保持你设定的内容。

常见问题

Duaer 的 GraphQL 要填什么?

在 Duaer 里,GraphQL 主要填写 HTTP Request Method、Endpoint、Ignore SSL Issues (Insecure)、Query、Response Format、Headers。

Duaer 的 GraphQL 用哪种凭证?

Duaer 的 GraphQL 根据 Authentication 的选择,使用 Basic Auth、Custom Auth、Digest Auth、Header Auth、Query Auth、OAuth1 API、OAuth2 API 之一。

同组