> For the complete documentation index, see [llms.txt](https://docs.fusion.vectra.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fusion.vectra.ai/cloud-onboarding/gcp-cloud-onboarding/quickstart-gcp/context-integration.md).

# Add context integration to Fusion

📘 You need a GCP service account to setup a context integration.: Follow the initial steps below to create one. 1. Create a GCP service account Go to the Service Accounts page Click Create Service Ac

{% hint style="info" %}
**You need a GCP service account to setup a context integration.**

Follow the initial steps below to create one.
{% endhint %}

## 1. Create a GCP service account <a href="#id-1-create-a-gcp-service-account" id="id-1-create-a-gcp-service-account"></a>

1. Go to the Service Accounts page

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-ac3d4ed4cd14d63970d5587c4241a6738d6eae6b%2Fbde3e4c53003ceee865afff0616c28cbf755583c9be44eb7e659643aba35f2e3.png?alt=media)

2. Click **Create Service Account** and follow the steps in the wizard.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-6a1cbc4b27d02c6ed0b1254da95059c29b1a1128%2F2a4d50372c619eeb02cec052d0f5cfaa77effe93b5ce07073a2b6a9f0d32d00e.png?alt=media)

3. Create a service account name; your service account ID email address will be auto-created for you.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-d8b6c47e8633ed316141f1390b5462d433457d4f%2F7ea0542ab8bed253de7cf6bfe01f165fb7638eb3a0d7fdcb6e3db64acd743b37.png?alt=media)

4. Click **Select a role**, use the **Filter**, type **viewer** into the filter, click **Viewer** to give this service account a **Viewer role**.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-e2490fda32dc50701ad3c54552d35155ed59bcfa%2Fcf7882e8ae135e3e9b013b3c5f757103ee739a389cf89236b391299c4fdb1e86.png?alt=media)

Leave the rest set as default.

## 2. Create your service account access keys and export a JSON file <a href="#id-2-create-your-service-account-access-keys-and-export-a-json-file" id="id-2-create-your-service-account-access-keys-and-export-a-json-file"></a>

#### The following steps will enable you to automate context configuration in Vectra Fusion. <a href="#the-following-steps-will-enable-you-to-automate-context-configuration-in-vectra-fusion" id="the-following-steps-will-enable-you-to-automate-context-configuration-in-vectra-fusion"></a>

1. Click **:** to access Actions for your newly created service account, then select **Manage keys**.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-0cab7e2d534cfeb10fe54a9ebcb12e4ae1d6406a%2F58992acf5ad5aacd1513202ca5f4b3794d353e6df074a7cbc00d4ff24d20e744.png?alt=media)

2. Click the **Add Key** menu and select **Create new key**

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-d7c929edffacbe4d1ab23f594043316bad4c4fb1%2F6c200d47e116145a7f3ae356f4dd16399a6619bd07ce101cc9231ee014b2275d.png?alt=media)

3. Choose **JSON** format. This will enable you to export a file that will automate context configuration in Vectra Fusion and reduce setup to one step.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-8618250aeab99e70ea1f234b9d846f8c56d74300%2F5c623d28ec6f004554f0c3aee98e578c6aaa46166baf9231dd161fa16c336d6a.png?alt=media)

4. The **JSON** file containing your private key will be auto-downloaded to your computer, delete this file once you're done with it.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-539dc5a0e93a8d9c0f335f83ded37ee3fba642b5%2F23416d0dd8c9ff64038707d85a6a609d1ec655194d80fbb1b65ef4ea1ee8596f.png?alt=media)

## 3. Create a new Context Integration in Vectra Fusion and upload your JSON file. <a href="#id-3-create-a-new-context-integration-in-vectra-fusion-and-upload-your-json-file" id="id-3-create-a-new-context-integration-in-vectra-fusion-and-upload-your-json-file"></a>

1. In the Fusion portal, click the ⚙️ -> **Settings** -> **Traffic Sources** -> **Context Integrations** -> **Add Integrations**

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-fa24b650f5e4c1b38dd4dd686fef11d473fd9e40%2F4b21575027064f8de6d8ef3c23dd18d52fac7448999b7e1953fbadcab7bd6b22.png?alt=media)

2. Select **Google Cloud Provider**

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-48510361104c20a45088392ef7ad645bcdb7c444%2F05cbadd2b5ceacd42f0e43beedd9dc71d62a6cbcda92d97501b6856d17d414ab.png?alt=media)

3. Use the "**IMPORT FROM JSON**" button to import your JSON file you exported from GCP.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-752006428f2904aa1b86dfb638fc87b5d99b91af%2F9a3301a7f3097a3faf41317e055465d678254f6a6e1bce665ef9535c04178092.png?alt=media)

4. Leave **Zone** blank to automatically include all zones.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-ce9f34152df64acee8239725e9c3ec66566d94a1%2F7613c6c117493d263c51ef42e1b817e7da7cb76c728e3ba8af10107828845f9f.png?alt=media)

5. All fields will be auto-completed and your private key will be imported.
6. Click **Create and Run** to save.

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-89ed393f8291c4981751594001b507d9274b5ad7%2F459d0553b5ece78259f648d54b3177a3e02c5a900ee5e683572b19e9b06cfc07.png?alt=media)

{% hint style="success" %}
**You're done!**
{% endhint %}

Check **Context Labels** to verify your context integration is working as expected

![](https://1075194167-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7upncbzIm3grJePXaOO9%2Fuploads%2Fgit-blob-e61b9a6ad0f117a30053a067ade0e1e99ec28da4%2Fec29ea92a95a29ac2db34e5cd7f40870e8629618a3adb20dce1ade3356217f2a.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fusion.vectra.ai/cloud-onboarding/gcp-cloud-onboarding/quickstart-gcp/context-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
