GenAiHub

Last checked 8 October 2026 — responded normally.

Answer document questions with OpenAI, Pinecone, Cohere, Gemini and Google Drive

Quick overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick overview This workflow exposes a webhook-powered document Q&A chatbot that searches a Pinecone vector database with OpenAI embeddings, reranks results with Cohere, optionally falls back to Google Gemini, and returns an answer with quoted sources plus Google Drive view and download links for the referenced files. How it works Receives a POST request via webhook with the user’s question in the message field. Searches a Pinecone knowledge base using OpenAI embeddings, reranks the top matches with Cohere, and uses an OpenAI chat model (with Google Gemini as fallback) to produce an answer that includes the document name, page number, and an exact supporting quote. Sends the generated answer to a second OpenAI-based agent that extracts only the referenced source file names into structured JSON. Splits the extracted file-name list into individual items and searches Google Drive for each file to retrieve its file ID. Builds Google Drive view and direct download URLs for the matched files and packages them together with the AI answer. Responds to the original webhook request with the answer content and the assembled source links. Setup Add credentials for OpenAI (chat model and embeddings), Pinecone, Cohere, and Google Gemini (fallback model). Connect Google Drive OAuth credentials and ensure the workflow has access to the Drive location containing your source PDFs. Replace YOUR_PINECONE_INDEX_NAME with your Pinecone index name and confirm your PDFs are already embedded and stored in that index. Activate the workflow, copy the webhook URL, and configure your client (website widget, Slack app, etc.) to POST JSON containing a message field. An n8n automation workflow template by Incrementors.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Incrementors

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • google-sheets
  • google-drive
  • code
  • ai-agent
  • embeddings-openai
  • openai-chat-model
  • simple-memory
  • structured-output-parser

Capabilities

  • 11 nodes

Information

TypeWorkflow
Sourcen8n
AddedOctober 1, 2026

Comments

?

Others in the same category, ranked by how often they are opened.