# import-file-from-google-drive

## Description

<mark style="color:purple;">`import-file-from-google-drive`</mark> *adaptor imports a file from Google Drive*.

This adaptor imports a file as-is from Google Drive, without processing it or extracting data from it.\
The file should be shared to with <mark style="color:blue;"><data-flo@data-flo.iam.gserviceaccount.com></mark> and given edit permission.

## Inputs

**`url`**\
Type: `text`\
Required: Yes\
The URL of the file to be imported.

## Outputs

**`file`**\
Type: `file`\
The imported file.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`url` : <https://drive.google.com/file/d/1234/view?usp=sharing>

#### Outputs:

`file`: file.txt

-> Imported the file `file.txt` from Google Drive

## Use Cases

* Import a file of any type from Google Drive, to make that file available to other adaptors for processing (e.g.,[`create-graph-from-dot`](/data-flo/reference-guide/create-graph-from-dot.md),[`import-from-csv-file`](/data-flo/reference-guide/import-from-csv-file.md), feeding the tree argument in [`export-to-microreact-project`](/data-flo/reference-guide/export-to-microreact-project.md), etc.)


---

# Agent Instructions: 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://cgps.gitbook.io/data-flo/reference-guide/import-file-from-google-drive.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.
