Skip to content

Every 15 minutes

Sort Wix enquiries and send only sales leads

New messages are labelled sales, support or spam, and only sales leads reach Slack.

Runs
Every 15 minutes
Apps
Wix
AI
Yes, uses the built-in AI allowance
Access
Wix Forms read

Send this to your assistant

Create a ClickRuntime automation: every 15 minutes, read new Wix form submissions, classify each as sales, support or spam, and post only the sales ones to #sales in Slack with a one-line summary.

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

A Wix site for a law practice, a wedding planner or a renovation firm gets a mix of enquiries through its contact form: serious requests with a budget and a date, vague questions, and a steady trickle of spam and sales pitches. The owner reads every one in order, so a customer ready to book next month sits behind three SEO offers. Time goes to sorting rather than answering, and the best lead is often answered last.

Every fifteen minutes the automation fetches new Wix form submissions and asks ClickRuntime's built-in AI to write a short summary of each and classify it, for example as new project, existing client, question or spam. Anything that is not spam is posted in Slack with the summary and the label, so the urgent ones are at the top of your attention.

It suits small firms where the person answering enquiries is also doing the work.

What you get out of it

  • The best lead gets answered first

    A label such as 'new project, budget stated, start in June' lets you reply to the valuable enquiry before the vague ones. Speed on the right message often decides who wins the job.

  • Spam never reaches your attention

    Obvious junk is dropped before it is posted, so the channel contains only real people. You stop wasting a minute per message on offers you would never accept. Matching the reader's attention to the message is the point, so nobody feels they must open everything.

  • Summaries save reading time

    A two-line summary tells you what someone wants without reading a long rambling message, which matters on a phone between appointments. Several people can share the inbox without anyone rereading the original text of each message.

  • Consistent labels across the team

    Everyone sees the same category, so a colleague covering for you knows at a glance which enquiries are existing clients needing support and which are new business. A colleague covering your holiday does not have to guess how you would have ranked each enquiry.

  • A record of what came in

    The Slack history shows each enquiry with its classification, which helps you see how many real leads the website produces each month and from which topics. That makes it easier to judge whether a marketing page change actually produced better enquiries.

How it works

What happens, step by step

  1. Every 15 minutes, ClickRuntime collects new form entries from your Wix site.

  2. AI reads each entry, decides whether it is a sales lead, a support question or spam, and sums it up in one line.

  3. Only sales leads are posted to your #sales Slack channel, with the sender's email and the one-line summary.

  4. It remembers where it left off, so each entry is checked once.

Before it runs live

  • Connect Wix

What you get

RunsEvery 15 minutes
Sort Wix enquiries and send only sales leadstoday, 9:00Succeeded
Slack · #salesSales lead: ops@northwind.example Wants a quote for monthly catering for a 40-person office.

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 Wix 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.
ai_triage_of_form_leads.pyexample
from datetime import datetime, timezone
from clickruntime import on_trigger, credentials, http, state, notify, ai, report_fetched

SITE_ID = "your-site-id"
SCHEMA = {"type": "object", "properties": {"category": {"enum": ["sales", "support", "spam"]},
                                           "summary": {"type": "string"}}, "required": ["category", "summary"]}

@on_trigger
def run(event):
    since = state.get("since") or datetime.now(timezone.utc).isoformat()
    subs = http.post("https://www.wixapis.com/form-submission-service/v4/submissions/query",
                     headers={"Authorization": credentials.secret("WIX_API_KEY"), "wix-site-id": SITE_ID},
                     json={"query": {"filter": {"namespace": "wix.form_app.form", "_createdDate": {"$gt": since}},
                                     "sort": [{"fieldName": "_createdDate", "order": "ASC"}]}}).json().get("submissions", [])
    report_fetched(len(subs))
    if not subs:
        return {"new": 0}
    posted = 0
    for s in subs:
        fields = s["submissions"]
        result = ai.generate(f"Classify this website form submission and summarise it in one line:\n{fields}",
                             json_schema=SCHEMA, max_output_tokens=150).json
        if result["category"] == "sales":
            notify.slack(f"Sales lead: {fields.get('email', 'no email')}\n{result['summary']}", channel="#sales")
            posted += 1
    state.set("since", subs[-1]["_createdDate"])
    return {"new": len(subs), "sales": posted}

FAQ

Common questions

How accurate is the classification?
It works well for clear cases such as obvious spam or a detailed project request, and less well for ambiguous messages. Borderline ones are still posted rather than dropped, so a human decides, and you can adjust the categories after watching results.
Does it need an OpenAI or Anthropic key?
No. The summarizing and classifying use ClickRuntime's built-in AI, so there is no separate AI account to set up or pay for. You only connect your Wix site and Slack. Billing for it is part of your ClickRuntime plan rather than a separate AI account.
Can I define my own categories?
Yes. The labels are part of the instructions, so you can ask for categories that suit your business, such as quote request, press, supplier or job applicant, and for specific words that should always count as urgent.
What permissions does it need?
Wix Forms read. 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 each time it checks. Checks that find nothing new and stop right away aren't counted.
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 “Sort Wix enquiries and send only sales leads” from your assistant

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