更新日志新功能

现在可以在同一对话中继续追问 ChatGPT

ChatGPT
带两个追问的 ChatGPT 任务请求,以及同一对话返回的三个回答

在 ChatGPT 任务中加入最多 4 个追问,逐条获取同一对话返回的回答及其来源和搜索查询。

获得的结果

  • payload.followUps:在第一个回答之后,于同一 ChatGPT 对话中继续提出的问题,最多 4 个。
  • 响应中的 followUps:按顺序列出每轮追问的回答。每项包含发送的 prompt,以及该回答的 text、markdown、sources、searchQueries 和 model。
  • select:点击 ChatGPT 在回答中显示的预算、用途等选择表单按钮,获取按条件缩小范围后的回答。selection 记录点击的按钮和所选的值。
  • 顶层字段仍是第一个回答,现有的读取代码照常运行。

工作原理

追问在第一个回答开启的对话中发送,ChatGPT 会结合前面的对话作答。在下面的示例中,ChatGPT 先为 10 人规模的初创公司推荐了 HubSpot、Pipedrive 和 Attio。接着问 “Which of those has a free plan?”,它用一张表列出了 HubSpot、Attio、Zoho CRM、Pipedrive 和 Close 的免费方案;第三轮则按每席位价格比较了 HubSpot 和 Attio。

当回答末尾带有选择表单时,ChatGPT 会让用户选择选项并点击按钮。在韩国提问 “가성비 무선 이어폰 3개 추천해줘”(推荐 3 款高性价比无线耳机)时,回答附带了选择手机、预算和用途的表单。{ "select": {} } 用 ChatGPT 预先选好的值(Galaxy、5 万韩元以下、通勤和听音乐)点击了 “조건에 맞춰 다시 추천받기” 按钮,并收到了按这些条件给出的新推荐。

button 从 0 开始计数上一个回答中的按钮,默认值为 0。choices 可以是按表单顺序排列的数组,也可以是以 layout 中各选择项的 name 为键的对象。每个值可以是选项的值、标签或从 0 开始的位置。上一个回答中缺少对应的表单、按钮或选项时,剩余的追问停止,followUpsStopped 说明原因,任务以已收到的回答完成。

每一轮都执行与第一个回答相同的检查(空回答、指定位置和模型)。未通过检查的一轮会像 ChatGPT 的重新生成一样,在对话的同一位置重新提问。在韩国进行的五轮对话耗时 240 到 285 秒。

应用场景

  • 跟踪第一个回答之后的购买过程:询问最便宜的产品或免费方案,看哪些品牌留在回答中。
  • 点击 ChatGPT 在购物回答中显示的预算和用途表单,衡量每种选择下缩小范围后的推荐。
  • 请 ChatGPT 比较你的品牌和第一个回答中出现的竞品,并查看它为比较而搜索的来源。

发送请求

在 Authorization 请求头中带上 API 密钥发送请求。

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "CHATGPT",
    "payload": {
      "prompt": "What are the best CRM tools for a 10-person startup?",
      "country": "US",
      "followUps": [
        { "prompt": "Which of those has a free plan?" },
        { "prompt": "Compare the top two on price per seat." }
      ]
    }
  }'

请求字段

taskTypestring必填
要运行的引擎,例如 CHATGPT 或 GOOGLE。
payload.promptstring必填
按用户在聊天框中输入的方式写的问题,最多 100,000 个字符。
payload.countrystring
提问所在市场的两位国家代码,例如 US、KR、JP。默认 US。
payload.followUpsarray
在第一个回答之后,于同一 ChatGPT 对话中继续的轮次,最多 4 个。每项为发送问题的 {"prompt": "…"},或点击上一个回答中表单按钮的 {"select": {…}}。适用于 CHATGPT。
webhook.urlstring
你服务器上的 HTTPS 地址。任务完成后立即把结果推送到这里。

响应

完成的任务如下所示,已截取部分内容。

