xiaozhi-client 1.9.4-beta.1 → 1.9.4-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/Logger.js +3 -0
- package/dist/backend/Logger.js.map +1 -0
- package/dist/backend/WebServer.js +93 -0
- package/dist/backend/WebServer.js.map +1 -0
- package/dist/backend/WebServerLauncher.js +11 -17
- package/dist/backend/WebServerLauncher.js.map +1 -1
- package/dist/backend/managers/MCPServiceManagerSingleton.js +27 -0
- package/dist/backend/managers/MCPServiceManagerSingleton.js.map +1 -0
- package/dist/backend/package.json +31 -50
- package/dist/backend/templates/json5/xiaozhi.config.json5 +14 -14
- package/dist/cli/index.js +29 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -0
- package/dist/frontend/assets/index-88NfCOo9.js.map +1 -1
- package/dist/shared-types/api-aP8BHcbg.d.ts +97 -0
- package/dist/shared-types/api.d.ts +202 -0
- package/dist/shared-types/api.js +50 -0
- package/dist/shared-types/api.js.map +1 -0
- package/dist/shared-types/app-oAmColIN.d.ts +91 -0
- package/dist/shared-types/chunk-BMOKIX3Q.js +51 -0
- package/dist/shared-types/chunk-BMOKIX3Q.js.map +1 -0
- package/dist/shared-types/config.d.ts +97 -0
- package/dist/shared-types/config.js +1 -0
- package/dist/shared-types/config.js.map +1 -0
- package/dist/shared-types/coze.d.ts +30 -0
- package/dist/shared-types/coze.js +1 -0
- package/dist/shared-types/coze.js.map +1 -0
- package/dist/shared-types/index.d.ts +186 -0
- package/dist/shared-types/index.js +4 -17
- package/dist/shared-types/index.js.map +1 -1
- package/dist/shared-types/mcp.d.ts +91 -0
- package/dist/shared-types/mcp.js +22 -0
- package/dist/shared-types/mcp.js.map +1 -0
- package/dist/shared-types/message-xoOM7ZuT.d.ts +154 -0
- package/dist/shared-types/timeout-CCp_IFHg.d.ts +39 -0
- package/dist/shared-types/toolApi-DYSy8ebd.d.ts +208 -0
- package/dist/shared-types/utils.d.ts +115 -0
- package/dist/shared-types/utils.js +15 -0
- package/dist/shared-types/utils.js.map +1 -0
- package/dist/shared-types/workflow-DDqq5Jgp.d.ts +83 -0
- package/package.json +31 -50
- package/templates/json5/xiaozhi.config.json5 +14 -14
- package/dist/backend/WebServerLauncher.d.ts +0 -1
- package/dist/backend/cli.d.ts +0 -1
- package/dist/backend/cli.js +0 -129
- package/dist/backend/cli.js.map +0 -1
- package/dist/cli.js +0 -2
- package/dist/docs/404/index.html +0 -19
- package/dist/docs/404.html +0 -19
- package/dist/docs/_next/static/JZ0ESgtaHnsqkxSabOqqU/_buildManifest.js +0 -1
- package/dist/docs/_next/static/JZ0ESgtaHnsqkxSabOqqU/_ssgManifest.js +0 -1
- package/dist/docs/_next/static/chunks/112-c9cbd8401d35f825.js +0 -4
- package/dist/docs/_next/static/chunks/2a9bc5d7-4c434acf20ba934a.js +0 -1
- package/dist/docs/_next/static/chunks/782-c26ca6c69e488d48.js +0 -1
- package/dist/docs/_next/static/chunks/799-fe0d35806fd12012.js +0 -1
- package/dist/docs/_next/static/chunks/9b1cb2c3-cc9ed703e6aef1a2.js +0 -1
- package/dist/docs/_next/static/chunks/app/[[...mdxPath]]/page-48f5c8f3210e0a8a.js +0 -1
- package/dist/docs/_next/static/chunks/app/_not-found/page-2e38866a1cbb77e4.js +0 -1
- package/dist/docs/_next/static/chunks/app/layout-e8f420537fd59e8d.js +0 -1
- package/dist/docs/_next/static/chunks/framework-b73126dabbf07067.js +0 -1
- package/dist/docs/_next/static/chunks/main-75dc65850b89d90d.js +0 -1
- package/dist/docs/_next/static/chunks/main-app-3303134270964ce6.js +0 -1
- package/dist/docs/_next/static/chunks/pages/_app-e698a68d07c8993d.js +0 -1
- package/dist/docs/_next/static/chunks/pages/_error-189a41ab5833da03.js +0 -1
- package/dist/docs/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/dist/docs/_next/static/chunks/webpack-10e2bf7d852ddb6e.js +0 -1
- package/dist/docs/_next/static/css/2d82b615fcca1590.css +0 -1
- package/dist/docs/_next/static/css/b03484a3c350cf6e.css +0 -1
- package/dist/docs/_next/static/css/b289318ef4b60b0a.css +0 -1
- package/dist/docs/_next/static/media/get-parameter.62eee93d.png +0 -0
- package/dist/docs/changelog/index.html +0 -585
- package/dist/docs/changelog/index.txt +0 -1079
- package/dist/docs/images/add-to-cherry-studio/step-1.png +0 -0
- package/dist/docs/images/add-to-cherry-studio/step-2.png +0 -0
- package/dist/docs/images/add-to-cherry-studio/step-3.png +0 -0
- package/dist/docs/images/add-to-cherry-studio/step-4.png +0 -0
- package/dist/docs/images/add-to-cherry-studio/step-5.png +0 -0
- package/dist/docs/images/add-to-cursor/step-1.png +0 -0
- package/dist/docs/images/add-to-cursor/step-2.png +0 -0
- package/dist/docs/images/add-to-cursor/step-3.png +0 -0
- package/dist/docs/images/coze-workflow/config-workflow-step-1.png +0 -0
- package/dist/docs/images/coze-workflow/config-workflow-step-2.png +0 -0
- package/dist/docs/images/coze-workflow/config-workflow-step-3.png +0 -0
- package/dist/docs/images/coze-workflow/get-parameter.png +0 -0
- package/dist/docs/images/integrate-to-cherry-studio.png +0 -0
- package/dist/docs/images/integrate-to-cursor.png +0 -0
- package/dist/docs/images/modelscope/step-1.png +0 -0
- package/dist/docs/images/modelscope/step-2.png +0 -0
- package/dist/docs/images/modelscope/step-3.png +0 -0
- package/dist/docs/images/modelscope/step-4.png +0 -0
- package/dist/docs/images/preview.png +0 -0
- package/dist/docs/images/use-multi-xiaozhi-mcp-endpoints/step-1.png +0 -0
- package/dist/docs/images/use-multi-xiaozhi-mcp-endpoints/step-2.png +0 -0
- package/dist/docs/images/use-multi-xiaozhi-mcp-endpoints/step-3.png +0 -0
- package/dist/docs/images/use-multi-xiaozhi-mcp-endpoints/step-4.png +0 -0
- package/dist/docs/images/use-multi-xiaozhi-mcp-endpoints/step-5.png +0 -0
- package/dist/docs/images/web-ui-preview.png +0 -0
- package/dist/docs/index.html +0 -22
- package/dist/docs/index.txt +0 -41
- package/dist/docs/quickstart/index.html +0 -64
- package/dist/docs/quickstart/index.txt +0 -185
- package/dist/docs/reference/command/index.html +0 -20
- package/dist/docs/reference/command/index.txt +0 -42
- package/dist/docs/usage/as-mcp/index.html +0 -36
- package/dist/docs/usage/as-mcp/index.txt +0 -101
- package/dist/docs/usage/coze-workflow/index.html +0 -35
- package/dist/docs/usage/coze-workflow/index.txt +0 -120
- package/dist/docs/usage/docker/index.html +0 -40
- package/dist/docs/usage/docker/index.txt +0 -154
- package/dist/docs/usage/modelscope/index.html +0 -32
- package/dist/docs/usage/modelscope/index.txt +0 -109
- package/dist/docs/usage/multi-endpoint/index.html +0 -32
- package/dist/docs/usage/multi-endpoint/index.txt +0 -118
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><!--JZ0ESgtaHnsqkxSabOqqU--><html lang="en" dir="ltr"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="image" href="/images/coze-workflow/config-workflow-step-1.png"/><link rel="preload" as="image" href="/images/coze-workflow/config-workflow-step-2.png"/><link rel="preload" as="image" href="/images/coze-workflow/config-workflow-step-3.png"/><link rel="stylesheet" href="/_next/static/css/b03484a3c350cf6e.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/2d82b615fcca1590.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/b289318ef4b60b0a.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-10e2bf7d852ddb6e.js"/><script src="/_next/static/chunks/9b1cb2c3-cc9ed703e6aef1a2.js" async=""></script><script src="/_next/static/chunks/799-fe0d35806fd12012.js" async=""></script><script src="/_next/static/chunks/main-app-3303134270964ce6.js" async=""></script><script src="/_next/static/chunks/2a9bc5d7-4c434acf20ba934a.js" async=""></script><script src="/_next/static/chunks/782-c26ca6c69e488d48.js" async=""></script><script src="/_next/static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js" async=""></script><script src="/_next/static/chunks/112-c9cbd8401d35f825.js" async=""></script><script src="/_next/static/chunks/app/layout-e8f420537fd59e8d.js" async=""></script><meta name="theme-color" media="(prefers-color-scheme: light)" content="rgb(250,250,250)"/><meta name="theme-color" media="(prefers-color-scheme: dark)" content="rgb(17,17,17)"/><title>集成扣子工作流</title><style>:root {
|
|
2
|
-
--nextra-primary-hue: 212deg;
|
|
3
|
-
--nextra-primary-saturation: 100%;
|
|
4
|
-
--nextra-primary-lightness: 45%;
|
|
5
|
-
--nextra-bg: 250,250,250;
|
|
6
|
-
--nextra-content-width: 90rem;
|
|
7
|
-
}
|
|
8
|
-
.dark {
|
|
9
|
-
--nextra-primary-hue: 204deg;
|
|
10
|
-
--nextra-primary-saturation: 100%;
|
|
11
|
-
--nextra-primary-lightness: 55%;
|
|
12
|
-
--nextra-bg: 17,17,17;
|
|
13
|
-
}
|
|
14
|
-
::selection {
|
|
15
|
-
background: hsla(var(--nextra-primary-hue),var(--nextra-primary-saturation),var(--nextra-primary-lightness),.3);
|
|
16
|
-
}
|
|
17
|
-
html {
|
|
18
|
-
background: rgb(var(--nextra-bg));
|
|
19
|
-
}</style><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><a href="#nextra-skip-nav" class="nextra-skip-nav x:sr-only" type="button" data-headlessui-state="">Skip to Content</a><header class="nextra-navbar x:sticky x:top-0 x:z-30 x:w-full x:bg-transparent x:print:hidden x:max-md:[.nextra-banner:not([class$=hidden])~&]:top-(--nextra-banner-height)"><div class="nextra-navbar-blur x:absolute x:-z-1 x:size-full nextra-border x:border-b x:backdrop-blur-md x:bg-nextra-bg/70"></div><nav style="height:var(--nextra-navbar-height)" class="x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)] x:justify-end"><a class="x:flex x:items-center x:me-auto x:transition-opacity x:focus-visible:nextra-focus x:hover:opacity-75" aria-label="Home page" href="/"><b>Xiaozhi Client</b></a><div class="x:flex x:gap-4 x:overflow-x-auto nextra-scrollbar x:py-1.5 x:max-md:hidden"></div><div class="x:max-md:hidden"><div class="nextra-search x:relative x:flex x:items-center x:text-gray-900 x:dark:text-gray-300 x:contrast-more:text-gray-800 x:contrast-more:dark:text-gray-300"><input spellCheck="false" autoComplete="off" class="x:rounded-lg x:px-3 x:py-2 x:transition-all x:w-full x:md:w-64 x:text-base x:leading-tight x:md:text-sm x:bg-black/[.05] x:dark:bg-gray-50/10 x:placeholder:text-gray-600 x:dark:placeholder:text-gray-400 x:contrast-more:border x:contrast-more:border-current x:[&::-webkit-search-cancel-button]:appearance-none" placeholder="Search documentation…" id="headlessui-combobox-input-_R_5ml7lb_" role="combobox" type="search" aria-expanded="false" aria-autocomplete="list" data-headlessui-state="" value=""/><kbd class="x:absolute x:my-1.5 x:select-none x:pointer-events-none x:end-1.5 x:transition-all x:h-5 x:rounded x:bg-nextra-bg x:px-1.5 x:font-mono x:text-[11px] x:font-medium x:text-gray-600 x:dark:text-gray-400 x:border nextra-border x:contrast-more:text-current x:items-center x:gap-1 x:flex x:max-sm:hidden not-prose x:invisible x:opacity-0">CTRL K</kbd></div></div><a href="https://github.com/shenjingnan/xiaozhi-client" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus"><svg fill="currentColor" viewBox="3 3 18 18" height="24" aria-label="Project repository"><path d="M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"></path></svg></a><a href="https://qun.qq.com/universal-share/share?ac=1&authKey=c08PvS2zvAF1NN%2F%2BuaOi0ze1AElTIsvFBLwbWUMFc2ixjaZYxqZTUQHzipwd8Kka&busi_data=eyJncm91cENvZGUiOiIxMDU0ODg4NDczIiwidG9rZW4iOiJuSmJUN2cyUEVkNEQ5WXovM3RQbFVNcDluMGVibUNZTUQvL1RuQnFJRjBkZmRZQnRBRTdwU0szL3V2Y0dLc1ZmIiwidWluIjoiMzkxMTcyMDYwMCJ9&data=9cH6_zEC-sN3xYlwzKEWiYF71RLY9CId5taN-gy6XZo7axSlSWDpd1Ojui5hYMQKIgEJYSPw59XYgF5vH2wLog&svctype=4&tempid=h5_group_info" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus"><svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path d="M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z" p-id="4686"></path></svg></a><button class="x:transition x:cursor-pointer nextra-hamburger x:md:hidden" aria-label="Menu" type="button" data-headlessui-state=""><svg viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" stroke-linecap="round" height="24" class=""><g><path d="M4 6h16"></path></g><path d="M4 12h16"></path><g><path d="M4 18h16"></path></g></svg></button></nav></header><aside class="nextra-mobile-nav x:flex x:flex-col x:fixed x:inset-0 x:pt-(--nextra-navbar-height) x:z-20 x:overscroll-contain x:[contain:layout_style] x:md:hidden x:[.nextra-banner:not([class$=hidden])~&]:pt-[calc(var(--nextra-banner-height)+var(--nextra-navbar-height))] x:bg-nextra-bg x:[transform:translate3d(0,-100%,0)]"><div class="x:px-4 x:pt-4"><div class="nextra-search x:relative x:flex x:items-center x:text-gray-900 x:dark:text-gray-300 x:contrast-more:text-gray-800 x:contrast-more:dark:text-gray-300"><input spellCheck="false" autoComplete="off" class="x:rounded-lg x:px-3 x:py-2 x:transition-all x:w-full x:md:w-64 x:text-base x:leading-tight x:md:text-sm x:bg-black/[.05] x:dark:bg-gray-50/10 x:placeholder:text-gray-600 x:dark:placeholder:text-gray-400 x:contrast-more:border x:contrast-more:border-current x:[&::-webkit-search-cancel-button]:appearance-none" placeholder="Search documentation…" id="headlessui-combobox-input-_R_mqrlb_" role="combobox" type="search" aria-expanded="false" aria-autocomplete="list" data-headlessui-state="" value=""/><kbd class="x:absolute x:my-1.5 x:select-none x:pointer-events-none x:end-1.5 x:transition-all x:h-5 x:rounded x:bg-nextra-bg x:px-1.5 x:font-mono x:text-[11px] x:font-medium x:text-gray-600 x:dark:text-gray-400 x:border nextra-border x:contrast-more:text-current x:items-center x:gap-1 x:flex x:max-sm:hidden not-prose x:invisible x:opacity-0">CTRL K</kbd></div></div><ul class="x:grid x:gap-1 x:p-4 x:overflow-y-auto nextra-scrollbar nextra-mask"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/">介绍</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/quickstart/">快速上手</a></li><li class="open"><button class="x:transition x:cursor-pointer x:items-center x:justify-between x:gap-2 x:text-start x:w-full x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" data-href="/usage" type="button" data-headlessui-state="">使用姿势<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="18" class="x:shrink-0 x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5 x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180 x:ltr:rotate-90 x:rtl:-rotate-270"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button><div class="x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none x:opacity-100" style="transition-duration:500ms"><ul class="x:grid x:gap-1 x:relative x:before:absolute x:before:inset-y-1 x:before:w-px x:before:bg-gray-200 x:before:content-[""] x:dark:before:bg-neutral-800 x:ps-3 x:before:start-0 x:pt-1 x:ms-3"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/docker/">使用 Docker 部署</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/modelscope/">使用 魔搭社区 MCP</a></li><li class="active"><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:bg-primary-100 x:font-semibold x:text-primary-800 x:dark:bg-primary-400/10 x:dark:text-primary-600 x:contrast-more:border-primary-500!" href="/usage/coze-workflow/">集成扣子工作流</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/multi-endpoint/">配置多个小智接入点</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/as-mcp/">作为 MCP 服务使用</a></li></ul></div></li><li class="open"><button class="x:transition x:cursor-pointer x:items-center x:justify-between x:gap-2 x:text-start x:w-full x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" data-href="/reference" type="button" data-headlessui-state="">参考手册<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="18" class="x:shrink-0 x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5 x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180 x:ltr:rotate-90 x:rtl:-rotate-270"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button><div class="x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none x:opacity-100" style="transition-duration:500ms"><ul class="x:grid x:gap-1 x:relative x:before:absolute x:before:inset-y-1 x:before:w-px x:before:bg-gray-200 x:before:content-[""] x:dark:before:bg-neutral-800 x:ps-3 x:before:start-0 x:pt-1 x:ms-3"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/reference/command/">常用命令</a></li></ul></div></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/changelog/">更新日志</a></li></ul><div class="nextra-sidebar-footer x:border-t nextra-border x:flex x:items-center x:gap-2 x:py-4 x:mx-4 x:mt-auto"><button title="Change theme" class="x:cursor-pointer x:h-7 x:rounded-md x:px-2 x:text-xs x:font-medium x:transition-colors x:text-gray-600 x:dark:text-gray-400 x:flex x:items-center x:gap-2 x:grow" id="headlessui-listbox-button-_R_rerlb_" type="button" aria-haspopup="listbox" aria-expanded="false" data-headlessui-state=""><svg fill="currentColor" viewBox="2 2 20 20" stroke="currentColor" height="12"><path stroke-linecap="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>Light</button></div></aside><div class="x:mx-auto x:flex x:max-w-(--nextra-content-width)"><aside id="_R_lfivblb_" class="nextra-sidebar x:print:hidden x:transition-all x:ease-in-out x:max-md:hidden x:flex x:flex-col x:h-[calc(100dvh-var(--nextra-navbar-height))] x:top-(--nextra-navbar-height) x:shrink-0 x:w-64 x:sticky"><div class="x:p-4 x:overflow-y-auto nextra-scrollbar nextra-mask x:grow"><div class="x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none x:opacity-100" style="transition-duration:500ms"><ul class="x:grid x:gap-1"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/">介绍</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/quickstart/">快速上手</a></li><li class="open"><button class="x:transition x:cursor-pointer x:items-center x:justify-between x:gap-2 x:text-start x:w-full x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" data-href="/usage" type="button" data-headlessui-state="">使用姿势<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="18" class="x:shrink-0 x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5 x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180 x:ltr:rotate-90 x:rtl:-rotate-270"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button><div class="x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none x:opacity-100" style="transition-duration:500ms"><ul class="x:grid x:gap-1 x:relative x:before:absolute x:before:inset-y-1 x:before:w-px x:before:bg-gray-200 x:before:content-[""] x:dark:before:bg-neutral-800 x:ps-3 x:before:start-0 x:pt-1 x:ms-3"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/docker/">使用 Docker 部署</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/modelscope/">使用 魔搭社区 MCP</a></li><li class="active"><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:bg-primary-100 x:font-semibold x:text-primary-800 x:dark:bg-primary-400/10 x:dark:text-primary-600 x:contrast-more:border-primary-500!" href="/usage/coze-workflow/">集成扣子工作流</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/multi-endpoint/">配置多个小智接入点</a></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/usage/as-mcp/">作为 MCP 服务使用</a></li></ul></div></li><li class="open"><button class="x:transition x:cursor-pointer x:items-center x:justify-between x:gap-2 x:text-start x:w-full x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" data-href="/reference" type="button" data-headlessui-state="">参考手册<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="18" class="x:shrink-0 x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5 x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180 x:ltr:rotate-90 x:rtl:-rotate-270"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button><div class="x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none x:opacity-100" style="transition-duration:500ms"><ul class="x:grid x:gap-1 x:relative x:before:absolute x:before:inset-y-1 x:before:w-px x:before:bg-gray-200 x:before:content-[""] x:dark:before:bg-neutral-800 x:ps-3 x:before:start-0 x:pt-1 x:ms-3"><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/reference/command/">常用命令</a></li></ul></div></li><li class=""><a class="x:focus-visible:nextra-focus x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word] x:cursor-pointer x:contrast-more:border x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900 x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50 x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50 x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50" href="/changelog/">更新日志</a></li></ul></div></div><div class="x:sticky x:bottom-0 x:bg-nextra-bg nextra-sidebar-footer x:border-t nextra-border x:flex x:items-center x:gap-2 x:py-4 x:mx-4"><button title="Change theme" class="x:cursor-pointer x:h-7 x:rounded-md x:px-2 x:text-xs x:font-medium x:transition-colors x:text-gray-600 x:dark:text-gray-400 x:flex x:items-center x:gap-2 x:grow" id="headlessui-listbox-button-_R_6talfivblb_" type="button" aria-haspopup="listbox" aria-expanded="false" data-headlessui-state=""><svg fill="currentColor" viewBox="2 2 20 20" stroke="currentColor" height="12"><path stroke-linecap="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>Light</button><button class="x:transition x:cursor-pointer x:rounded-md x:p-2 x:text-gray-600 x:dark:text-gray-400" aria-expanded="true" aria-controls="_R_lfivblb_" title="Collapse sidebar" type="button" data-headlessui-state=""><svg viewBox="0 0 16 16" fill="currentColor" height="12" class=""><path d="M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z"></path><path fill-rule="evenodd" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"></path></svg></button></div></aside><nav class="nextra-toc x:order-last x:max-xl:hidden x:w-64 x:shrink-0 x:print:hidden" aria-label="table of contents"><div class="x:grid x:grid-rows-[min-content_1fr_min-content] x:sticky x:top-(--nextra-navbar-height) x:text-sm x:max-h-[calc(100vh-var(--nextra-navbar-height))]"><p class="x:pt-6 x:px-4 x:font-semibold x:tracking-tight">On This Page</p><ul class="x:p-4 nextra-scrollbar x:overscroll-y-contain x:overflow-y-auto x:hyphens-auto nextra-mask"><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#获取扣子空间授权凭证" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">获取扣子空间授权凭证</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#配置扣子凭证" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">配置扣子凭证</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#启动服务" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">启动服务</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#集成一个工作流" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">集成一个工作流</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#测试效果" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">测试效果</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#faq" class="x:focus-visible:nextra-focus x:font-semibold x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">FAQ</a></li><li class="x:my-2 x:scroll-my-6 x:scroll-py-6"><a href="#q-如果获取工作流入参" class="x:focus-visible:nextra-focus x:ms-3 x:block x:transition-colors x:subpixel-antialiased x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300 x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words">Q: 如果获取工作流入参?</a></li></ul><div class="x:grid x:gap-2 x:py-4 x:mx-4 x:border-t nextra-border"><a href="https://github.com/shenjingnan/xiaozhi-client/issues/new?title=Feedback%20for%20%E2%80%9C%E9%9B%86%E6%88%90%E6%89%A3%E5%AD%90%E5%B7%A5%E4%BD%9C%E6%B5%81%E2%80%9D&labels=feedback" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-xs x:font-medium x:transition x:text-gray-600 x:dark:text-gray-400 x:hover:text-gray-800 x:dark:hover:text-gray-200 x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100">Question? Give us feedback<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a><a href="https://github.com/shenjingnan/xiaozhi-client/tree/main/docs/content/usage/coze-workflow.mdx" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-xs x:font-medium x:transition x:text-gray-600 x:dark:text-gray-400 x:hover:text-gray-800 x:dark:hover:text-gray-200 x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100">Edit this page<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a><button class="x:transition x:cursor-pointer x:flex x:items-center x:gap-1.5 x:whitespace-nowrap x:opacity-0 x:text-xs x:font-medium x:transition x:text-gray-600 x:dark:text-gray-400 x:hover:text-gray-800 x:dark:hover:text-gray-200 x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100" aria-hidden="true" type="button" disabled="" data-headlessui-state="disabled" data-disabled="">Scroll to top<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="1.1em" class="x:-rotate-90 x:border x:rounded-full x:border-current"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button></div></div></nav><article class="x:w-full x:min-w-0 x:break-words x:min-h-[calc(100vh-var(--nextra-navbar-height))] x:text-slate-700 x:dark:text-slate-200 x:pb-8 x:px-4 x:pt-4 x:md:px-12"><div class="nextra-breadcrumb x:mt-1.5 x:flex x:items-center x:gap-1 x:overflow-hidden x:text-sm x:text-gray-600 x:dark:text-gray-400 x:contrast-more:text-current"><a class="x:whitespace-nowrap x:transition-colors x:min-w-6 x:overflow-hidden x:text-ellipsis x:focus-visible:nextra-focus x:ring-inset x:hover:text-gray-900 x:dark:hover:text-gray-100" title="使用姿势" href="/usage/docker/">使用姿势</a><svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="14" class="x:shrink-0 x:rtl:rotate-180"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="x:whitespace-nowrap x:transition-colors x:font-medium x:text-black x:dark:text-gray-100" title="集成扣子工作流">集成扣子工作流</span></div><div class="x:border x:inline-flex x:rounded-md x:items-stretch nextra-border x:float-end x:overflow-hidden"><button class="x:transition x:cursor-pointer x:ps-2 x:pe-1 x:flex x:gap-2 x:text-sm x:font-medium x:items-center" type="button" data-headlessui-state=""><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16"><rect x="9" y="9" width="13" height="13" rx="2"></rect><path d="M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5"></path></svg>Copy page</button><button class="x:cursor-pointer x:h-7 x:rounded-md x:px-2 x:text-xs x:font-medium x:transition-colors x:text-gray-600 x:dark:text-gray-400 x:rounded-none" id="headlessui-listbox-button-_R_6sl5fivblb_" type="button" aria-haspopup="listbox" aria-expanded="false" data-headlessui-state=""><svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" width="12" class="x:rotate-90"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></button></div><div id="nextra-skip-nav"></div><main data-pagefind-body="true"><h1 class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-bold x:mt-2 x:text-4xl">集成扣子工作流</h1>
|
|
20
|
-
<div class="nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600"><div class="x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]" style="font-family:"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" data-pagefind-ignore="all"><svg viewBox="0 0 16 16" fill="currentColor" height=".8em" class="x:mt-[.3em]"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></div><div class="x:w-full x:min-w-0"><p class="x:not-first:mt-[1.25em] x:leading-7"><strong>前期准备</strong>: 请先将 xiaozhi-client 升级到 1.7.4 及以上版本</p></div></div>
|
|
21
|
-
<div class="nextra-steps x:ms-4 x:mb-12 x:border-s x:border-gray-200 x:ps-6 x:dark:border-neutral-800" style="--counter-id:_S_1_"><h2 id="获取扣子空间授权凭证" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">获取扣子空间授权凭证<a href="#获取扣子空间授权凭证" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2><p class="x:not-first:mt-[1.25em] x:leading-7">打开 <a href="https://www.coze.cn/open/oauth/sats" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]">扣子空间-API管理<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a> - 服务身份及凭证 - 添加</p><p class="x:not-first:mt-[1.25em] x:leading-7">xiaozhi-client 所需的最小权限如下
|
|
22
|
-
<div class="nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600"><div class="x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]" style="font-family:"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" data-pagefind-ignore="all"><svg viewBox="0 0 16 16" fill="currentColor" height=".8em" class="x:mt-[.3em]"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></div><div class="x:w-full x:min-w-0">如果你觉得一个个授权太麻烦,或者并没有特别敏感的数据,可以直接勾选所有权限</div></div></p><table class="x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0"><thead><tr class="x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"><th class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600">权限</th><th class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600">原因</th><th class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600">API文档</th><th class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600">client 版本</th></tr></thead><tbody><tr class="x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">团队空间管理 - listWorkspace</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">在获取工作流列表时使用</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><a href="https://www.coze.cn/open/docs/developer_guides/list_workspace" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]">/v1/workspaces<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a></td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><code class="nextra-code" dir="ltr">>=1.7.2</code></td></tr><tr class="x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">工作流 - listWorkflow</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">在获取工作流列表时使用</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><a href="https://www.coze.cn/open/docs/developer_guides/get_workflow_list" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]">/v1/workflows<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a></td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><code class="nextra-code" dir="ltr">>=1.7.2</code></td></tr><tr class="x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">工作流 - run</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600">在执行工作流时使用</td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><a href="https://www.coze.cn/open/docs/developer_guides/workflow_run" target="_blank" rel="noreferrer" class="x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]">/v1/workflow/run<!-- --> <svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.7" viewBox="0 0 24 24" height="1em" class="x:inline x:align-baseline x:shrink-0"><path d="M7 17L17 7"></path><path d="M7 7h10v10"></path></svg></a></td><td class="x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"><code class="nextra-code" dir="ltr">>=1.7.2</code></td></tr></tbody></table><h2 id="配置扣子凭证" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">配置扣子凭证<a href="#配置扣子凭证" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2><p class="x:not-first:mt-[1.25em] x:leading-7">请在 <code class="nextra-code" dir="ltr">xiaozhi.config.json</code> 中添加你的扣子凭证</p><div data-pagefind-ignore="all" class="nextra-code x:relative x:not-first:mt-[1.25em]"><pre class="x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose" tabindex="0"><div class="x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2"><button class="x:transition x:cursor-pointer x:border x:border-gray-300 x:dark:border-neutral-700 x:contrast-more:border-gray-900 x:contrast-more:dark:border-gray-50 x:rounded-md x:p-1.5 x:md:hidden" title="Toggle word wrap" type="button" data-headlessui-state=""><svg viewBox="0 0 24 24" fill="currentColor" height="1em"><path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"></path></svg></button></div><code class="nextra-code" dir="ltr"><span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8">{</span></span>
|
|
23
|
-
<span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF"> "platforms"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8">: {</span></span>
|
|
24
|
-
<span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF"> "coze"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8">: {</span></span>
|
|
25
|
-
<span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF"> "token"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF">"<请在此处添加你的扣子凭证>"</span></span>
|
|
26
|
-
<span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8"> }</span></span>
|
|
27
|
-
<span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8"> },</span></span>
|
|
28
|
-
<span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8">}</span></span></code></pre></div><h2 id="启动服务" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">启动服务<a href="#启动服务" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2><div data-pagefind-ignore="all" class="nextra-code x:relative x:not-first:mt-[1.25em]"><pre class="x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose" tabindex="0"><div class="x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2"><button class="x:transition x:cursor-pointer x:border x:border-gray-300 x:dark:border-neutral-700 x:contrast-more:border-gray-900 x:contrast-more:dark:border-gray-50 x:rounded-md x:p-1.5 x:md:hidden" title="Toggle word wrap" type="button" data-headlessui-state=""><svg viewBox="0 0 24 24" fill="currentColor" height="1em"><path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"></path></svg></button></div><code class="nextra-code" dir="ltr"><span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0">xiaozhi</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF"> start</span></span></code></pre></div><h2 id="集成一个工作流" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">集成一个工作流<a href="#集成一个工作流" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2><p class="x:not-first:mt-[1.25em] x:leading-7">请在浏览器中访问 <code class="nextra-code" dir="ltr">http://localhost:9999</code>
|
|
29
|
-
<div class="nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600"><div class="x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]" style="font-family:"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" data-pagefind-ignore="all"><svg viewBox="0 0 16 16" fill="currentColor" height=".8em" class="x:mt-[.3em]"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></div><div class="x:w-full x:min-w-0">如果你安装在另一台设备上,请访问 <code class="nextra-code" dir="ltr">http://<你的IP地址>:9999</code></div></div></p><span aria-owns="rmiz-modal-" data-rmiz=""><span data-rmiz-content="not-found" style="visibility:visible"><img style="margin:10px 0" src="/images/coze-workflow/config-workflow-step-1.png" alt="第一步:点击右侧 **工作流集成** 按钮" data-pagefind-index-attrs="title,alt"/></span></span><span aria-owns="rmiz-modal-" data-rmiz=""><span data-rmiz-content="not-found" style="visibility:visible"><img style="margin:10px 0" src="/images/coze-workflow/config-workflow-step-2.png" alt="第二步:在指定的工作流中点击 添加 按钮" data-pagefind-index-attrs="title,alt"/></span></span><span aria-owns="rmiz-modal-" data-rmiz=""><span data-rmiz-content="not-found" style="visibility:visible"><img style="margin:10px 0" src="/images/coze-workflow/config-workflow-step-3.png" alt="第三步:在 配置工作流参数 弹窗中配置此工作流的参数" data-pagefind-index-attrs="title,alt"/></span></span><h2 id="测试效果" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">测试效果<a href="#测试效果" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2><p class="x:not-first:mt-[1.25em] x:leading-7">使用你的硬件设备测试是否成功</p><div class="nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600"><div class="x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]" style="font-family:"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"" data-pagefind-ignore="all"><svg viewBox="0 0 16 16" fill="currentColor" height=".8em" class="x:mt-[.3em]"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg></div><div class="x:w-full x:min-w-0"><p class="x:not-first:mt-[1.25em] x:leading-7">需要注意的是,由于扣子工作流通常比较耗时,因此 xiaozhi-client 超过8秒未响应后会自动返回友好的等待处理内容给服务端
|
|
30
|
-
不过不需要担心,xiaozhi-client 会在工作流正确响应后缓存响应数据,等到下次你询问 <code class="nextra-code" dir="ltr">是否有结果了?</code> 时,会自动返回缓存的结果</p></div></div></div>
|
|
31
|
-
<h2 id="faq" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border">FAQ<a href="#faq" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h2>
|
|
32
|
-
<h3 id="q-如果获取工作流入参" class="x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl">Q: 如果获取工作流入参?<a href="#q-如果获取工作流入参" class="x:focus-visible:nextra-focus subheading-anchor" aria-label="Permalink for this section"></a></h3>
|
|
33
|
-
<p class="x:not-first:mt-[1.25em] x:leading-7">在 xiaozhi-client 配置的参数即为工作流开始节点所配置的输入字段
|
|
34
|
-
可以在扣子中找到对应工作流,点击详情查看,将对应的参数配置到 xiaozhi-client 即可
|
|
35
|
-
<span aria-owns="rmiz-modal-" data-rmiz=""><span data-rmiz-content="not-found" style="visibility:visible"><img alt="获取工作流参数" data-pagefind-index-attrs="title,alt" loading="lazy" width="3838" height="1868" decoding="async" data-nimg="1" style="color:transparent;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 160'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='none' style='filter: url(%23b);' href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEXy8/bt8PL6+fxKjop+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgZIADRhBigrKZwAxGRgYmJgAA3wARvXycngAAAABJRU5ErkJggg=='/%3E%3C/svg%3E")" src="/_next/static/media/get-parameter.62eee93d.png"/></span></span></p></main><div class="x:mt-12 x:mb-8 x:text-xs x:text-gray-600 x:text-end x:dark:text-gray-400">Last updated on<!-- --> <time dateTime="2025-12-25T05:01:17.000Z">December 25, 2025</time></div><div class="x:mb-8 x:flex x:items-center x:border-t x:pt-8 nextra-border x:print:hidden"><a title="使用 魔搭社区 MCP" class="x:focus-visible:nextra-focus x:text-gray-600 x:dark:text-gray-400 x:hover:text-gray-800 x:dark:hover:text-gray-200 x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100 x:flex x:max-w-[50%] x:items-center x:gap-1 x:py-4 x:text-base x:font-medium x:transition-colors x:[word-break:break-word] x:md:text-lg x:pe-4" href="/usage/modelscope/"><svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="20" class="x:inline x:shrink-0 x:ltr:rotate-180"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg>使用 魔搭社区 MCP</a><a title="配置多个小智接入点" class="x:focus-visible:nextra-focus x:text-gray-600 x:dark:text-gray-400 x:hover:text-gray-800 x:dark:hover:text-gray-200 x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100 x:flex x:max-w-[50%] x:items-center x:gap-1 x:py-4 x:text-base x:font-medium x:transition-colors x:[word-break:break-word] x:md:text-lg x:ps-4 x:ms-auto x:text-end" href="/usage/multi-endpoint/">配置多个小智接入点<svg viewBox="0 0 24 24" stroke="currentColor" fill="none" stroke-width="2" height="20" class="x:inline x:shrink-0 x:rtl:rotate-180"><path d="M9 5l7 7-7 7" stroke-linecap="round" stroke-linejoin="round"></path></svg></a></div></article></div><!--$--><!--/$--><div class="x:bg-gray-100 x:pb-[env(safe-area-inset-bottom)] x:dark:bg-neutral-900 x:print:bg-transparent"><hr class="nextra-border"/><footer class="x:mx-auto x:flex x:max-w-(--nextra-content-width) x:justify-center x:py-12 x:text-gray-600 x:dark:text-gray-400 x:md:justify-start x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)]">MIT <!-- -->2025<!-- --> © Xiaozhi Client.</footer></div><script src="/_next/static/chunks/webpack-10e2bf7d852ddb6e.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n3:I[6320,[],\"\"]\n4:I[7862,[],\"\"]\n6:I[6461,[],\"OutletBoundary\"]\n8:I[7320,[],\"AsyncMetadataOutlet\"]\na:I[6461,[],\"ViewportBoundary\"]\nc:I[6461,[],\"MetadataBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[7516,[],\"\"]\n:HL[\"/_next/static/css/b03484a3c350cf6e.css\",\"style\"]\n:HL[\"/_next/static/css/2d82b615fcca1590.css\",\"style\"]\n:HL[\"/_next/static/css/b289318ef4b60b0a.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"JZ0ESgtaHnsqkxSabOqqU\",\"p\":\"\",\"c\":[\"\",\"usage\",\"coze-workflow\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[[\"mdxPath\",\"usage/coze-workflow\",\"oc\"],{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b03484a3c350cf6e.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/2d82b615fcca1590.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b289318ef4b60b0a.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],\"$L2\"]}],{\"children\":[[\"mdxPath\",\"usage/coze-workflow\",\"oc\"],[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[\"$L5\",null,[\"$\",\"$L6\",null,{\"children\":[\"$L7\",[\"$\",\"$L8\",null,{\"promise\":\"$@9\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],null],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"fallback\":null,\"children\":\"$Le\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"10:I[6659,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ThemeConfigProvider\"]\n11:I[1941,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"LastUpdated\"]\n12:I[3015,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"112\",\"static/chunks/112-c9cbd8401d35f825.js\",\"177\",\"static/chunks/app/layout-e8f420537fd59e8d.js\"],\"Search\"]\n13:I[2002,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"112\",\"static/chunks/112-c9cbd8401d35f825.js\",\"177\",\"static/chunks/app/layout-e8f420537fd59e8d.js\"],\"ThemeProvider\"]\n14:I[4717,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"SkipNavLink\"]\n15:I[8750,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ConfigProvider\"]\n16:I[6193,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"\"]\n"])</script><script>self.__next_f.push([1,"2:[\"$\",\"html\",null,{\"lang\":\"en\",\"dir\":\"ltr\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$undefined\",[\"$\",\"style\",null,{\"children\":\":root {\\n --nextra-primary-hue: 212deg;\\n --nextra-primary-saturation: 100%;\\n --nextra-primary-lightness: 45%;\\n --nextra-bg: 250,250,250;\\n --nextra-content-width: 90rem;\\n}\\n.dark {\\n --nextra-primary-hue: 204deg;\\n --nextra-primary-saturation: 100%;\\n --nextra-primary-lightness: 55%;\\n --nextra-bg: 17,17,17;\\n}\\n::selection {\\n background: hsla(var(--nextra-primary-hue),var(--nextra-primary-saturation),var(--nextra-primary-lightness),.3);\\n}\\nhtml {\\n background: rgb(var(--nextra-bg));\\n}\"}],[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: light)\",\"content\":\"rgb(250,250,250)\"}],[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: dark)\",\"content\":\"rgb(17,17,17)\"}],\"$undefined\"]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L10\",null,{\"value\":{\"copyPageButton\":true,\"darkMode\":true,\"docsRepositoryBase\":\"https://github.com/shenjingnan/xiaozhi-client/tree/main/docs\",\"editLink\":\"Edit this page\",\"feedback\":{\"content\":\"Question? Give us feedback\",\"labels\":\"feedback\"},\"i18n\":[],\"lastUpdated\":[\"$\",\"$L11\",null,{}],\"navigation\":{\"next\":true,\"prev\":true},\"search\":[\"$\",\"$L12\",null,{}],\"sidebar\":{\"defaultMenuCollapseLevel\":2,\"defaultOpen\":true,\"toggleButton\":true},\"themeSwitch\":{\"dark\":\"Dark\",\"light\":\"Light\",\"system\":\"System\"},\"toc\":{\"backToTop\":\"Scroll to top\",\"float\":true,\"title\":\"On This Page\"}},\"children\":[\"$\",\"$L13\",null,{\"attribute\":\"class\",\"defaultTheme\":\"system\",\"disableTransitionOnChange\":true,\"storageKey\":\"theme\",\"children\":[[\"$\",\"$L14\",null,{}],\"$undefined\",[\"$\",\"$L15\",null,{\"pageMap\":[{\"data\":{\"index\":{\"title\":\"介绍\"},\"quickstart\":{\"title\":\"快速上手\"},\"usage\":{\"title\":\"使用姿势\"},\"reference\":{\"title\":\"参考手册\"}}},{\"name\":\"index\",\"route\":\"/\",\"frontMatter\":{\"title\":\"Index\",\"filePath\":\"content/index.mdx\",\"timestamp\":1766638877000},\"title\":\"介绍\"},{\"name\":\"quickstart\",\"route\":\"/quickstart\",\"frontMatter\":{\"title\":\"快速上手\",\"filePath\":\"content/quickstart.mdx\",\"timestamp\":1766638877000},\"title\":\"快速上手\"},{\"name\":\"usage\",\"route\":\"/usage\",\"children\":[{\"data\":{\"docker\":{\"title\":\"使用 Docker 部署\"},\"modelscope\":{\"title\":\"使用 魔搭社区 MCP\"},\"coze-workflow\":{\"title\":\"集成扣子工作流\"},\"multi-endpoint\":{\"title\":\"配置多个小智接入点\"},\"as-mcp\":{\"title\":\"作为 MCP 服务使用\"}}},{\"name\":\"docker\",\"route\":\"/usage/docker\",\"frontMatter\":{\"title\":\"使用 Docker 部署\",\"filePath\":\"content/usage/docker.mdx\",\"timestamp\":1766638877000},\"title\":\"使用 Docker 部署\"},{\"name\":\"modelscope\",\"route\":\"/usage/modelscope\",\"frontMatter\":{\"title\":\"使用 魔搭社区 MCP\",\"filePath\":\"content/usage/modelscope.mdx\",\"timestamp\":1766638877000},\"title\":\"使用 魔搭社区 MCP\"},{\"name\":\"coze-workflow\",\"route\":\"/usage/coze-workflow\",\"frontMatter\":{\"title\":\"集成扣子工作流\",\"filePath\":\"content/usage/coze-workflow.mdx\",\"timestamp\":1766638877000},\"title\":\"集成扣子工作流\"},{\"name\":\"multi-endpoint\",\"route\":\"/usage/multi-endpoint\",\"frontMatter\":{\"title\":\"配置多个小智接入点\",\"filePath\":\"content/usage/multi-endpoint.mdx\",\"timestamp\":1766638877000},\"title\":\"配置多个小智接入点\"},{\"name\":\"as-mcp\",\"route\":\"/usage/as-mcp\",\"frontMatter\":{\"title\":\"作为 MCP 服务使用\",\"filePath\":\"content/usage/as-mcp.mdx\",\"timestamp\":1766638877000},\"title\":\"作为 MCP 服务使用\"}],\"title\":\"使用姿势\"},{\"name\":\"reference\",\"route\":\"/reference\",\"children\":[{\"data\":{\"command\":{\"title\":\"常用命令\"}}},{\"name\":\"command\",\"route\":\"/reference/command\",\"frontMatter\":{\"title\":\"常用命令\",\"filePath\":\"content/reference/command.mdx\",\"timestamp\":1766638877000},\"title\":\"常用命令\"}],\"title\":\"参考手册\"},{\"name\":\"changelog\",\"route\":\"/changelog\",\"frontMatter\":{\"title\":\"更新日志\",\"filePath\":\"content/changelog.mdx\",\"timestamp\":1766638877000},\"title\":\"更新日志\"}],\"navbar\":[\"$\",\"header\",null,{\"className\":\"nextra-navbar x:sticky x:top-0 x:z-30 x:w-full x:bg-transparent x:print:hidden x:max-md:[.nextra-banner:not([class$=hidden])~\u0026]:top-(--nextra-banner-height)\",\"children\":[[\"$\",\"div\",null,{\"className\":\"nextra-navbar-blur x:absolute x:-z-1 x:size-full nextra-border x:border-b x:backdrop-blur-md x:bg-nextra-bg/70\"}],[\"$\",\"nav\",null,{\"style\":{\"height\":\"var(--nextra-navbar-height)\"},\"className\":\"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)] x:justify-end\",\"children\":[[\"$\",\"$L16\",null,{\"href\":\"/\",\"className\":\"x:flex x:items-center x:me-auto x:transition-opacity x:focus-visible:nextra-focus x:hover:opacity-75\",\"aria-label\":\"Home page\",\"children\":\"$L17\"}],\"$L18\"]}]]}],\"footer\":\"$L19\",\"children\":[\"$L1a\",\"$L1b\"]}]]}]}]}]]}]\n"])</script><script>self.__next_f.push([1,"1c:I[4730,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ClientNavbar\"]\n1e:I[2779,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"Switchers\"]\n1f:I[8704,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"LocaleSwitch\"]\n20:I[6744,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ThemeSwitch\"]\n21:I[9838,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"MobileNav\"]\n17:[\"$\",\"b\",null,{\"children\":\"Xiaozhi Client\"}]\n1d:T481,"])</script><script>self.__next_f.push([1,"M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z"])</script><script>self.__next_f.push([1,"18:[\"$\",\"$L1c\",null,{\"className\":\"\",\"children\":[[\"$\",\"a\",null,{\"href\":\"https://github.com/shenjingnan/xiaozhi-client\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"children\":[[\"$\",\"svg\",null,{\"fill\":\"currentColor\",\"viewBox\":\"3 3 18 18\",\"height\":\"24\",\"aria-label\":\"Project repository\",\"children\":[\"$\",\"path\",null,{\"d\":\"$1d\"}]}],false],\"className\":\"x:focus-visible:nextra-focus\"}],[\"$\",\"a\",null,{\"href\":\"https://qun.qq.com/universal-share/share?ac=1\u0026authKey=c08PvS2zvAF1NN%2F%2BuaOi0ze1AElTIsvFBLwbWUMFc2ixjaZYxqZTUQHzipwd8Kka\u0026busi_data=eyJncm91cENvZGUiOiIxMDU0ODg4NDczIiwidG9rZW4iOiJuSmJUN2cyUEVkNEQ5WXovM3RQbFVNcDluMGVibUNZTUQvL1RuQnFJRjBkZmRZQnRBRTdwU0szL3V2Y0dLc1ZmIiwidWluIjoiMzkxMTcyMDYwMCJ9\u0026data=9cH6_zEC-sN3xYlwzKEWiYF71RLY9CId5taN-gy6XZo7axSlSWDpd1Ojui5hYMQKIgEJYSPw59XYgF5vH2wLog\u0026svctype=4\u0026tempid=h5_group_info\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"children\":[[\"$\",\"svg\",null,{\"viewBox\":\"0 0 1024 1024\",\"version\":\"1.1\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"width\":\"32\",\"height\":\"32\",\"children\":[\"$\",\"path\",null,{\"d\":\"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z\",\"p-id\":\"4686\"}]}],false],\"className\":\"x:focus-visible:nextra-focus\"}],\"$undefined\"]}]\n"])</script><script>self.__next_f.push([1,"19:[\"$\",\"div\",null,{\"className\":\"x:bg-gray-100 x:pb-[env(safe-area-inset-bottom)] x:dark:bg-neutral-900 x:print:bg-transparent\",\"children\":[[\"$\",\"$L1e\",null,{\"children\":[\"$\",\"div\",null,{\"className\":\"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:gap-2 x:py-2 x:px-4\",\"children\":[[\"$\",\"$L1f\",null,{}],[\"$\",\"$L20\",null,{}]]}]}],[\"$\",\"hr\",null,{\"className\":\"nextra-border\"}],[\"$\",\"footer\",null,{\"className\":\"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:justify-center x:py-12 x:text-gray-600 x:dark:text-gray-400 x:md:justify-start x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)]\",\"children\":[\"MIT \",2025,\" © Xiaozhi Client.\"]}]]}]\n"])</script><script>self.__next_f.push([1,"1a:[\"$\",\"$L21\",null,{}]\n"])</script><script>self.__next_f.push([1,"1b:[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"22:I[1325,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"TOCProvider\"]\n23:I[9838,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"Sidebar\"]\n24:I[5479,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ClientWrapper\"]\n25:Tb37,"])</script><script>self.__next_f.push([1,"import { ImageZoom, Callout, Steps } from \"nextra/components\";\n\n# 集成扣子工作流\n\n\u003cCallout type=\"info\"\u003e\n **前期准备**: 请先将 xiaozhi-client 升级到 1.7.4 及以上版本\n\u003c/Callout\u003e\n\n\u003cSteps\u003e\n## 获取扣子空间授权凭证\n 打开 [扣子空间-API管理](https://www.coze.cn/open/oauth/sats) - 服务身份及凭证 - 添加\n\n xiaozhi-client 所需的最小权限如下\n \u003cCallout type=\"info\"\u003e如果你觉得一个个授权太麻烦,或者并没有特别敏感的数据,可以直接勾选所有权限\u003c/Callout\u003e\n\n| 权限 | 原因 | API文档 | client 版本 |\n| -------- | ------------------------------------- | --- | --- |\n| 团队空间管理 - listWorkspace | 在获取工作流列表时使用 | [/v1/workspaces](https://www.coze.cn/open/docs/developer_guides/list_workspace) | `\u003e=1.7.2` |\n| 工作流 - listWorkflow | 在获取工作流列表时使用 | [/v1/workflows](https://www.coze.cn/open/docs/developer_guides/get_workflow_list) | `\u003e=1.7.2` |\n| 工作流 - run | 在执行工作流时使用 | [/v1/workflow/run](https://www.coze.cn/open/docs/developer_guides/workflow_run) | `\u003e=1.7.2` |\n\n## 配置扣子凭证\n 请在 `xiaozhi.config.json` 中添加你的扣子凭证\n ```json xiaozhi.config.json\n {\n \"platforms\": {\n \"coze\": {\n \"token\": \"\u003c请在此处添加你的扣子凭证\u003e\"\n }\n },\n }\n ```\n\n## 启动服务\n ```bash\n xiaozhi start\n ```\n\n## 集成一个工作流\n 请在浏览器中访问 `http://localhost:9999`\n \u003cCallout type=\"info\"\u003e如果你安装在另一台设备上,请访问 `http://\u003c你的IP地址\u003e:9999`\u003c/Callout\u003e\n \u003cImageZoom style={{ margin: '10px 0'}} src=\"/images/coze-workflow/config-workflow-step-1.png\" alt=\"第一步:点击右侧 **工作流集成** 按钮\" /\u003e\n \u003cImageZoom style={{ margin: '10px 0'}} src=\"/images/coze-workflow/config-workflow-step-2.png\" alt=\"第二步:在指定的工作流中点击 添加 按钮\" /\u003e\n \u003cImageZoom style={{ margin: '10px 0'}} src=\"/images/coze-workflow/config-workflow-step-3.png\" alt=\"第三步:在 配置工作流参数 弹窗中配置此工作流的参数\" /\u003e\n\n## 测试效果\n 使用你的硬件设备测试是否成功\n \u003cCallout type=\"info\"\u003e\n 需要注意的是,由于扣子工作流通常比较耗时,因此 xiaozhi-client 超过8秒未响应后会自动返回友好的等待处理内容给服务端\n 不过不需要担心,xiaozhi-client 会在工作流正确响应后缓存响应数据,等到下次你询问 `是否有结果了?` 时,会自动返回缓存的结果\n \u003c/Callout\u003e\n\u003c/Steps\u003e\n\n## FAQ\n\n### Q: 如果获取工作流入参?\n在 xiaozhi-client 配置的参数即为工作流开始节点所配置的输入字段\n可以在扣子中找到对应工作流,点击详情查看,将对应的参数配置到 xiaozhi-client 即可\n"])</script><script>self.__next_f.push([1,"5:[\"$\",\"div\",null,{\"className\":\"x:mx-auto x:flex x:max-w-(--nextra-content-width)\",\"children\":[\"$\",\"$L22\",null,{\"value\":[{\"value\":\"获取扣子空间授权凭证\",\"id\":\"获取扣子空间授权凭证\",\"depth\":2},{\"value\":\"配置扣子凭证\",\"id\":\"配置扣子凭证\",\"depth\":2},{\"value\":\"启动服务\",\"id\":\"启动服务\",\"depth\":2},{\"value\":\"集成一个工作流\",\"id\":\"集成一个工作流\",\"depth\":2},{\"value\":\"测试效果\",\"id\":\"测试效果\",\"depth\":2},{\"value\":\"FAQ\",\"id\":\"faq\",\"depth\":2},{\"value\":\"Q: 如果获取工作流入参?\",\"id\":\"q-如果获取工作流入参\",\"depth\":3}],\"children\":[[\"$\",\"$L23\",null,{}],[\"$\",\"$L24\",null,{\"metadata\":{\"title\":\"集成扣子工作流\",\"filePath\":\"content/usage/coze-workflow.mdx\",\"timestamp\":1766638877000},\"bottomContent\":\"$undefined\",\"sourceCode\":\"$25\",\"children\":[[\"$\",\"div\",null,{\"id\":\"nextra-skip-nav\"}],[\"$\",\"main\",null,{\"data-pagefind-body\":true,\"children\":[[\"$\",\"h1\",null,{\"id\":\"$undefined\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-bold x:mt-2 x:text-4xl\",\"children\":[\"集成扣子工作流\",\"$undefined\"]}],\"\\n\",[\"$\",\"div\",null,{\"className\":\"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]\",\"style\":{\"fontFamily\":\"\\\"Apple Color Emoji\\\", \\\"Segoe UI Emoji\\\", \\\"Segoe UI Symbol\\\"\"},\"data-pagefind-ignore\":\"all\",\"children\":[\"$\",\"svg\",null,{\"viewBox\":\"0 0 16 16\",\"fill\":\"currentColor\",\"height\":\".8em\",\"className\":\"x:mt-[.3em]\",\"children\":[\"$\",\"path\",null,{\"d\":\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"}]}]}],\"$L26\"]}],\"\\n\",\"$L27\",\"\\n\",\"$L28\",\"\\n\",\"$L29\",\"\\n\",\"$L2a\"]}]]}]]}]}]\n"])</script><script>self.__next_f.push([1,"2b:I[6714,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"HeadingAnchor\"]\n3b:I[8441,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ImageZoom\"]\n26:[\"$\",\"div\",null,{\"className\":\"x:w-full x:min-w-0\",\"children\":[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[[\"$\",\"strong\",null,{\"children\":\"前期准备\"}],\": 请先将 xiaozhi-client 升级到 1.7.4 及以上版本\"]}]}]\n"])</script><script>self.__next_f.push([1,"27:[\"$\",\"div\",null,{\"className\":\"nextra-steps x:ms-4 x:mb-12 x:border-s x:border-gray-200 x:ps-6 x:dark:border-neutral-800\",\"style\":{\"--counter-id\":\"_S_1_\"},\"children\":[[\"$\",\"h2\",null,{\"id\":\"获取扣子空间授权凭证\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"获取扣子空间授权凭证\",[\"$\",\"$L2b\",null,{\"id\":\"获取扣子空间授权凭证\"}]]}],[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"打开 \",[\"$\",\"a\",null,{\"href\":\"https://www.coze.cn/open/oauth/sats\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"className\":\"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]\",\"children\":[\"扣子空间-API管理\",[\" \",[\"$\",\"svg\",null,{\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"strokeWidth\":1.7,\"viewBox\":\"0 0 24 24\",\"height\":\"1em\",\"className\":\"x:inline x:align-baseline x:shrink-0\",\"children\":[[\"$\",\"path\",null,{\"d\":\"M7 17L17 7\"}],[\"$\",\"path\",null,{\"d\":\"M7 7h10v10\"}]]}]]]}],\" - 服务身份及凭证 - 添加\"]}],[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"xiaozhi-client 所需的最小权限如下\\n\",[\"$\",\"div\",null,{\"className\":\"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]\",\"style\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style\",\"data-pagefind-ignore\":\"all\",\"children\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children\"}],[\"$\",\"div\",null,{\"className\":\"x:w-full x:min-w-0\",\"children\":\"如果你觉得一个个授权太麻烦,或者并没有特别敏感的数据,可以直接勾选所有权限\"}]]}]]}],[\"$\",\"table\",null,{\"className\":\"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0\",\"children\":[[\"$\",\"thead\",null,{\"children\":[\"$\",\"tr\",null,{\"children\":[[\"$\",\"th\",null,{\"children\":\"权限\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600\"}],[\"$\",\"th\",null,{\"children\":\"原因\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600\"}],[\"$\",\"th\",null,{\"children\":\"API文档\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600\"}],[\"$\",\"th\",null,{\"children\":\"client 版本\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600\"}]],\"className\":\"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20\"}]}],[\"$\",\"tbody\",null,{\"children\":[[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"团队空间管理 - listWorkspace\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":\"在获取工作流列表时使用\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"a\",null,{\"href\":\"https://www.coze.cn/open/docs/developer_guides/list_workspace\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"className\":\"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]\",\"children\":[\"/v1/workspaces\",[\" \",[\"$\",\"svg\",null,{\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"strokeWidth\":1.7,\"viewBox\":\"0 0 24 24\",\"height\":\"1em\",\"className\":\"x:inline x:align-baseline x:shrink-0\",\"children\":[[\"$\",\"path\",null,{\"d\":\"M7 17L17 7\"}],[\"$\",\"path\",null,{\"d\":\"M7 7h10v10\"}]]}]]]}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"\u003e=1.7.2\"}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}]],\"className\":\"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20\"}],\"$L2c\",\"$L2d\"]}]]}],\"$L2e\",\"$L2f\",\"$L30\",\"$L31\",\"$L32\",\"$L33\",\"$L34\",\"$L35\",\"$L36\",\"$L37\",\"$L38\",\"$L39\",\"$L3a\"]}]\n"])</script><script>self.__next_f.push([1,"28:[\"$\",\"h2\",null,{\"id\":\"faq\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"FAQ\",[\"$\",\"$L2b\",null,{\"id\":\"faq\"}]]}]\n29:[\"$\",\"h3\",null,{\"id\":\"q-如果获取工作流入参\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl\",\"children\":[\"Q: 如果获取工作流入参?\",[\"$\",\"$L2b\",null,{\"id\":\"q-如果获取工作流入参\"}]]}]\n2a:[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"在 xiaozhi-client 配置的参数即为工作流开始节点所配置的输入字段\\n可以在扣子中找到对应工作流,点击详情查看,将对应的参数配置到 xiaozhi-client 即可\\n\",[\"$\",\"$L3b\",null,{\"alt\":\"获取工作流参数\",\"placeholder\":\"blur\",\"src\":{\"src\":\"/_next/static/media/get-parameter.62eee93d.png\",\"height\":1868,\"width\":3838,\"blurDataURL\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEXy8/bt8PL6+fxKjop+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgZIADRhBigrKZwAxGRgYmJgAA3wARvXycngAAAABJRU5ErkJggg==\",\"blurWidth\":8,\"blurHeight\":4}}]]}]\n"])</script><script>self.__next_f.push([1,"3c:I[5979,[\"562\",\"static/chunks/2a9bc5d7-4c434acf20ba934a.js\",\"782\",\"static/chunks/782-c26ca6c69e488d48.js\",\"217\",\"static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js\"],\"ToggleWordWrapButton\"]\n"])</script><script>self.__next_f.push([1,"2c:[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"工作流 - listWorkflow\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":\"在获取工作流列表时使用\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"a\",null,{\"href\":\"https://www.coze.cn/open/docs/developer_guides/get_workflow_list\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"className\":\"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]\",\"children\":[\"/v1/workflows\",[\" \",[\"$\",\"svg\",null,{\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"strokeWidth\":1.7,\"viewBox\":\"0 0 24 24\",\"height\":\"1em\",\"className\":\"x:inline x:align-baseline x:shrink-0\",\"children\":[[\"$\",\"path\",null,{\"d\":\"M7 17L17 7\"}],[\"$\",\"path\",null,{\"d\":\"M7 7h10v10\"}]]}]]]}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"\u003e=1.7.2\"}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}]],\"className\":\"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20\"}]\n"])</script><script>self.__next_f.push([1,"2d:[\"$\",\"tr\",null,{\"children\":[[\"$\",\"td\",null,{\"children\":\"工作流 - run\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":\"在执行工作流时使用\",\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"a\",null,{\"href\":\"https://www.coze.cn/open/docs/developer_guides/workflow_run\",\"target\":\"_blank\",\"rel\":\"noreferrer\",\"className\":\"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]\",\"children\":[\"/v1/workflow/run\",[\" \",[\"$\",\"svg\",null,{\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\",\"strokeWidth\":1.7,\"viewBox\":\"0 0 24 24\",\"height\":\"1em\",\"className\":\"x:inline x:align-baseline x:shrink-0\",\"children\":[[\"$\",\"path\",null,{\"d\":\"M7 17L17 7\"}],[\"$\",\"path\",null,{\"d\":\"M7 7h10v10\"}]]}]]]}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}],[\"$\",\"td\",null,{\"children\":[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"\u003e=1.7.2\"}],\"className\":\"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600\"}]],\"className\":\"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20\"}]\n"])</script><script>self.__next_f.push([1,"2e:[\"$\",\"h2\",null,{\"id\":\"配置扣子凭证\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"配置扣子凭证\",[\"$\",\"$L2b\",null,{\"id\":\"配置扣子凭证\"}]]}]\n2f:[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"请在 \",[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"xiaozhi.config.json\"}],\" 中添加你的扣子凭证\"]}]\n"])</script><script>self.__next_f.push([1,"30:[\"$\",\"div\",null,{\"data-pagefind-ignore\":\"all\",\"className\":\"nextra-code x:relative x:not-first:mt-[1.25em]\",\"children\":[\"$undefined\",[\"$\",\"pre\",null,{\"className\":\"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose\",\"tabIndex\":\"0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2\",\"children\":[[\"$\",\"$L3c\",null,{\"children\":[\"$\",\"svg\",null,{\"viewBox\":\"0 0 24 24\",\"fill\":\"currentColor\",\"height\":\"1em\",\"children\":[\"$\",\"path\",null,{\"d\":\"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z\"}]}]}],false]}],[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":[[\"$\",\"span\",null,{\"children\":[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\"{\"}]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},\"children\":\" \\\"platforms\\\"\"}],[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\": {\"}]]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},\"children\":\" \\\"coze\\\"\"}],[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\": {\"}]]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#005CC5\",\"--shiki-dark\":\"#79B8FF\"},\"children\":\" \\\"token\\\"\"}],[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\": \"}],[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},\"children\":\"\\\"\u003c请在此处添加你的扣子凭证\u003e\\\"\"}]]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\" }\"}]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\" },\"}]}],\"\\n\",[\"$\",\"span\",null,{\"children\":[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#24292E\",\"--shiki-dark\":\"#E1E4E8\"},\"children\":\"}\"}]}]]}]]}]]}]\n"])</script><script>self.__next_f.push([1,"31:[\"$\",\"h2\",null,{\"id\":\"启动服务\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"启动服务\",[\"$\",\"$L2b\",null,{\"id\":\"启动服务\"}]]}]\n"])</script><script>self.__next_f.push([1,"32:[\"$\",\"div\",null,{\"data-pagefind-ignore\":\"all\",\"className\":\"nextra-code x:relative x:not-first:mt-[1.25em]\",\"children\":[\"$undefined\",[\"$\",\"pre\",null,{\"className\":\"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose\",\"tabIndex\":\"0\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2\",\"children\":[[\"$\",\"$L3c\",null,{\"children\":[\"$\",\"svg\",null,{\"viewBox\":\"0 0 24 24\",\"fill\":\"currentColor\",\"height\":\"1em\",\"children\":[\"$\",\"path\",null,{\"d\":\"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z\"}]}]}],false]}],[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":[\"$\",\"span\",null,{\"children\":[[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#6F42C1\",\"--shiki-dark\":\"#B392F0\"},\"children\":\"xiaozhi\"}],[\"$\",\"span\",null,{\"style\":{\"--shiki-light\":\"#032F62\",\"--shiki-dark\":\"#9ECBFF\"},\"children\":\" start\"}]]}]}]]}]]}]\n"])</script><script>self.__next_f.push([1,"33:[\"$\",\"h2\",null,{\"id\":\"集成一个工作流\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"集成一个工作流\",[\"$\",\"$L2b\",null,{\"id\":\"集成一个工作流\"}]]}]\n"])</script><script>self.__next_f.push([1,"34:[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"请在浏览器中访问 \",[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"http://localhost:9999\"}],\"\\n\",[\"$\",\"div\",null,{\"className\":\"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]\",\"style\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style\",\"data-pagefind-ignore\":\"all\",\"children\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children\"}],[\"$\",\"div\",null,{\"className\":\"x:w-full x:min-w-0\",\"children\":[\"如果你安装在另一台设备上,请访问 \",[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"http://\u003c你的IP地址\u003e:9999\"}]]}]]}]]}]\n"])</script><script>self.__next_f.push([1,"35:[\"$\",\"$L3b\",null,{\"style\":{\"margin\":\"10px 0\"},\"src\":\"/images/coze-workflow/config-workflow-step-1.png\",\"alt\":\"第一步:点击右侧 **工作流集成** 按钮\"}]\n36:[\"$\",\"$L3b\",null,{\"style\":{\"margin\":\"10px 0\"},\"src\":\"/images/coze-workflow/config-workflow-step-2.png\",\"alt\":\"第二步:在指定的工作流中点击 添加 按钮\"}]\n37:[\"$\",\"$L3b\",null,{\"style\":{\"margin\":\"10px 0\"},\"src\":\"/images/coze-workflow/config-workflow-step-3.png\",\"alt\":\"第三步:在 配置工作流参数 弹窗中配置此工作流的参数\"}]\n38:[\"$\",\"h2\",null,{\"id\":\"测试效果\",\"className\":\"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border\",\"children\":[\"测试效果\",[\"$\",\"$L2b\",null,{\"id\":\"测试效果\"}]]}]\n39:[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":\"使用你的硬件设备测试是否成功\"}]\n"])</script><script>self.__next_f.push([1,"3a:[\"$\",\"div\",null,{\"className\":\"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600\",\"children\":[[\"$\",\"div\",null,{\"className\":\"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]\",\"style\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style\",\"data-pagefind-ignore\":\"all\",\"children\":\"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children\"}],[\"$\",\"div\",null,{\"className\":\"x:w-full x:min-w-0\",\"children\":[\"$\",\"p\",null,{\"className\":\"x:not-first:mt-[1.25em] x:leading-7\",\"children\":[\"需要注意的是,由于扣子工作流通常比较耗时,因此 xiaozhi-client 超过8秒未响应后会自动返回友好的等待处理内容给服务端\\n不过不需要担心,xiaozhi-client 会在工作流正确响应后缓存响应数据,等到下次你询问 \",[\"$\",\"code\",null,{\"className\":\"nextra-code\",\"dir\":\"ltr\",\"children\":\"是否有结果了?\"}],\" 时,会自动返回缓存的结果\"]}]}]]}]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n7:null\n"])</script><script>self.__next_f.push([1,"9:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"集成扣子工作流\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"e:\"$9:metadata\"\n"])</script></body></html>
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
1:"$Sreact.fragment"
|
|
2
|
-
3:I[6320,[],""]
|
|
3
|
-
4:I[7862,[],""]
|
|
4
|
-
6:I[6461,[],"OutletBoundary"]
|
|
5
|
-
8:I[7320,[],"AsyncMetadataOutlet"]
|
|
6
|
-
a:I[6461,[],"ViewportBoundary"]
|
|
7
|
-
c:I[6461,[],"MetadataBoundary"]
|
|
8
|
-
d:"$Sreact.suspense"
|
|
9
|
-
f:I[7516,[],""]
|
|
10
|
-
:HL["/_next/static/css/b03484a3c350cf6e.css","style"]
|
|
11
|
-
:HL["/_next/static/css/2d82b615fcca1590.css","style"]
|
|
12
|
-
:HL["/_next/static/css/b289318ef4b60b0a.css","style"]
|
|
13
|
-
0:{"P":null,"b":"JZ0ESgtaHnsqkxSabOqqU","p":"","c":["","usage","coze-workflow",""],"i":false,"f":[[["",{"children":[["mdxPath","usage/coze-workflow","oc"],{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b03484a3c350cf6e.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/2d82b615fcca1590.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/b289318ef4b60b0a.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],"$L2"]}],{"children":[["mdxPath","usage/coze-workflow","oc"],["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L5",null,["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$La",null,{"children":"$Lb"}],null],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true}
|
|
14
|
-
10:I[6659,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ThemeConfigProvider"]
|
|
15
|
-
11:I[1941,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"LastUpdated"]
|
|
16
|
-
12:I[3015,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","112","static/chunks/112-c9cbd8401d35f825.js","177","static/chunks/app/layout-e8f420537fd59e8d.js"],"Search"]
|
|
17
|
-
13:I[2002,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","112","static/chunks/112-c9cbd8401d35f825.js","177","static/chunks/app/layout-e8f420537fd59e8d.js"],"ThemeProvider"]
|
|
18
|
-
14:I[4717,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"SkipNavLink"]
|
|
19
|
-
15:I[8750,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ConfigProvider"]
|
|
20
|
-
16:I[6193,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],""]
|
|
21
|
-
2:["$","html",null,{"lang":"en","dir":"ltr","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$undefined",["$","style",null,{"children":":root {\n --nextra-primary-hue: 212deg;\n --nextra-primary-saturation: 100%;\n --nextra-primary-lightness: 45%;\n --nextra-bg: 250,250,250;\n --nextra-content-width: 90rem;\n}\n.dark {\n --nextra-primary-hue: 204deg;\n --nextra-primary-saturation: 100%;\n --nextra-primary-lightness: 55%;\n --nextra-bg: 17,17,17;\n}\n::selection {\n background: hsla(var(--nextra-primary-hue),var(--nextra-primary-saturation),var(--nextra-primary-lightness),.3);\n}\nhtml {\n background: rgb(var(--nextra-bg));\n}"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"rgb(250,250,250)"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"rgb(17,17,17)"}],"$undefined"]}],["$","body",null,{"children":["$","$L10",null,{"value":{"copyPageButton":true,"darkMode":true,"docsRepositoryBase":"https://github.com/shenjingnan/xiaozhi-client/tree/main/docs","editLink":"Edit this page","feedback":{"content":"Question? Give us feedback","labels":"feedback"},"i18n":[],"lastUpdated":["$","$L11",null,{}],"navigation":{"next":true,"prev":true},"search":["$","$L12",null,{}],"sidebar":{"defaultMenuCollapseLevel":2,"defaultOpen":true,"toggleButton":true},"themeSwitch":{"dark":"Dark","light":"Light","system":"System"},"toc":{"backToTop":"Scroll to top","float":true,"title":"On This Page"}},"children":["$","$L13",null,{"attribute":"class","defaultTheme":"system","disableTransitionOnChange":true,"storageKey":"theme","children":[["$","$L14",null,{}],"$undefined",["$","$L15",null,{"pageMap":[{"data":{"index":{"title":"介绍"},"quickstart":{"title":"快速上手"},"usage":{"title":"使用姿势"},"reference":{"title":"参考手册"}}},{"name":"index","route":"/","frontMatter":{"title":"Index","filePath":"content/index.mdx","timestamp":1766638877000},"title":"介绍"},{"name":"quickstart","route":"/quickstart","frontMatter":{"title":"快速上手","filePath":"content/quickstart.mdx","timestamp":1766638877000},"title":"快速上手"},{"name":"usage","route":"/usage","children":[{"data":{"docker":{"title":"使用 Docker 部署"},"modelscope":{"title":"使用 魔搭社区 MCP"},"coze-workflow":{"title":"集成扣子工作流"},"multi-endpoint":{"title":"配置多个小智接入点"},"as-mcp":{"title":"作为 MCP 服务使用"}}},{"name":"docker","route":"/usage/docker","frontMatter":{"title":"使用 Docker 部署","filePath":"content/usage/docker.mdx","timestamp":1766638877000},"title":"使用 Docker 部署"},{"name":"modelscope","route":"/usage/modelscope","frontMatter":{"title":"使用 魔搭社区 MCP","filePath":"content/usage/modelscope.mdx","timestamp":1766638877000},"title":"使用 魔搭社区 MCP"},{"name":"coze-workflow","route":"/usage/coze-workflow","frontMatter":{"title":"集成扣子工作流","filePath":"content/usage/coze-workflow.mdx","timestamp":1766638877000},"title":"集成扣子工作流"},{"name":"multi-endpoint","route":"/usage/multi-endpoint","frontMatter":{"title":"配置多个小智接入点","filePath":"content/usage/multi-endpoint.mdx","timestamp":1766638877000},"title":"配置多个小智接入点"},{"name":"as-mcp","route":"/usage/as-mcp","frontMatter":{"title":"作为 MCP 服务使用","filePath":"content/usage/as-mcp.mdx","timestamp":1766638877000},"title":"作为 MCP 服务使用"}],"title":"使用姿势"},{"name":"reference","route":"/reference","children":[{"data":{"command":{"title":"常用命令"}}},{"name":"command","route":"/reference/command","frontMatter":{"title":"常用命令","filePath":"content/reference/command.mdx","timestamp":1766638877000},"title":"常用命令"}],"title":"参考手册"},{"name":"changelog","route":"/changelog","frontMatter":{"title":"更新日志","filePath":"content/changelog.mdx","timestamp":1766638877000},"title":"更新日志"}],"navbar":["$","header",null,{"className":"nextra-navbar x:sticky x:top-0 x:z-30 x:w-full x:bg-transparent x:print:hidden x:max-md:[.nextra-banner:not([class$=hidden])~&]:top-(--nextra-banner-height)","children":[["$","div",null,{"className":"nextra-navbar-blur x:absolute x:-z-1 x:size-full nextra-border x:border-b x:backdrop-blur-md x:bg-nextra-bg/70"}],["$","nav",null,{"style":{"height":"var(--nextra-navbar-height)"},"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:items-center x:gap-4 x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)] x:justify-end","children":[["$","$L16",null,{"href":"/","className":"x:flex x:items-center x:me-auto x:transition-opacity x:focus-visible:nextra-focus x:hover:opacity-75","aria-label":"Home page","children":"$L17"}],"$L18"]}]]}],"footer":"$L19","children":["$L1a","$L1b"]}]]}]}]}]]}]
|
|
22
|
-
1c:I[4730,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ClientNavbar"]
|
|
23
|
-
1e:I[2779,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"Switchers"]
|
|
24
|
-
1f:I[8704,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"LocaleSwitch"]
|
|
25
|
-
20:I[6744,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ThemeSwitch"]
|
|
26
|
-
21:I[9838,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"MobileNav"]
|
|
27
|
-
17:["$","b",null,{"children":"Xiaozhi Client"}]
|
|
28
|
-
1d:T481,M12 3C7.0275 3 3 7.12937 3 12.2276C3 16.3109 5.57625 19.7597 9.15374 20.9824C9.60374 21.0631 9.77249 20.7863 9.77249 20.5441C9.77249 20.3249 9.76125 19.5982 9.76125 18.8254C7.5 19.2522 6.915 18.2602 6.735 17.7412C6.63375 17.4759 6.19499 16.6569 5.8125 16.4378C5.4975 16.2647 5.0475 15.838 5.80124 15.8264C6.51 15.8149 7.01625 16.4954 7.18499 16.7723C7.99499 18.1679 9.28875 17.7758 9.80625 17.5335C9.885 16.9337 10.1212 16.53 10.38 16.2993C8.3775 16.0687 6.285 15.2728 6.285 11.7432C6.285 10.7397 6.63375 9.9092 7.20749 9.26326C7.1175 9.03257 6.8025 8.08674 7.2975 6.81794C7.2975 6.81794 8.05125 6.57571 9.77249 7.76377C10.4925 7.55615 11.2575 7.45234 12.0225 7.45234C12.7875 7.45234 13.5525 7.55615 14.2725 7.76377C15.9937 6.56418 16.7475 6.81794 16.7475 6.81794C17.2424 8.08674 16.9275 9.03257 16.8375 9.26326C17.4113 9.9092 17.76 10.7281 17.76 11.7432C17.76 15.2843 15.6563 16.0687 13.6537 16.2993C13.98 16.5877 14.2613 17.1414 14.2613 18.0065C14.2613 19.2407 14.25 20.2326 14.25 20.5441C14.25 20.7863 14.4188 21.0746 14.8688 20.9824C16.6554 20.364 18.2079 19.1866 19.3078 17.6162C20.4077 16.0457 20.9995 14.1611 21 12.2276C21 7.12937 16.9725 3 12 3Z18:["$","$L1c",null,{"className":"","children":[["$","a",null,{"href":"https://github.com/shenjingnan/xiaozhi-client","target":"_blank","rel":"noreferrer","children":[["$","svg",null,{"fill":"currentColor","viewBox":"3 3 18 18","height":"24","aria-label":"Project repository","children":["$","path",null,{"d":"$1d"}]}],false],"className":"x:focus-visible:nextra-focus"}],["$","a",null,{"href":"https://qun.qq.com/universal-share/share?ac=1&authKey=c08PvS2zvAF1NN%2F%2BuaOi0ze1AElTIsvFBLwbWUMFc2ixjaZYxqZTUQHzipwd8Kka&busi_data=eyJncm91cENvZGUiOiIxMDU0ODg4NDczIiwidG9rZW4iOiJuSmJUN2cyUEVkNEQ5WXovM3RQbFVNcDluMGVibUNZTUQvL1RuQnFJRjBkZmRZQnRBRTdwU0szL3V2Y0dLc1ZmIiwidWluIjoiMzkxMTcyMDYwMCJ9&data=9cH6_zEC-sN3xYlwzKEWiYF71RLY9CId5taN-gy6XZo7axSlSWDpd1Ojui5hYMQKIgEJYSPw59XYgF5vH2wLog&svctype=4&tempid=h5_group_info","target":"_blank","rel":"noreferrer","children":[["$","svg",null,{"viewBox":"0 0 1024 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"32","height":"32","children":["$","path",null,{"d":"M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z","p-id":"4686"}]}],false],"className":"x:focus-visible:nextra-focus"}],"$undefined"]}]
|
|
29
|
-
19:["$","div",null,{"className":"x:bg-gray-100 x:pb-[env(safe-area-inset-bottom)] x:dark:bg-neutral-900 x:print:bg-transparent","children":[["$","$L1e",null,{"children":["$","div",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:gap-2 x:py-2 x:px-4","children":[["$","$L1f",null,{}],["$","$L20",null,{}]]}]}],["$","hr",null,{"className":"nextra-border"}],["$","footer",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width) x:justify-center x:py-12 x:text-gray-600 x:dark:text-gray-400 x:md:justify-start x:pl-[max(env(safe-area-inset-left),1.5rem)] x:pr-[max(env(safe-area-inset-right),1.5rem)]","children":["MIT ",2025," © Xiaozhi Client."]}]]}]
|
|
30
|
-
1a:["$","$L21",null,{}]
|
|
31
|
-
1b:["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]
|
|
32
|
-
22:I[1325,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"TOCProvider"]
|
|
33
|
-
23:I[9838,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"Sidebar"]
|
|
34
|
-
24:I[5479,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ClientWrapper"]
|
|
35
|
-
25:Tb37,import { ImageZoom, Callout, Steps } from "nextra/components";
|
|
36
|
-
|
|
37
|
-
# 集成扣子工作流
|
|
38
|
-
|
|
39
|
-
<Callout type="info">
|
|
40
|
-
**前期准备**: 请先将 xiaozhi-client 升级到 1.7.4 及以上版本
|
|
41
|
-
</Callout>
|
|
42
|
-
|
|
43
|
-
<Steps>
|
|
44
|
-
## 获取扣子空间授权凭证
|
|
45
|
-
打开 [扣子空间-API管理](https://www.coze.cn/open/oauth/sats) - 服务身份及凭证 - 添加
|
|
46
|
-
|
|
47
|
-
xiaozhi-client 所需的最小权限如下
|
|
48
|
-
<Callout type="info">如果你觉得一个个授权太麻烦,或者并没有特别敏感的数据,可以直接勾选所有权限</Callout>
|
|
49
|
-
|
|
50
|
-
| 权限 | 原因 | API文档 | client 版本 |
|
|
51
|
-
| -------- | ------------------------------------- | --- | --- |
|
|
52
|
-
| 团队空间管理 - listWorkspace | 在获取工作流列表时使用 | [/v1/workspaces](https://www.coze.cn/open/docs/developer_guides/list_workspace) | `>=1.7.2` |
|
|
53
|
-
| 工作流 - listWorkflow | 在获取工作流列表时使用 | [/v1/workflows](https://www.coze.cn/open/docs/developer_guides/get_workflow_list) | `>=1.7.2` |
|
|
54
|
-
| 工作流 - run | 在执行工作流时使用 | [/v1/workflow/run](https://www.coze.cn/open/docs/developer_guides/workflow_run) | `>=1.7.2` |
|
|
55
|
-
|
|
56
|
-
## 配置扣子凭证
|
|
57
|
-
请在 `xiaozhi.config.json` 中添加你的扣子凭证
|
|
58
|
-
```json xiaozhi.config.json
|
|
59
|
-
{
|
|
60
|
-
"platforms": {
|
|
61
|
-
"coze": {
|
|
62
|
-
"token": "<请在此处添加你的扣子凭证>"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## 启动服务
|
|
69
|
-
```bash
|
|
70
|
-
xiaozhi start
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## 集成一个工作流
|
|
74
|
-
请在浏览器中访问 `http://localhost:9999`
|
|
75
|
-
<Callout type="info">如果你安装在另一台设备上,请访问 `http://<你的IP地址>:9999`</Callout>
|
|
76
|
-
<ImageZoom style={{ margin: '10px 0'}} src="/images/coze-workflow/config-workflow-step-1.png" alt="第一步:点击右侧 **工作流集成** 按钮" />
|
|
77
|
-
<ImageZoom style={{ margin: '10px 0'}} src="/images/coze-workflow/config-workflow-step-2.png" alt="第二步:在指定的工作流中点击 添加 按钮" />
|
|
78
|
-
<ImageZoom style={{ margin: '10px 0'}} src="/images/coze-workflow/config-workflow-step-3.png" alt="第三步:在 配置工作流参数 弹窗中配置此工作流的参数" />
|
|
79
|
-
|
|
80
|
-
## 测试效果
|
|
81
|
-
使用你的硬件设备测试是否成功
|
|
82
|
-
<Callout type="info">
|
|
83
|
-
需要注意的是,由于扣子工作流通常比较耗时,因此 xiaozhi-client 超过8秒未响应后会自动返回友好的等待处理内容给服务端
|
|
84
|
-
不过不需要担心,xiaozhi-client 会在工作流正确响应后缓存响应数据,等到下次你询问 `是否有结果了?` 时,会自动返回缓存的结果
|
|
85
|
-
</Callout>
|
|
86
|
-
</Steps>
|
|
87
|
-
|
|
88
|
-
## FAQ
|
|
89
|
-
|
|
90
|
-
### Q: 如果获取工作流入参?
|
|
91
|
-
在 xiaozhi-client 配置的参数即为工作流开始节点所配置的输入字段
|
|
92
|
-
可以在扣子中找到对应工作流,点击详情查看,将对应的参数配置到 xiaozhi-client 即可
|
|
93
|
-
5:["$","div",null,{"className":"x:mx-auto x:flex x:max-w-(--nextra-content-width)","children":["$","$L22",null,{"value":[{"value":"获取扣子空间授权凭证","id":"获取扣子空间授权凭证","depth":2},{"value":"配置扣子凭证","id":"配置扣子凭证","depth":2},{"value":"启动服务","id":"启动服务","depth":2},{"value":"集成一个工作流","id":"集成一个工作流","depth":2},{"value":"测试效果","id":"测试效果","depth":2},{"value":"FAQ","id":"faq","depth":2},{"value":"Q: 如果获取工作流入参?","id":"q-如果获取工作流入参","depth":3}],"children":[["$","$L23",null,{}],["$","$L24",null,{"metadata":{"title":"集成扣子工作流","filePath":"content/usage/coze-workflow.mdx","timestamp":1766638877000},"bottomContent":"$undefined","sourceCode":"$25","children":[["$","div",null,{"id":"nextra-skip-nav"}],["$","main",null,{"data-pagefind-body":true,"children":[["$","h1",null,{"id":"$undefined","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-bold x:mt-2 x:text-4xl","children":["集成扣子工作流","$undefined"]}],"\n",["$","div",null,{"className":"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600","children":[["$","div",null,{"className":"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]","style":{"fontFamily":"\"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\""},"data-pagefind-ignore":"all","children":["$","svg",null,{"viewBox":"0 0 16 16","fill":"currentColor","height":".8em","className":"x:mt-[.3em]","children":["$","path",null,{"d":"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"}]}]}],"$L26"]}],"\n","$L27","\n","$L28","\n","$L29","\n","$L2a"]}]]}]]}]}]
|
|
94
|
-
2b:I[6714,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"HeadingAnchor"]
|
|
95
|
-
3b:I[8441,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ImageZoom"]
|
|
96
|
-
26:["$","div",null,{"className":"x:w-full x:min-w-0","children":["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":[["$","strong",null,{"children":"前期准备"}],": 请先将 xiaozhi-client 升级到 1.7.4 及以上版本"]}]}]
|
|
97
|
-
27:["$","div",null,{"className":"nextra-steps x:ms-4 x:mb-12 x:border-s x:border-gray-200 x:ps-6 x:dark:border-neutral-800","style":{"--counter-id":"_S_1_"},"children":[["$","h2",null,{"id":"获取扣子空间授权凭证","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["获取扣子空间授权凭证",["$","$L2b",null,{"id":"获取扣子空间授权凭证"}]]}],["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["打开 ",["$","a",null,{"href":"https://www.coze.cn/open/oauth/sats","target":"_blank","rel":"noreferrer","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":["扣子空间-API管理",[" ",["$","svg",null,{"fill":"none","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":1.7,"viewBox":"0 0 24 24","height":"1em","className":"x:inline x:align-baseline x:shrink-0","children":[["$","path",null,{"d":"M7 17L17 7"}],["$","path",null,{"d":"M7 7h10v10"}]]}]]]}]," - 服务身份及凭证 - 添加"]}],["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["xiaozhi-client 所需的最小权限如下\n",["$","div",null,{"className":"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600","children":[["$","div",null,{"className":"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]","style":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style","data-pagefind-ignore":"all","children":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children"}],["$","div",null,{"className":"x:w-full x:min-w-0","children":"如果你觉得一个个授权太麻烦,或者并没有特别敏感的数据,可以直接勾选所有权限"}]]}]]}],["$","table",null,{"className":"x:block x:overflow-x-auto nextra-scrollbar x:not-first:mt-[1.25em] x:p-0","children":[["$","thead",null,{"children":["$","tr",null,{"children":[["$","th",null,{"children":"权限","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"原因","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"API文档","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}],["$","th",null,{"children":"client 版本","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:font-semibold x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]}],["$","tbody",null,{"children":[["$","tr",null,{"children":[["$","td",null,{"children":"团队空间管理 - listWorkspace","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"在获取工作流列表时使用","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","a",null,{"href":"https://www.coze.cn/open/docs/developer_guides/list_workspace","target":"_blank","rel":"noreferrer","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":["/v1/workspaces",[" ",["$","svg",null,{"fill":"none","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":1.7,"viewBox":"0 0 24 24","height":"1em","className":"x:inline x:align-baseline x:shrink-0","children":[["$","path",null,{"d":"M7 17L17 7"}],["$","path",null,{"d":"M7 7h10v10"}]]}]]]}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":">=1.7.2"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}],"$L2c","$L2d"]}]]}],"$L2e","$L2f","$L30","$L31","$L32","$L33","$L34","$L35","$L36","$L37","$L38","$L39","$L3a"]}]
|
|
98
|
-
28:["$","h2",null,{"id":"faq","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["FAQ",["$","$L2b",null,{"id":"faq"}]]}]
|
|
99
|
-
29:["$","h3",null,{"id":"q-如果获取工作流入参","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-8 x:text-2xl","children":["Q: 如果获取工作流入参?",["$","$L2b",null,{"id":"q-如果获取工作流入参"}]]}]
|
|
100
|
-
2a:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["在 xiaozhi-client 配置的参数即为工作流开始节点所配置的输入字段\n可以在扣子中找到对应工作流,点击详情查看,将对应的参数配置到 xiaozhi-client 即可\n",["$","$L3b",null,{"alt":"获取工作流参数","placeholder":"blur","src":{"src":"/_next/static/media/get-parameter.62eee93d.png","height":1868,"width":3838,"blurDataURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAACVBMVEXy8/bt8PL6+fxKjop+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGUlEQVR4nGNgZIADRhBigrKZwAxGRgYmJgAA3wARvXycngAAAABJRU5ErkJggg==","blurWidth":8,"blurHeight":4}}]]}]
|
|
101
|
-
3c:I[5979,["562","static/chunks/2a9bc5d7-4c434acf20ba934a.js","782","static/chunks/782-c26ca6c69e488d48.js","217","static/chunks/app/%5B%5B...mdxPath%5D%5D/page-48f5c8f3210e0a8a.js"],"ToggleWordWrapButton"]
|
|
102
|
-
2c:["$","tr",null,{"children":[["$","td",null,{"children":"工作流 - listWorkflow","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"在获取工作流列表时使用","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","a",null,{"href":"https://www.coze.cn/open/docs/developer_guides/get_workflow_list","target":"_blank","rel":"noreferrer","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":["/v1/workflows",[" ",["$","svg",null,{"fill":"none","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":1.7,"viewBox":"0 0 24 24","height":"1em","className":"x:inline x:align-baseline x:shrink-0","children":[["$","path",null,{"d":"M7 17L17 7"}],["$","path",null,{"d":"M7 7h10v10"}]]}]]]}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":">=1.7.2"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]
|
|
103
|
-
2d:["$","tr",null,{"children":[["$","td",null,{"children":"工作流 - run","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":"在执行工作流时使用","className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","a",null,{"href":"https://www.coze.cn/open/docs/developer_guides/workflow_run","target":"_blank","rel":"noreferrer","className":"x:focus-visible:nextra-focus x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]","children":["/v1/workflow/run",[" ",["$","svg",null,{"fill":"none","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":1.7,"viewBox":"0 0 24 24","height":"1em","className":"x:inline x:align-baseline x:shrink-0","children":[["$","path",null,{"d":"M7 17L17 7"}],["$","path",null,{"d":"M7 7h10v10"}]]}]]]}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}],["$","td",null,{"children":["$","code",null,{"className":"nextra-code","dir":"ltr","children":">=1.7.2"}],"className":"x:m-0 x:border x:border-gray-300 x:px-4 x:py-2 x:dark:border-gray-600"}]],"className":"x:m-0 x:border-t x:border-gray-300 x:p-0 x:dark:border-gray-600 x:even:bg-gray-100 x:even:dark:bg-gray-600/20"}]
|
|
104
|
-
2e:["$","h2",null,{"id":"配置扣子凭证","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["配置扣子凭证",["$","$L2b",null,{"id":"配置扣子凭证"}]]}]
|
|
105
|
-
2f:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["请在 ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"xiaozhi.config.json"}]," 中添加你的扣子凭证"]}]
|
|
106
|
-
30:["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L3c",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":[["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"{"}]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"platforms\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"coze\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": {"}]]}],"\n",["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},"children":" \"token\""}],["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":": "}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":"\"<请在此处添加你的扣子凭证>\""}]]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" }"}]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":" },"}]}],"\n",["$","span",null,{"children":["$","span",null,{"style":{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},"children":"}"}]}]]}]]}]]}]
|
|
107
|
-
31:["$","h2",null,{"id":"启动服务","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["启动服务",["$","$L2b",null,{"id":"启动服务"}]]}]
|
|
108
|
-
32:["$","div",null,{"data-pagefind-ignore":"all","className":"nextra-code x:relative x:not-first:mt-[1.25em]","children":["$undefined",["$","pre",null,{"className":"x:group x:focus-visible:nextra-focus x:overflow-x-auto x:subpixel-antialiased x:text-[.9em] x:bg-white x:dark:bg-black x:py-4 x:ring-1 x:ring-inset x:ring-gray-300 x:dark:ring-neutral-700 x:contrast-more:ring-gray-900 x:contrast-more:dark:ring-gray-50 x:contrast-more:contrast-150 x:rounded-md not-prose","tabIndex":"0","children":[["$","div",null,{"className":"x:group-hover:opacity-100 x:group-focus:opacity-100 x:opacity-0 x:transition x:focus-within:opacity-100 x:flex x:gap-1 x:absolute x:right-4 x:top-2","children":[["$","$L3c",null,{"children":["$","svg",null,{"viewBox":"0 0 24 24","fill":"currentColor","height":"1em","children":["$","path",null,{"d":"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}]}]}],false]}],["$","code",null,{"className":"nextra-code","dir":"ltr","children":["$","span",null,{"children":[["$","span",null,{"style":{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},"children":"xiaozhi"}],["$","span",null,{"style":{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},"children":" start"}]]}]}]]}]]}]
|
|
109
|
-
33:["$","h2",null,{"id":"集成一个工作流","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["集成一个工作流",["$","$L2b",null,{"id":"集成一个工作流"}]]}]
|
|
110
|
-
34:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["请在浏览器中访问 ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"http://localhost:9999"}],"\n",["$","div",null,{"className":"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600","children":[["$","div",null,{"className":"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]","style":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style","data-pagefind-ignore":"all","children":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children"}],["$","div",null,{"className":"x:w-full x:min-w-0","children":["如果你安装在另一台设备上,请访问 ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"http://<你的IP地址>:9999"}]]}]]}]]}]
|
|
111
|
-
35:["$","$L3b",null,{"style":{"margin":"10px 0"},"src":"/images/coze-workflow/config-workflow-step-1.png","alt":"第一步:点击右侧 **工作流集成** 按钮"}]
|
|
112
|
-
36:["$","$L3b",null,{"style":{"margin":"10px 0"},"src":"/images/coze-workflow/config-workflow-step-2.png","alt":"第二步:在指定的工作流中点击 添加 按钮"}]
|
|
113
|
-
37:["$","$L3b",null,{"style":{"margin":"10px 0"},"src":"/images/coze-workflow/config-workflow-step-3.png","alt":"第三步:在 配置工作流参数 弹窗中配置此工作流的参数"}]
|
|
114
|
-
38:["$","h2",null,{"id":"测试效果","className":"x:tracking-tight x:text-slate-900 x:dark:text-slate-100 x:font-semibold x:target:animate-[fade-in_1.5s] x:mt-10 x:border-b x:pb-1 x:text-3xl nextra-border","children":["测试效果",["$","$L2b",null,{"id":"测试效果"}]]}]
|
|
115
|
-
39:["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":"使用你的硬件设备测试是否成功"}]
|
|
116
|
-
3a:["$","div",null,{"className":"nextra-callout x:overflow-x-auto x:not-first:mt-[1.25em] x:flex x:rounded-lg x:border x:py-[.5em] x:pe-[1em] x:contrast-more:border-current! x:bg-blue-100 x:dark:bg-blue-900/30 x:text-blue-700 x:dark:text-blue-400 x:border-blue-700 x:dark:border-blue-600","children":[["$","div",null,{"className":"x:select-none x:text-[1.25em] x:ps-[.6em] x:pe-[.4em]","style":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:style","data-pagefind-ignore":"all","children":"$5:props:children:props:children:1:props:children:1:props:children:2:props:children:0:props:children"}],["$","div",null,{"className":"x:w-full x:min-w-0","children":["$","p",null,{"className":"x:not-first:mt-[1.25em] x:leading-7","children":["需要注意的是,由于扣子工作流通常比较耗时,因此 xiaozhi-client 超过8秒未响应后会自动返回友好的等待处理内容给服务端\n不过不需要担心,xiaozhi-client 会在工作流正确响应后缓存响应数据,等到下次你询问 ",["$","code",null,{"className":"nextra-code","dir":"ltr","children":"是否有结果了?"}]," 时,会自动返回缓存的结果"]}]}]]}]
|
|
117
|
-
b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
118
|
-
7:null
|
|
119
|
-
9:{"metadata":[["$","title","0",{"children":"集成扣子工作流"}]],"error":null,"digest":"$undefined"}
|
|
120
|
-
e:"$9:metadata"
|