The moment it happens
Answer questions from your Drive documents, with the source named
Send a question and get an answer drawn from your company documents in Drive, quoting the file and passage it came from.
- Runs
- The moment it happens
- Apps
- Google Drive, Pinecone
- AI
- Yes, uses the built-in AI allowance
- Access
- Pinecone read; Drive read
Send this to your assistant
Create a ClickRuntime automation: when a question is sent to this link, search my Pinecone index of Drive documents and post an answer to #ask-docs that names the file and quotes the passage.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Teams ask the same questions again and again: what is the travel policy, how many days notice for leave, which template for a contract. The answers are in Drive, but finding the right document and the right paragraph takes longer than asking someone, so the same people get interrupted all day.
Operations, HR and support teams use it to let anyone get a sourced answer from the company's own documents, so the experts can get on with their work.
What you get out of it
Answers with proof
Each answer names the file and quotes the passage, so people can trust it or check it.
Fewer interruptions
Routine questions are answered without pulling in the person who knows.
Finds meaning, not keywords
A question about time off finds the leave policy even if it never says time off.
Honest when it doesn't know
If the documents do not cover the question, the answer says so instead of guessing.
How it works
What happens, step by step
When a question arrives at your automation's link, ClickRuntime receives it straight away.
Your Pinecone index is searched for the passages from your Drive documents that best match the question.
AI writes an answer using only those passages, naming the file and quoting the relevant line.
The question and answer are posted to your Slack channel.
Before it runs live
- Connect Google Drive
- Connect Pinecone
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Google Drive and Pinecone steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_event, credentials, http, notify, ai
HOST, NS = "https://docs-abc123.svc.aped-1234.pinecone.io", "company" # your index host and namespace
def search(text, k=5):
r = http.post(f"{HOST}/records/namespaces/{NS}/search", json={"query": {"inputs": {"text": text}, "top_k": k}}, headers={
"Api-Key": credentials.secret("PINECONE_API_KEY"), "X-Pinecone-API-Version": "2025-04"}).json()
return [h["fields"] for h in r["result"]["hits"]]
@on_event
def handle(event):
question = str((event.json or {}).get("question", "")).strip()[:500]
if not question:
return {"skipped": "no question"}
hits = search(question)
context = "\n\n".join(f"[{h.get('file_name')}] {h['chunk_text']}" for h in hits)
answer = ai.generate(f"Answer using only these passages. Name the file in brackets and quote the key line. If they "
f"don't answer it, say so.\n\n{context}\n\nQuestion: {question}", max_output_tokens=500).text
notify.slack(f"*Q:* {question}\n{answer}", channel="#ask-docs")
return {"answer": answer, "sources": sorted({h.get("file_name") for h in hits})}FAQ
Common questions
Where can questions come from?
What if two documents disagree?
How current are the answers?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get an analysis of each new earnings report compared with past quarters
When a new earnings report lands in your Drive folder, it is indexed and you get an email comparing it with earlier quarters.
See how it worksDraft replies to support emails from your Drive help docs
Each new support email gets a draft reply in Gmail, written from the help documents you keep in Drive.
See how it worksGet an accounting summary for each new EDI or export file in Drive
When a new EDI or accounting export lands in your Drive folder, it is indexed and you get an email summarising its bookings.
See how it worksKeep exploring
Set up “Answer questions from your Drive documents, with the source named” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.