-
Notifications
You must be signed in to change notification settings - Fork 93
AI Studio guides #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AI Studio guides #681
Changes from all commits
8ea5a26
587b848
1b686c4
e695585
1cca282
550345b
a8f6423
91461d2
a427677
4788429
ca18980
9e94907
abdefb9
91e84d2
94df4db
e2b4dc6
441fee2
e14a432
fe8ea0b
f8641c5
e8a7715
47081c8
7460268
29c68dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| rank: 1 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Create agents | ||
|
|
||
| <Messsage type='caution'> | ||
|
|
||
| Box AI Studio is available only for Enterprise Advanced accounts. | ||
|
|
||
| </Message> | ||
|
|
||
| The `POST/2.0/ai_agents` endpoint allows you to create a new, custom [AI agent][agents]. | ||
|
|
||
| ## Send a request | ||
|
|
||
| To send a request, use the `POST/2.0/ai_agents` endpoint. | ||
|
|
||
| Make sure you have generated the developer token | ||
| to authorize your app. See [getting started with Box AI][prereq] | ||
| for details. | ||
|
|
||
| <Samples id='post-ai-agents' /> | ||
|
|
||
| ### Parameters | ||
|
|
||
| To make a call, you must pass the following parameters. Mandatory parameters are in **bold**. | ||
|
|
||
| <!--alex ignore--> | ||
|
|
||
| | Parameter| Description| Example| | ||
| |--------|--------|-------| | ||
| | **`type`** | The type of agent used to handle queries. | `ai_agent` | | ||
| | **`name`** | The name of the AI Agent. | `My AI Agent` | | ||
| | **`access_state`** | The state of the AI Agent. Value is one of `enabled` `disabled`. | `enabled` | | ||
| | `icon_reference` | The icon reference of the AI Agent. It should have format of the URL `https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>` , where the possible values of `file_name` are: `logo_boxAi.png`,`logo_stamp.png`, `logo_legal.png`,`logo_finance.png`,`logo_config.png`,`logo_handshake.png` `logo_analytics.png`,`logo_classification.png`. | `https://cdn01.boxcdn.net/app-assets/aistudio/avatars/logo_analytics.svg` | | ||
| | `allowed_entities` | List of allowed users or groups. | | | ||
| | `ask` | The AI Agent to be used for ask. | `ask` | | ||
| | `extract` | The AI Agent to be used for extraction. | | | ||
| | `text_gen` | The AI agent used for generating text. | | | ||
|
|
||
| <!--alex enable--> | ||
|
|
||
| [agents]: g://box-ai/ai-agents/index | ||
| [prereq]: g://ai-studio/getting-started-ai-studio |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| rank: 5 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Delete AI agent | ||
|
|
||
| The `DELETE/2.0/ai_agents/{id}` endpoint allows you to delete a custom AI agent based on its ID. | ||
|
|
||
| ## Send a request | ||
|
|
||
| To send a request, use the `DELETE/2.0/ai_agents/{id}` endpoint. | ||
|
|
||
| <Samples id='delete-ai-agents-id' /> | ||
|
|
||
| ### Parameters | ||
|
|
||
| To make a call, you must pass the following parameters. Mandatory parameters are in **bold**. | ||
|
|
||
| | Parameter| Description| Example| | ||
| |--------|--------|-------| | ||
| | **`agent_id`** | The ID of the agent to delete. | `1234` | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| rank: 3 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Get AI agent by ID | ||
|
|
||
| The `GET/2.0/ai_agents/{id}` endpoint allows you to list a specific AI | ||
| agent by the `agent_id` parameter. | ||
|
|
||
| ## Send a request | ||
|
|
||
| To send a request, use the `GET/2.0/ai_agents/{id}` endpoint. | ||
|
|
||
| <Samples id='get-ai-agents-id' /> | ||
|
|
||
| ### Parameters | ||
|
|
||
| To make a call, you must pass the following parameters. Mandatory parameters are in **bold**. | ||
|
|
||
| | Parameter| Description| Example| | ||
| |--------|--------|-------| | ||
| | **`agent_id`** | The agent id to get. | `1234` | | ||
| | `fields` | The fields to return in the response. | `ask` | |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| rank: 2 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Get agents | ||
|
|
||
| <Messsage type='caution'> | ||
|
|
||
| Box AI Studio is available only for Enterprise Advanced accounts. | ||
|
|
||
| </Message> | ||
|
|
||
| ## List all AI agents | ||
|
|
||
| The `GET/2.0/ai_agents` endpoint allows you to list all AI agents based on the provided parameters. | ||
|
|
||
| ### Send a request | ||
|
|
||
| To send a request, use the `GET/2.0/ai_agents` endpoint. | ||
|
|
||
| Make sure you have generated the developer token | ||
| to authorize your app. See [getting started with Box AI Studio][getting-started] | ||
| for details. | ||
|
|
||
| <Samples id='get-ai-agents' /> | ||
|
|
||
| #### Parameters | ||
|
|
||
| To make a call, you must pass the following parameters. Mandatory parameters are in **bold**. | ||
|
|
||
| | Parameter| Description| Example| | ||
| |--------|--------|-------| | ||
| | `mode` | The mode to filter the agent configuration to return. Possible values are: `ask`, `text_gen`, and `extract`. | `ask` | | ||
| | `fields` | The fields to return in the response. | `ask` | | ||
| | `agent_state` | The state of the agent to return. Value is one of `enabled`,`disabled`. | `enabled` | | ||
| | `fields` | The fields to return in the response. Value is one of `ask`, `text_gen`, `extract`. | `ask` | | ||
| | `include_box_default` | Whether to include the Box default agents in the response. | `true` | | ||
| | `limit` | The maximum number of items to return per page. | `1000` | | ||
| | `marker` | Defines the position marker at which to begin returning results. | `JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii` | | ||
|
|
||
| [getting-started]: g://ai-studio/getting-started-ai-studio |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| rank: 0 | ||
| related_guides: | ||
| - ai-studio/ai-studio-agents/create-agents | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/generate-text | ||
| --- | ||
|
|
||
| # AI studio agents | ||
|
|
||
| <Messsage type='caution'> | ||
|
|
||
| Box AI Studio is available only for Enterprise Advanced accounts. | ||
|
|
||
| </Message> | ||
|
|
||
| Create, list, update, and delete custom AI agents. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| --- | ||
| rank: 4 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Update AI agent | ||
|
|
||
| The `PUT/2.0/ai_agents/{id}` endpoint allows you to update a custom AI agent based on its ID. | ||
|
|
||
| ## Send a request | ||
|
|
||
| To send a request, use the `PUT/2.0/ai_agents/{id}` endpoint. | ||
|
|
||
| <Samples id='put-ai-agents_id' /> | ||
|
|
||
| ### Parameters | ||
|
|
||
| To make a call, you must pass the following parameters. Mandatory parameters are in **bold**. | ||
|
|
||
| <!--alex ignore--> | ||
|
|
||
| | Parameter| Description| Example| | ||
| |--------|--------|-------| | ||
| | **`type`** | The type of agent used to handle queries. | ```` | | ||
| | **`name`**| The name of the AI Agent. | My AI Agent | | ||
| | **`access_state`** | The state of the AI Agent. Value is one of `enabled` `disabled`. | `enabled` | | ||
| | `icon_reference` | The icon reference of the AI Agent. It should have format of the URL `https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>`, where possible values of `file_name` are: `logo_boxAi.png`,`logo_stamp.png`,`logo_legal.png`,`logo_finance.png`,`logo_config.png`,`logo_handshake.png`,`logo_analytics.png`,`logo_classification.png` | `https://cdn01.boxcdn.net/app-assets/aistudio/avatars/logo_analytics.svg` | | ||
| | `allowed_entities` | List of allowed users or groups. | | ||
| | `ask` | The AI Agent to be used for ask. | `ask` | | ||
| | `extract` | The AI Agent to be used for extraction. | | | ||
| | `text_gen` | The AI agent used for generating text. | | | ||
|
|
||
| <!--alex ignore--> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| --- | ||
| rank: 1 | ||
| related_guides: | ||
| - authentication/tokens/developer-tokens/ | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/default-agent-overrides | ||
| - box-ai/ai-tutorials/generate-text | ||
| - box-ai/ai-tutorials/extract-metadata-structured | ||
| - box-ai/ai-tutorials/extract-metadata | ||
| --- | ||
|
|
||
| # Get started with AI studio | ||
|
|
||
| <Messsage type='caution'> | ||
|
|
||
| Box AI Studio is available only for Enterprise Advanced accounts. | ||
|
|
||
| </Message> | ||
|
|
||
| To start creating custom AI agents with AI studio you need a platform | ||
| application with enabled Box AI scope and a developer token to | ||
| authenticate your calls. | ||
|
|
||
| ## Create a custom application | ||
|
|
||
| First you need to create a platform application you will use to make calls. To | ||
| create an application, follow the guide on [creating platform apps][createapps]. | ||
|
|
||
| ## Enable Box AI studio | ||
|
|
||
| To use Box AI studio, make sure it is enabled by a Box admin in the Admin | ||
| Console. | ||
| If you are a Box Admin, you will find the necessary information in | ||
| [Enabling Box AI Studio and Managing Agents][enable]. | ||
|
|
||
| To interact with Box AI API, you need the `ai.readwrite` [scope][scope] | ||
| added for your application. Before you add the scope, make sure that the Box | ||
| Admin has granted you the access to Box AI API. If you can't see the | ||
| **Manage AI** option in your app configuration settings, contact your admin. | ||
|
|
||
| To add a scope: | ||
|
|
||
| 1. Open your application in Developer Console. | ||
| 2. Go to **Configuration** > **Required Access Scopes** > **Content Actions** | ||
| 3. Select the **Manage AI** scope. Box Platform will automatically include the scope when making the call. If you are added as an collaborator for a given app, but do not have Box AI API access, you will see the **Manage AI** scope checked and grayed out. This means the app owner has the AI scope enabled but you cannot change this setting. | ||
|
|
||
|  | ||
|
|
||
| 4. Submit your app for [authorization or enablement][authorization]. If you want to enable Box AI API for an existing application, you must [re-authorize][reauthorization] it. | ||
|
|
||
| ## Generate a developer token | ||
|
|
||
| You need a developer token | ||
| to authenticate your app when sending requests. | ||
|
|
||
| To generate a token: | ||
|
|
||
| 1. Go to **Developer Console** > **My Platform Apps**. | ||
| 2. Click the **Options menu** button (…) on the right. | ||
| 3. Select **Generate Developer Token**. The token will be automatically generated and saved to clipboard. | ||
|
|
||
|  | ||
|
|
||
| You can also open your app, go to | ||
| **Configuration** > **Developer Token** | ||
| and generate the token. | ||
|
|
||
| <Message type="notice"> | ||
| A developer token is only valid for one hour. | ||
| </Message> | ||
|
|
||
| For additional details, see [developer token][token]. | ||
| After you generate the token, you can use it in cURL | ||
| or other clients, such as [Postman][postman], to make | ||
| calls. | ||
|
|
||
| [enable]: https://support.box.com/hc/en-us/articles/37228079461267-Enabling-Box-AI-Studio-and-Managing-Agents/#h_01JH9HAMP43YYN6VWM51QCK413 | ||
| [token]: g://authentication/tokens/developer-tokens | ||
| [scope]: g://api-calls/permissions-and-errors/scopes | ||
| [createapps]: g://applications/app-types/platform-apps | ||
| [postman]: g://tooling/postman | ||
| [authorization]: g://authorization | ||
| [reauthorization]: g://authorization/custom-app-approval#re-authorization-on-changes | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| rank: 0 | ||
| related_guides: | ||
| - ai-studio/ai-studio-agents/create-agents | ||
| - box-ai/ai-tutorials/ask-questions | ||
| - box-ai/ai-tutorials/generate-text | ||
| --- | ||
|
|
||
| # Box AI Studio | ||
|
|
||
| <Messsage type='caution'> | ||
|
|
||
| Box AI Studio is available only for Enterprise Advanced accounts. | ||
|
|
||
| </Message> | ||
|
|
||
| [Box AI Studio][ai-studio] allows you to build and manage custom AI agents to | ||
| best suit your business needs. For example, you can create an AI agent | ||
| that acts as a compliance consultant, answering questions regarding customer | ||
| documentation with the FedRAMP Moderate compliance in mind. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add information where those agents are later available for use, as this is not clear. |
||
|
|
||
| ## Box AI Studio capabilities | ||
|
|
||
| Currently, you can configure Box AI agent to answer user questions or generate | ||
| text you can use in your documents. | ||
|
|
||
|  | ||
|
|
||
| ## Supported languages | ||
|
|
||
| <!--alex ignore--> | ||
|
|
||
| Box AI studio works in a number of languages including | ||
| English, Japanese, French, Spanish, and many more. | ||
| However, the underlying models are primarily | ||
| trained on English language documents. This means | ||
| that prompts in other languages may return answers | ||
| of lower quality than in English. Tests have shown | ||
| satisfactory results for summarizing, checking grammar | ||
| and spelling, and answering questions, but bear in mind | ||
| that the results may be different than in English. | ||
|
|
||
| <!--alex enable--> | ||
|
|
||
| <Message type="tip"> | ||
|
|
||
| <!--alex ignore--> | ||
|
|
||
| Switch the language to Japanese to get | ||
| better results for this language. | ||
|
|
||
| </Message> | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed in Box AI main guide there is Box AI API in User Activity Report (UAR) section, should we also inlcude it here? |
||
| <!--alex enable--> | ||
|
|
||
| [ai-studio]: https://support.box.com/hc/en-us/articles/37228079461267-Enabling-Box-AI-Studio-and-Managing-Agents | ||
Uh oh!
There was an error while loading. Please reload this page.