Skip to content

The moment it happens

Draft answers to new support tickets and share them in Slack

When a support ticket arrives, a draft answer based on your knowledge base is posted in Slack for the team to review.

Runs
The moment it happens
Apps
Pinecone, Slack
AI
Yes, uses the built-in AI allowance
Access
Pinecone read; Slack chat:write

Send this to your assistant

Create a ClickRuntime automation: when a support ticket is sent to this link, find relevant answers in my Pinecone knowledge base, draft a reply and post the ticket and draft to #support.

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

Support teams answer the same questions every day from the same knowledge base, yet each agent searches it from scratch. New team members take longest, and customers wait while they look.

Support teams at software companies and online shops use it so each new ticket arrives in Slack with a suggested answer and the articles it came from.

What you get out of it

  • A head start on every ticket

    Agents begin from a draft rather than a blank reply.

  • New agents answer like old hands

    Drafts draw on the knowledge base, so consistency does not depend on experience.

  • Visible to the whole team

    Posting in Slack lets anyone pick up a ticket or improve the draft.

  • Sources shown

    Each draft lists the articles it used, so agents can check them quickly.

How it works

What happens, step by step

  1. When a ticket is created, your help desk sends it to your automation's link.

  2. Your Pinecone knowledge base is searched for articles that match the ticket.

  3. AI drafts a reply using those articles, or notes that none matched.

  4. The ticket, the draft and the article titles are posted to your Slack support channel.

Before it runs live

  • Connect Pinecone
  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Draft answers to new support tickets and share them in Slackjust nowSucceeded
Slack · #support🎫 #4821 Refund for duplicate charge (dana@acme.example) · Draft: Sorry about that, Dana. Duplicate charges are refunded automatically within 3 days...

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 Google Sheets
  • Combine it with other Pinecone and Slack 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.
draft_support_replies_from_pinecone_and_alert_slack.pyexample
from clickruntime import on_event, credentials, http, notify, ai

HOST, NS = "https://kb-abc123.svc.aped-1234.pinecone.io", "help-center"

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 = f"{t.get('subject', '')}\n{t.get('message', '')}".strip()[:2000]
    if not text:
        return {"skipped": "empty ticket"}
    hits = [h for h in search(text, 4)]
    kb = "\n\n".join(f"[{h.get('title', 'article')}] {h['chunk_text']}" for h in hits)
    draft = ai.generate(f"Draft a friendly support reply using only these articles. If none apply, say 'No matching article.'"
                        f"\n\n{kb}\n\nTicket:\n{text}", max_output_tokens=400).text
    notify.slack(f"🎫 *#{t.get('id', '?')}* {t.get('subject', '')} ({t.get('email', 'unknown')})\n>{t.get('message', '')[:300]}\n"
                 f"*Draft:*\n{draft}\n_Sources: {', '.join(sorted({h.get('title', 'article') for h in hits}))}_", channel="#support")
    return {"ticket": t.get("id")}

FAQ

Common questions

Which help desk tools work?
Any tool that can send a webhook when a ticket is created. The ticket needs at least a subject or message.
Is the draft sent to the customer?
No. It is posted in Slack. An agent copies, edits and sends it from your help desk.
What if the knowledge base has nothing relevant?
The post says no matching article was found, which is also a sign that an article is missing.
What permissions does it need?
Pinecone read; Slack chat:write. 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 “Draft answers to new support tickets and share them in Slack” from your assistant

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