JSON
{
  "success": true,
  "task": {
    "id": "0c61ad33-1514-47b2-b7f2-d79d4a6cd956",
    "taskType": "CHATGPT",
    "status": "COMPLETED",
    "createdAt": "2026-10-16T00:02:14.833Z"
  },
  "credits": { "creditsToCharge": 3, "creditsCharged": 3 },
  "response": {
    "text": "For a 10-person startup, the best CRM is usually one that your team can adopt quickly, keeps sales activity organized, and doesn't require a full-time administrator to maintain.\n\n**My recommendation: start by evaluating HubSpot, Pipedrive, and Attio.** …",
    "sources": [
      {
        "position": 1,
        "url": "https://stackbytrade.com/startups/best-crm/",
        "label": "Best CRM for Startups (2026): 4 Options Compared on Price and Scale | StackByTrade",
        "attribution": "stackbytrade.com"
      }
    ],
    "searchQueries": [
      "best CRM software for startups 2026 HubSpot Pipedrive Attio Zoho Salesforce pricing features"
    ],
    "model": "gpt-6",
    "followUps": [
      {
        "prompt": "Which of those has a free plan?",
        "text": "## Free-plan comparison\n\n| CRM | Free plan? | Important limitation |\n|---|---|---|\n| **HubSpot** | Yes | Up to 2 users and 1,000 contacts on its free CRM offering. … |\n| **Attio** | Yes | Up to 3 seats. … |\n…",
        "sources": [
          {
            "position": 1,
            "url": "https://www.pipedrive.com/en/pricing/professional-crm",
            "label": "CRM Pricing Plans | Affordable CRM Software Costs | Pipedrive",
            "attribution": "pipedrive.com"
          }
        ],
        "searchQueries": [
          "HubSpot CRM free plan 2026 official pricing",
          "Attio free plan pricing 2026 official"
        ],
        "model": "gpt-6"
      },
      {
        "prompt": "Compare the top two on price per seat.",
        "text": "For your 10-person startup, the top two from my earlier recommendation were **HubSpot and Pipedrive**. …",
        "sources": [
          {
            "position": 1,
            "url": "https://www.hubspot.com/products/crm",
            "label": "Streamline Your Entire Business With a Free CRM | HubSpot",
            "attribution": "www.hubspot.com"
          }
        ],
        "searchQueries": [
          "HubSpot CRM pricing per seat 2026 official pricing free seats Starter annual billing",
          "Attio CRM pricing per seat 2026 official pricing free seats Plus annual billing"
        ],
        "model": "gpt-6"
      }
    ]
  }
}
task.statusstring
依次为 QUEUED、PROCESSING,最终为附带回答的 COMPLETED 或附带 error 的 FAILED。
credits.creditsChargedinteger
已完成任务扣除的积分。失败的任务为 0。
response.textstring
纯文本形式的回答。
response.sourcesarray
回答引用的页面,按引擎展示的顺序排列,含 position、url 和 label。
response.followUpsarray
每个追问对应一个回答,按发送顺序排列。每项包含发送的 prompt、select 时点击的按钮和所选值 selection,以及与第一个回答相同的字段,如 text、markdown、sources、searchQueries 和 model。
response.followUpsStoppedobject
当 select 找不到可点击的表单、按钮或选项时返回:该追问的 index、NO_FOLLOW_UP_FORM 等 code 和 message。任务以此前收到的回答完成。

获取结果

请求会立即返回 status 为 QUEUED 的任务。用 GET /v1/async/task/{id} 轮询,直到 status 变为 COMPLETED 或 FAILED;或者加上 webhook.url,在服务器上接收同样的 task、credits 和 response。任务结束后,结果保留 24 小时供查询。

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

价格

每个回答 1 个积分,与 ChatGPT 任务相同。下面的示例返回 3 个回答,扣除 3 个积分。追问中途停止时,按已收到的回答扣费。

更多更新

接收最新消息

通过邮件接收产品更新。

RSS 订阅