GCP node implementation #5325
Replies: 1 comment
|
@LakshmireddyP If your goal is:
then a custom node is the right approach. High-level implementationYour custom node would:
The upload itself is straightforward with the GCS SDK: import { Storage } from '@google-cloud/storage'
const storage = new Storage()
await storage
.bucket(bucketName)
.upload(localFilePath, {
destination: destinationPath
})Google's Storage SDK is the recommended way to upload objects to Cloud Storage. :contentReference[oaicite:1]{index=1} Where should the custom node live?From what I can tell, Flowise doesn't currently have documentation specifically for creating a "GCS Upload" node. However, existing integrations are implemented as node packages under the Flowise source, so the general approach would be to:
If you don't need a reusable node, another option is to use the Custom Document Loader, which supports custom JavaScript and async operations in a sandbox. Depending on your workflow, that may be sufficient without modifying the Flowise codebase. :contentReference[oaicite:2]{index=2} One clarificationAre you trying to upload:
That distinction matters because most Document Loaders emit LangChain If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
how to create custom node for adding files to the GCP bucket which are coming from document loaders.
All reactions