## Description
This endpoint lets you run an assistant you can configure in the UI. Users can create a custom AI agent by providing a description of the desired functionality using natural language. The system supports both conversational inputs and advanced prompting techniques to define the agent’s behavior. To get started, [create a custom agent and retrieve its ID](/agents/custom/create-agents).
<Info>The call only returns when the agent has finished fully responding to the input question.</Info>
## Enterprise Settings
To maintain enterprise security, enable Zero Data Retention on your enterprise account. Manage this setting at [you.com/settings/privacy](https://you.com/settings/privacy). When enabled, we do not retain your data and do not use it for model training. <Warning>Privacy settings can only be managed by You.com Enterprise or team admins.</Warning>
Authentication
AuthorizationBearer
A unique API Key is required to authorize API access. For details, see how to get your API Key.
Request
This endpoint expects an object.
agentstringRequired
Your Custom Agent’s ID. Learn how to obtain an agent ID here Create Custom Agents.
inputstringRequired
The question you'd like to ask the agent
streamfalseRequired
Must be true to stream the agent response as it’s generated, and false to receive a response after the agent has finished.
Response
agentstring
The id of the agent populated in the request.
inputlist of objects
The users access role and question you asked the agent
This endpoint lets you run an assistant you can configure in the UI. Users can create a custom AI agent by providing a description of the desired functionality using natural language. The system supports both conversational inputs and advanced prompting techniques to define the agent’s behavior. To get started, create a custom agent and retrieve its ID.
The call only returns when the agent has finished fully responding to the input question.
Enterprise Settings
To maintain enterprise security, enable Zero Data Retention on your enterprise account. Manage this setting at you.com/settings/privacy. When enabled, we do not retain your data and do not use it for model training.
Privacy settings can only be managed by You.com Enterprise or team admins.