# Create Google Cloud Storage Feed

## User Intent

"How do I sync files from Google Cloud Storage? Show me GCS feed configuration."

## Operation

**SDK Method**: `createFeed()` with FeedTypes.Site\
**Feed Service**: Google Cloud Storage\
**Auth**: Service account credentials

***

## Code Example (TypeScript)

```typescript
import { Graphlit } from 'graphlit-client';
import { FeedTypes, FeedServiceTypes } from 'graphlit-client/dist/generated/graphql-types';

const graphlit = new Graphlit();

const feed = await graphlit.createFeed({
  name: 'GCS Documents',
  type: FeedTypes.Site,
  site: {
    type: FeedServiceTypes.GoogleBlob,
    bucketName: 'my-documents',
    prefix: 'documents/',
    credentials: process.env.GCS_SERVICE_ACCOUNT_JSON!,
  },
  // Optional: add workflow for content processing
  // workflow: { id: workflow.createWorkflow.id }
});

console.log(`Created GCS feed: ${feed.createFeed.id}`);
```

***

## Configuration

**bucketName**: GCS bucket name\
**prefix**: Folder path\
**credentials**: Service account JSON

***


---

# 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://docs.graphlit.dev/api-guides/use-cases/feeds/cloud-storage/feed-create-google-cloud-storage.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.
