Skip to content

The moment it happens

Answer support requests from your knowledge base and log every ticket

Each support request gets a suggested answer from your knowledge base in Slack, and every request is logged in your sheet with its category.

Runs
The moment it happens
Apps
Google Sheets, Pinecone
AI
Yes, uses the built-in AI allowance
Access
Pinecone read; sheet edit

Send this to your assistant

Create a ClickRuntime automation: when a support request arrives at this link, answer it from my Pinecone knowledge base, post the request and answer to #support, and add the question, answer and category to my Support log sheet.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Small teams answer support from memory and keep no record, so nobody can say which questions come up most or where the documentation falls short. Each answer is also only as good as the person who happened to pick it up.

Small software companies, shops and service teams use it to give every request a well-sourced answer and to build a log that shows what customers keep asking.

What you get out of it

  • Every request gets a good start

    A suggested answer from your knowledge base is ready the moment a request arrives.

  • A log that tells you something

    Categories in the sheet show which topics take up the most support time.

  • Gaps become visible

    Requests the knowledge base cannot answer show where new articles are needed.

  • The team sees it together

    Posting in Slack lets whoever is free pick it up.

How it works

What happens, step by step

  1. When a support request arrives at your automation's link, ClickRuntime receives it straight away.

  2. Your Pinecone knowledge base is searched for the passages that match the request.

  3. AI writes a suggested answer and picks a category.

  4. The request and answer are posted to Slack, and a row is added to your support log sheet.

Before it runs live

  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Connect Pinecone
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Answer support requests from your knowledge base and log every ticketjust nowSucceeded
Slack · #support📩 sam@acme.example · billing · "Can I switch to annual billing mid-month?" Suggested answer: Yes, the unused part of this month is credited...

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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 Sheets and Pinecone steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
support_emails_answered_from_pinecone_and_logged_to_sheets.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http, notify, ai

SHEET_ID = "your-spreadsheet-id"
SCHEMA = {"type": "object", "properties": {"answer": {"type": "string"}, "category": {"enum": ["billing", "shipping", "account", "bug", "other"]}}}
HOST, NS = "https://kb-abc123.svc.aped-1234.pinecone.io", "help"  # 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):
    t = event.json or {}
    text = str(t.get("message", ""))[:2000]
    if not text:
        return {"skipped": "empty"}
    kb = "\n\n".join(h["chunk_text"] for h in search(text, 4))
    out = ai.generate(f"Answer this support request using only the knowledge base, and categorise it.\nKB:\n{kb}\n\n"
                      f"Request: {text}", json_schema=SCHEMA, max_output_tokens=400).json
    notify.slack(f"📩 {t.get('email', 'unknown')} · {out['category']}\n>{text[:300]}\n*Suggested answer:*\n{out['answer']}", channel="#support")
    build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False) \
        .spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Support log!A:E", valueInputOption="RAW",
                                        body={"values": [[event.received_at[:16], t.get("email", ""), text, out["category"], out["answer"]]]}).execute()
    return {"category": out["category"]}

FAQ

Common questions

Where do requests come from?
Any form, inbox forwarder or help desk that can send to a web link.
Is the answer sent to the customer?
It is posted in Slack for your team to review and send, so a person checks every reply.
Can I set the categories?
Yes. Give your AI assistant your list, such as billing, shipping, account and bug.
What permissions does it need?
Pinecone read; sheet edit. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Answer support requests from your knowledge base and log every ticket” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.