← All N8N workflows
AI & researchChat TriggerCodeDocument Default Data LoaderEmbeddings Open AiGoogle Drive

pinecone vector store and receive chat events and download google drive

Configured with Chat Trigger, Document Default Data Loader, Embeddings Open Ai, Google Drive, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking "ExecuteWorkflow"Manual TriggerData storePinecone Vector StoreVector Store PineconeTriggerWhen chat messagereceivedChat TriggerAI & modelsOpenAI Chat Model1OpenAI Chat ModelTransformSet file URL in GoogleDriveEdit FieldsFiles / mediaDownload fileGoogle DriveFiles / mediaDefault Data LoaderDocument Default Data Lo…AI & modelsEmbeddings OpenAI2Embeddings Open AiAI & modelsEmbeddings OpenAIEmbeddings Open AiTransformRecursive CharacterText SplitterText Splitter Recursive …TransformSet max chunks to sendto modelEdit FieldsData storeGet top chunks matchingqueryVector Store PineconeCodePrepare chunksCodeAI & modelsAnswer the query basedon chunksInformation ExtractorTransformCompose citationsEdit FieldsTransformGenerate responseEdit Fields

Node categories in this workflow

  • Trigger
  • Data store
  • AI & models
  • Transform
  • Files / media
  • Code

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking "Execute Workflow"TriggerManual TriggerSee node parameters
Pinecone Vector StoreData storeVector Store PineconeSee node parameters
When chat message receivedTriggerChat TriggerSee node parameters
OpenAI Chat Model1AI & modelsOpenAI Chat ModelSee node parameters
Set file URL in Google DriveTransformEdit FieldsSee node parameters
Download fileFiles / mediaGoogle Drivedownload
Default Data LoaderFiles / mediaDocument Default Data LoaderSee node parameters
Embeddings OpenAI2AI & modelsEmbeddings Open AiSee node parameters
Embeddings OpenAIAI & modelsEmbeddings Open AiSee node parameters
Recursive Character Text SplitterTransformText Splitter Recursive Character Text SplitterSee node parameters
Set max chunks to send to modelTransformEdit FieldsSee node parameters
Get top chunks matching queryData storeVector Store PineconeSee node parameters
Prepare chunksCodeCodeSee node parameters
Answer the query based on chunksAI & modelsInformation ExtractorSee node parameters
Compose citationsTransformEdit FieldsSee node parameters
Generate responseTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

  • googleDriveOAuth2Api
  • openAiApi
  • pineconeApi

Workflow notes

1. Setup: Fetch file from Google Drive, split it into chunks and insert into a vector database

1. Setup: Fetch file from Google Drive, split it into chunks and insert into a vector database

Note that running this part multiple times will insert multiple copies into your DB

Try me out

Try me out

  1. In Pinecone, create an index with 1536 dimensions and select it in the two vector store nodes
  2. Populate Pinecone by clicking the 'test workflow' button below
  3. Click the 'chat' button below and enter the following:

Which email provider does the creator of Bitcoin use?

Sticky Note4

Will fetch the Bitcoin whitepaper, but you can change this

pinecone vector store and receive chat events and download google drive

pinecone vector store and receive chat events and download google drive

Purpose and structure

This folder contains the pinecone vector store and receive chat events and download google drive workflow. Its executable nodes use chatTrigger, code, documentDefaultDataLoader, embeddingsOpenAi, googleDrive, informationExtractor, lmChatOpenAi, manualTrigger, set, textSplitterRecursiveCharacterTextSplitter, vectorStorePinecone. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking "Execute Workflow", When chat message received

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Manual/0458_Manual_Code_Create_Triggered.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • 2. Chat with file, getting citations in reponse

More in AI & research