Custom Agent
## Description
This endpoint lets you run an assistant you can configure within our web product at https://you.com/agents. The system supports both conversational inputs and advanced prompting techniques to define the agent’s behavior.
<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
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
agent
Your Custom Agent's ID. To obtain one you must have created a custom agent at https://you.com/agents.
input
The question you'd like to ask the agent
stream
Must be true to stream the agent response as it’s generated, and false to receive a response after the agent has finished.
Response
agent
The id of the agent populated in the request.
input
The users access role and question you asked the agent
output
The agent's response items