After creating a new custom agent, you can use it via the chat. To use a custom agent, click on Select AI mode:Then, select your custom agent from the menu:You can attach files in the chat to ask the custom agent to perform actions on them by clicking on Attach:
WARNING: Files attached to the chat can only be used with a Custom Agent in the chat itself. Currently, attachments are not accessible when a custom agent is invoked via the API.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"You.com API","colors":{"primary":"#596CED","light":"#decef4","dark":"#596CED"},"logo":{"light":"https://mintcdn.com/you/gx9H8EPolrUtPSge/logo/light.svg?fit=max\u0026auto=format\u0026n=gx9H8EPolrUtPSge\u0026q=85\u0026s=e137388d4ab9a92522ac345398106fd6","dark":"https://mintcdn.com/you/gx9H8EPolrUtPSge/logo/dark.svg?fit=max\u0026auto=format\u0026n=gx9H8EPolrUtPSge\u0026q=85\u0026s=85ee41f940bc8d99aad0168c2d148d30"},"favicon":"/favicon.png","api":{"openapi":["openapi.yaml","openapi_chat.yaml"]},"background":{"decoration":"gradient","color":{"dark":"#090014"}},"navbar":{"links":[{"label":"Discord","href":"https://discord.com/invite/youdotcom"}],"primary":{"type":"button","label":"Get an API Key","href":"https://you.com/platform"}},"footer":{"socials":{"twitter":"https://twitter.com/youdotcom","linkedin":"https://www.linkedin.com/company/youdotcom"}},"icons":{"library":"lucide"},"styling":{},"integrations":{"ga4":{"measurementId":"G-D65GMT6MQN"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"you","hasAudioNarration":false,"actualSubdomain":"you","customDomains":["old-docs.you.com"],"gitSource":{"type":"github","owner":"su-sea","repo":"docs-example","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21c926539692d19e12cd4d","collectionId":"f58c71bd-37ef-4564-984d-fe4050e9be9a","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21c926539692d19e12cd4d:success","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API Reference","count":20},{"language":"default","tag":"Developer Resources","count":9},{"language":"default","tag":"Tutorials","count":8},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Tools","count":4},{"language":"default","tag":"Agent","count":3},{"language":"default","tag":"Custom Agent","count":3},{"language":"default","tag":"Other Tools","count":3},{"language":"default","tag":"Advanced Agent","count":2},{"language":"default","tag":"Search","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".text-light{margin-top:2rem;margin-bottom:4%;font-size:2rem;font-weight:600;font-family:Arial,Helvetica,sans-serif;color:#000}.dark\\:text-dark:is(.dark *){color:#fff}"},{"filePath":"styles/custom.css","content":".custom-welcome-page>div{max-width:none!important;padding:0!important}.custom-welcome-page>div>h1:first-child{display:none}.custom-welcome-page #welcome{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;max-width:1200px;margin:0 auto;min-height:auto;padding:2rem .5rem}.text-light{margin-top:2rem;margin-bottom:4%;font-size:2rem;font-weight:600;font-family:Arial,Helvetica,sans-serif;color:#000}.dark\\:text-dark:is(.dark *){color:#fff}.card-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.prose pre{background:0 0;box-shadow:none}.dark .prose pre{background:#0b1220;border:1px solid rgba(255,255,255,.08)}.beta-badge{display:inline-block;padding:2px 8px;margin:8px 0 12px;font-size:12px;font-weight:600;letter-spacing:.02em;color:#1e3a8a;background:#dbeafe;border:1px solid #93c5fd;border-radius:9999px}.dark .beta-badge{color:#bfdbfe;background:rgba(30,58,138,.35);border-color:#60a5fa}.prose h1{display:inline-block;margin-right:8px}.prose h1+.beta-badge{display:inline-block;vertical-align:middle;position:relative;top:-2px}#custom-agents-page:before{content:\"\"}.prose h1:has(+#custom-agents-page){display:inline-block;margin-right:8px}.prose h1:has(+#custom-agents-page)::after{content:\"Beta\";display:inline-block;padding:2px 8px;margin-left:8px;font-size:12px;font-weight:600;letter-spacing:.02em;color:#1e3a8a;background:#dbeafe;border:1px solid #93c5fd;border-radius:9999px}.dark .prose h1:has(+#custom-agents-page)::after{color:#bfdbfe;background:rgba(30,58,138,.35);border-color:#60a5fa}"}],"page":{"pagePath":"developer-resources/tutorials/custom-agent/use-custom-agents-chat","slug":"/developer-resources/tutorials/custom-agent/use-custom-agents-chat","pageMetadata":{"title":"Use Custom Agents Via Chat","description":"Learn how to use custom agents via the UI","href":"/developer-resources/tutorials/custom-agent/use-custom-agents-chat"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to use custom agents via the UI\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{OptimizedImage,Warning}=_components;if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`After `,_jsx(_components.a,{href:`/developer-resources/tutorials/custom-agent/create-custom-agents`,children:`creating a new custom agent`}),`, you can use it via the chat. To use a custom agent, click on `,_jsx(_components.strong,{children:`Select AI mode`}),`:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=59706ce02604586b28a89fd2ed8ab9f9`,alt:`Selecting the AI mode for calling a custom agent via chat`,\"data-og-width\":`1886`,width:`1886`,\"data-og-height\":`870`,height:`870`,\"data-path\":`images/custom-agents/select-ai-mode.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=280\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=78c75ac56b92d95892e2e4c0ad4300c6 280w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=560\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=d882b97b79e6827f26c072d8f00f3fa5 560w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=840\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=f059d477f6aa8e116475d51e4e991106 840w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=1100\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=23d6650fc629f3f6c183beacbc37c589 1100w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=1650\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=99f5ca0a263bfe6f5a7124dd3ce5694d 1650w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-ai-mode.png?w=2500\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=8edb35103b027f428fcd6ebf23015fac 2500w`}),`\n`,_jsx(_components.p,{children:`Then, select your custom agent from the menu:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=f6f0cab389b76dd7538ad81fb913f06e`,alt:`Selecting a custom agent via chat`,\"data-og-width\":`1900`,width:`1900`,\"data-og-height\":`935`,height:`935`,\"data-path\":`images/custom-agents/select-custom-agent.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=280\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=368f8dc9a6425e04bb0e9dca5d5ceb82 280w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=560\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=ab39dfbf4f144c146cfa341fc9122b96 560w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=840\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=442de15cf269b8aa40f21eed5f9f2313 840w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=1100\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=1e4cfadb5e88c41247156d7101462fa1 1100w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=1650\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=3576cc0e691a857e3113de4912cad171 1650w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/select-custom-agent.png?w=2500\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=2b61a8eede7b0a9dc7fc83897c5a30d4 2500w`}),`\n`,_jsxs(_components.p,{children:[`You can attach files in the chat to ask the custom agent to perform actions on them by clicking on `,_jsx(_components.strong,{children:`Attach`}),`:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=2c21a09afa050e6acfc5a357f8cb1cee`,alt:`Attaching files to the chat for custom agents`,\"data-og-width\":`1891`,width:`1891`,\"data-og-height\":`870`,height:`870`,\"data-path\":`images/custom-agents/attach-files.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=280\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=cc302d6b8dd9241517fb1f426ca72bb6 280w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=560\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=38ba3ad6002708c2769c1ac7ce7f5090 560w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=840\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=843a2902290118ad59a6baa125dfc490 840w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=1100\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=0a144c2d55fb3c55b37f5377c067be1a 1100w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=1650\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=d1366ed1b32f0f5d2a223e186bf1de21 1650w, https://mintcdn.com/you/o8yXV4y4jY2RzSsv/images/custom-agents/attach-files.png?w=2500\u0026fit=max\u0026auto=format\u0026n=o8yXV4y4jY2RzSsv\u0026q=85\u0026s=65125e18f2ab3f1ce02269746e8aea2c 2500w`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`WARNING`}),`: Files attached to the chat can only be used with a Custom Agent in the chat itself. Currently, attachments are not accessible when a custom agent is invoked via the API.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Use Custom Agents Via Chat","description":"Learn how to use custom agents via the UI","href":"/developer-resources/tutorials/custom-agent/use-custom-agents-chat"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"you","siteName":"You.com API","title":"Use Custom Agents Via Chat - You.com API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"developer-resources/tutorials/custom-agent/use-custom-agents-chat.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to use custom agents via the UI\">\u003cmeta data-mint-head name=\"application-name\" content=\"You.com API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Use Custom Agents Via Chat - You.com API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to use custom agents via the UI\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"You.com API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://you.mintlify.app/_mintlify/api/og/v2?division=Custom+Agent\u0026amp;title=Use+Custom+Agents+Via+Chat\u0026amp;description=Learn+how+to+use+custom+agents+via+the+UI\u0026amp;theme=f554274653090c6133fad80f\u0026amp;signature=2398cec9f67f5afbcfe2d7e08b4564792620b230ce4b3880214cc2170bc35f09\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Use Custom Agents Via Chat - You.com API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to use custom agents via the UI\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://you.mintlify.app/_mintlify/api/og/v2?division=Custom+Agent\u0026amp;title=Use+Custom+Agents+Via+Chat\u0026amp;description=Learn+how+to+use+custom+agents+via+the+UI\u0026amp;theme=f554274653090c6133fad80f\u0026amp;signature=2398cec9f67f5afbcfe2d7e08b4564792620b230ce4b3880214cc2170bc35f09\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/you/faYhI-oxxSDbXhz9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"You.com API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#596CED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developer-resources/tutorials/custom-agent/use-custom-agents-chat.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://old-docs.you.com/#organization\",\"name\":\"You.com API\",\"url\":\"https://old-docs.you.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/you/gx9H8EPolrUtPSge/logo/light.svg?fit=max\u0026auto=format\u0026n=gx9H8EPolrUtPSge\u0026q=85\u0026s=e137388d4ab9a92522ac345398106fd6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://old-docs.you.com#website\",\"name\":\"You.com API\",\"url\":\"https://old-docs.you.com\",\"publisher\":{\"@id\":\"https://old-docs.you.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat#webpage\",\"url\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat\",\"name\":\"Use Custom Agents Via Chat\",\"description\":\"Learn how to use custom agents via the UI\",\"isPartOf\":{\"@id\":\"https://old-docs.you.com#website\"},\"breadcrumb\":{\"@id\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tutorials\",\"item\":\"https://old-docs.you.com/developer-resources/tutorials/search/guides\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom Agent\",\"item\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/create-custom-agents\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Use Custom Agents Via Chat\",\"item\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat#article\",\"headline\":\"Use Custom Agents Via Chat\",\"name\":\"Use Custom Agents Via Chat\",\"description\":\"Learn how to use custom agents via the UI\",\"url\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat\",\"mainEntityOfPage\":{\"@id\":\"https://old-docs.you.com/developer-resources/tutorials/custom-agent/use-custom-agents-chat#webpage\"},\"publisher\":{\"@id\":\"https://old-docs.you.com/#organization\"},\"isPartOf\":{\"@id\":\"https://old-docs.you.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"You.com API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"You.com API","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started/welcome"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/search"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools/mcp-server"}]},{"tab":"Developer Resources","groups":[{"group":"Tutorials","pages":[{"group":"Search","pages":[{"title":"Guides","href":"/developer-resources/tutorials/search/guides"},{"title":"Search Operators","href":"/developer-resources/tutorials/search/search-operators"}]},{"group":"Advanced Agent","pages":[{"title":"Stream Response in cURL","href":"/developer-resources/tutorials/advanced-agent/curl-stream-response"},{"title":"Stream Response in Python","href":"/developer-resources/tutorials/advanced-agent/python-stream-response"}]},{"group":"Custom Agent","pages":[{"title":"Create Custom Agents","description":"Learn how to create custom agents","href":"/developer-resources/tutorials/custom-agent/create-custom-agents"},{"title":"Use Custom Agents Via Chat","href":"/developer-resources/tutorials/custom-agent/use-custom-agents-chat"},{"title":"Stream Response in cURL","description":"Learn how to manage the stream response with the Custom Agent API in cURL","href":"/developer-resources/tutorials/custom-agent/curl-stream-response"}]},{"group":"Express Agent","pages":[{"title":"Stream Response in cURL","href":"/developer-resources/tutorials/express-agent/curl-stream-response"}]}]},{"group":"Errors","pages":[{"title":"Errors","href":"/developer-resources/errors"}]}]}]},"title":"Use Custom Agents Via Chat - You.com API","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BNnMwe0F.js","lightbox-handle-r17bVUz3.js"]}