|
| 1 | +--- |
| 2 | +rank: 1 |
| 3 | +related_guides: |
| 4 | + - authentication/tokens/developer-tokens/ |
| 5 | + - box-ai/ai-tutorials/ask-questions |
| 6 | + - box-ai/ai-tutorials/default-agent-overrides |
| 7 | + - box-ai/ai-tutorials/generate-text |
| 8 | + - box-ai/ai-tutorials/extract-metadata-structured |
| 9 | + - box-ai/ai-tutorials/extract-metadata |
| 10 | +--- |
| 11 | + |
| 12 | +# Get started with AI studio |
| 13 | + |
| 14 | +<Messsage type='caution'> |
| 15 | + |
| 16 | +Box AI Studio is available only for Enterprise Advanced accounts. |
| 17 | + |
| 18 | +</Message> |
| 19 | + |
| 20 | +To start creating custom AI agents with AI studio you need a platform |
| 21 | +application with enabled Box AI scope and a developer token to |
| 22 | +authenticate your calls. |
| 23 | + |
| 24 | +## Create a custom application |
| 25 | + |
| 26 | +First you need to create a platform application you will use to make calls. To |
| 27 | +create an application, follow the guide on [creating platform apps][createapps]. |
| 28 | + |
| 29 | +## Enable Box AI studio |
| 30 | + |
| 31 | +To use Box AI studio, make sure it is enabled by a Box admin in the Admin |
| 32 | +Console. |
| 33 | +If you are a Box Admin, you will find the necessary information in |
| 34 | +[Enabling Box AI Studio and Managing Agents][enable]. |
| 35 | + |
| 36 | +To interact with Box AI API, you need the `ai.readwrite` [scope][scope] |
| 37 | +added for your application. Before you add the scope, make sure that the Box |
| 38 | +Admin has granted you the access to Box AI API. If you can't see the |
| 39 | +**Manage AI** option in your app configuration settings, contact your admin. |
| 40 | + |
| 41 | +To add a scope: |
| 42 | + |
| 43 | +1. Open your application in Developer Console. |
| 44 | +2. Go to **Configuration** > **Required Access Scopes** > **Content Actions** |
| 45 | +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. |
| 46 | + |
| 47 | +  |
| 48 | + |
| 49 | +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. |
| 50 | + |
| 51 | +## Generate a developer token |
| 52 | + |
| 53 | +You need a developer token |
| 54 | +to authenticate your app when sending requests. |
| 55 | + |
| 56 | +To generate a token: |
| 57 | + |
| 58 | +1. Go to **Developer Console** > **My Platform Apps**. |
| 59 | +2. Click the **Options menu** button (…) on the right. |
| 60 | +3. Select **Generate Developer Token**. The token will be automatically generated and saved to clipboard. |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +You can also open your app, go to |
| 65 | +**Configuration** > **Developer Token** |
| 66 | +and generate the token. |
| 67 | + |
| 68 | +<Message type="notice"> |
| 69 | +A developer token is only valid for one hour. |
| 70 | +</Message> |
| 71 | + |
| 72 | +For additional details, see [developer token][token]. |
| 73 | +After you generate the token, you can use it in cURL |
| 74 | +or other clients, such as [Postman][postman], to make |
| 75 | +calls. |
| 76 | + |
| 77 | +[enable]: https://support.box.com/hc/en-us/articles/37228079461267-Enabling-Box-AI-Studio-and-Managing-Agents/#h_01JH9HAMP43YYN6VWM51QCK413 |
| 78 | +[token]: g://authentication/tokens/developer-tokens |
| 79 | +[scope]: g://api-calls/permissions-and-errors/scopes |
| 80 | +[createapps]: g://applications/app-types/platform-apps |
| 81 | +[postman]: g://tooling/postman |
| 82 | +[authorization]: g://authorization |
| 83 | +[reauthorization]: g://authorization/custom-app-approval#re-authorization-on-changes |
0 commit comments