> For the complete documentation index, see [llms.txt](https://docs.coherent.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherent.global/assistant/services/linking-your-file-to-spark.md).

# Linking your file to Spark

There are several advantages to linking your local files with Spark Services. Once linkeda, you can access various applications conveniently. You can link your file without opening the Spark web interface. Just choose the folder where your service is located, find your service, and connect.

After linking your file, a small tag is created within it, which Coherent Assistant recognizes. This tag functions only when logged into the appropriate environment. If you log into a different environment or if there's unauthorized access to your file, the link remains invisible and inaccessible to unauthorized users.

### How to link a file

1. Locate **Services** application.
2. Once you open the application, the first screen you see will tell you whether your file is connected or not.<br>

   <figure><img src="/files/ANJS3DifvYK6pxbcPr9K" alt="" width="368"><figcaption><p>When the file has no link in the current environment, above screen is shown.</p></figcaption></figure>
3. You can link your file to an existing service by clicking on **Select a service**. Or create a brand new service by clicking on Create a new service.
4. Select the service and version you want to link your file to.<br>

   <figure><img src="/files/qZiXBWTHOqjxZbCdRx9E" alt="" width="563"><figcaption><p>1) Locate your service. 2) Click on Next to confirm your selection. 3) Select the version you want to link your file. 4) And finally click on Select to finalize your link.</p></figcaption></figure>
5. Once you have successfully linked your file, you will see the details of the linked service.

<figure><img src="/files/HkzHt4mOzrdeWxTiSRj0" alt="" width="368"><figcaption></figcaption></figure>

Once a file is linked to a service, you can create new versions of that service by uploading the file.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coherent.global/assistant/services/linking-your-file-to-spark.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
