--- title: "Vertex AI Template" slug: "mindbehind-code-station-vertex-ai-template" description: "Create and use the Vertex AI template in MindBehind Code Station to integrate Google Cloud AI services into your conversational flows." tags: ["code station", "vertex ai", "code station templates"] updated: 2026-04-12T15:07:41Z published: 2026-04-12T15:07:41Z canonical: "academy.insiderone.com/mindbehind-code-station-vertex-ai-template" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Vertex AI Template > **Suggested reading**: [Integrate Code Station](/docs/mindbehind-integrate-code-station) Vertex AI, a machine learning platform from Google Cloud, facilitates the building, training, and deployment of machine learning models at scale. When integrated with Code Station, Vertex AI offers several key advantages, including: - Context window, - Document analysis, - Multimodal capabilities, - Language support, - Integration with apps, - Data analysis, - Personalised AI, - Conversational AI, - API and developer features. Adding a new ready-made template to [Code Station](/docs/mindbehind-integrate-code-station) enables access to all Vertex AI services when this module is incorporated into the map within the MindBehind flow. This guide provides answers to these questions: - [What are the requirements for using the Vertex AI template?](/v1/docs/mindbehind-code-station-vertex-ai-template#requirements) - [How can I use the Vertex AI Template?](/v1/docs/mindbehind-code-station-vertex-ai-template#how-to-use-the-vertex-ai-template) - [What are the limitations of using the Vertex AI template?](/v1/docs/mindbehind-code-station-vertex-ai-template#limitations) ## Requirements Before integrating the Vertex AI template in the Code Station module, ensure that all the requirements below are met. Once completed, follow the steps for [Vertex AI integration](/v1/docs/mindbehind-code-station-vertex-ai-template#how-to-use-the-vertex-ai-template). 1. Go to [Google Cloud IAM and Admin menu](https://console.cloud.google.com/iam-admin/iam) and create a user with specific access. You can select the "Vertex AI Viewer" option. You can read [Google Cloud's Vertex AI Access Control documentation](https://cloud.google.com/vertex-ai/docs/general/access-control) for further details on the access types. 2. To create a service account, go to [Google Cloud IAM and the Admin menu](https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts?orgonly=true&supportedpurview=project). You can refer to the [Google Cloud's Service Account documentation](https://cloud.google.com/vertex-ai/docs/general/custom-service-account) for further details. 3. Click the "Manage Keys" option in the **Actions** menu for the newly created service and click the "Add a New Key" button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/Monosnap%20Furkan%20Sanli%20(DM)%20-%20Insider%20-%201%20new%20item%20-%20Slack%202024-10-21%2013-26-27(1).png) 4. Select the "JSON" format for your new key type and click the **Create** button. It will be automatically downloaded to your computer. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/Screenshot%202024-10-21%20at%2013.24.11.png) ## How to use the Vertex AI template After you meet all the requirements above, follow the steps below to create your Vertex AI template: 1. Navigate to **Companies**> **Your Company**> **Code Station**. Click the **Secret Manager** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/tuts4.png) 2. Click the **Add Secret** button.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/tuts7.png) 3. Enter a name for your Vertex AI template and select the **Custom** option from the dropdown list of **Property Type**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vai*.png) 4. Add the information in the table below as your **property keys** and **values**:  | Property Key | Property Value | | --- | --- | | vertexUrl | https://us-central1-aiplatform.googleapis.com/v1/projects/mb-prod-279015/locations/europe-west3/publishers/google/models/gemini-1.5-pro-preview-0409:streamGenerateContent | | serviceAccount | Open the JSON file that you have downloaded and copy and paste the code in the value field. | | tokenIntegrationUrl | https://a2g1q3o8pi.execute-api.eu-central-1.amazonaws.com/Prod/get-token | 5. After filling in this information, click the **Add Secret** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vai2*.png) 6. Go back to the **C****ode Station** page on the **Company Management** and click the **Add Code Block** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/acb9.png) 7. Click the **Select** button for the **Create from Template** option.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/acb2(1).png) 8. Click the **Select** button for the Vertex template. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vai3*.png) 9. Enter a name for your template, select the template from the dropdown list and the secret that you have created before. Click the **Add Code Block** button.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vai4*.png) Now, you can use your template in your maps. 10. After you prepare the flow and add the **code module**, you need to identify two parameters: - **#file**: It will be received from the [Input Action](/docs/input-action) when you upload a file. - **#question**: It will also be received from the [Input Action](/docs/input-action) when you ask a question related to the **#file**.  #answer parameter is added automatically to receive an answer from Vertex AI, and it is in the text format.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vai6*.png) The diagram below provides a high-level summary of the generative AI workflow.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/vertexai*.png) ## Limitations You can check the relevant limitations in the table below when using the Vertex AI template in your flows. | Content | Maximum Size | Supported Formats | Resolution Limit | Maximum Length | | --- | --- | --- | --- | --- | | Images | 10 MB | JPEG, PNG, BMP, TIFF | No resolution limit. | | | Videos | 100 MB | MP4, MOV, AVI | No resolution limit. | 10 minutes | | Audio | 100 MB | MP3, WAV, OGG | | 10 minutes | | Files | 100 MB | PDF, DOCX, TXT, ZIP | | | - A maximum of 5 images, videos, audio files, or files can be sent in a single API request. - The total size of all files cannot exceed 1 GB. - The API does not accept inappropriate or copyrighted content. Refer to [Google's Gemini API documentation](https://ai.google.dev/) for further details. Vertex AI does not provide data storage options specifically in Turkey. The available data residency locations are in North America, Europe, and Asia, but Turkey is currently not included.