Skip to content

The moment it happens

Post new orders and leads to a Mattermost channel

Events from your shop, forms or CRM appear as tidy posts in the channel your team watches.

Runs
The moment it happens
Apps
Mattermost
AI
Not needed
Access
create_post on the channel

Send this to your assistant

Create a ClickRuntime automation: give me a link WooCommerce can post new orders to; post the customer, items and total to our Mattermost 'sales' channel.

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

Teams that live in Mattermost still depend on a dozen other tools for the events that matter: a new order in the shop, a lead from a landing page, a reply to an outreach email, a record created in a database. Each tool has its own notification email, so the person responsible gets pings scattered across three inboxes, and the rest of the team never learns about the lead that was won on Tuesday.

Any app able to make a web call can post to ClickRuntime. When the payload arrives, ClickRuntime formats the fields you picked, such as customer name, amount or status, and creates a post in the Mattermost channel you chose. It reacts as soon as a payload comes in.

It is a simple way to give a team a shared, live feed of what is happening across its tools.

What you get out of it

  • The team sees events as they happen

    A new order or signup appears in the channel within moments, where people are already working. They react in the thread instead of asking later whether anyone saw it. That keeps decisions close to the data that prompted them.

  • Fewer notification emails

    Instead of ten different senders filling inboxes, events from different tools arrive in the same readable format. Important ones are easier to notice and less likely to be filtered out.

  • Shared awareness builds momentum

    Seeing a lead come in and a colleague answer it in the thread shows the team how work flows. New hires learn how the business operates simply by reading the channel.

  • You choose which fields appear

    A post can show the customer name and order total while leaving out private details such as full addresses. That keeps channels useful and appropriate for everyone who can read them.

  • Connects tools that have no Mattermost option

    If a tool has no direct integration, a web request from it is enough. You are not stuck waiting for a vendor to build a connector that may never arrive.

  • One format for every source

    Orders, leads and replies all look the same in the channel, so people learn to scan it quickly. A consistent layout beats ten differently styled notification emails, and it makes the one odd event easier to spot.

How it works

What happens, step by step

  1. When your shop, form or CRM sends a new event to your ClickRuntime link, such as a new order, the automation runs straight away.

  2. It picks out the details that matter: the order number, customer name, items and quantities, and the total with currency.

  3. It posts them as one tidy message in your chosen Mattermost channel, such as sales.

Before it runs live

  • Connect Mattermost
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Post new orders and leads to a Mattermost channeljust nowSucceeded
Mattermost · salesNew order #1187 from Dana Lee 2x Ceramic mug, 1x Tea sampler Total: 64.00 USD

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Mattermost 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.
post_app_events_into_a_mattermost_channel.pyexample
from clickruntime import on_event, credentials, http

BASE = "https://chat.acme.com/api/v4"
SALES_CHANNEL_ID = "8x4k1q2p7fbg3m5n6r9s0t1u2v"

@on_event
def handle(event):
    order = event.json
    customer = order.get("billing", {})
    items = ", ".join(f"{i['quantity']}x {i['name']}" for i in order.get("line_items", []))
    text = (f"New order #{order['number']} from {customer.get('first_name', '')} {customer.get('last_name', '')}\n"
            f"{items}\nTotal: {order['total']} {order['currency']}")
    resp = http.post(f"{BASE}/posts", json={"channel_id": SALES_CHANNEL_ID, "message": text},
                     headers={"Authorization": f"Bearer {credentials.secret('MATTERMOST_TOKEN')}"})
    resp.raise_for_status()
    return {"post_id": resp.json()["id"]}

FAQ

Common questions

What kind of events can I send?
Anything your tool can describe in a web request: orders, form submissions, error reports, replies, database changes. The payload is usually JSON, and ClickRuntime picks the fields you want to show in the post. Plain text fields work well.
Can different events go to different channels?
Yes. The channel can be chosen based on the content of the payload, for example sending sales events to one channel and support events to another. Ask your AI assistant to add the rule and approve the change.
What happens if the sending app retries a request?
If the same event is delivered twice, two posts could appear unless the payload has a unique identifier. If your tool provides one, the setup can skip repeats so the channel does not show duplicates.
What permissions does it need?
create_post on the channel. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's 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 “Post new orders and leads to a Mattermost channel” from your assistant

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