Skip to content

The moment it happens

Email yourself when someone mentions your Webex bot

Each time someone @mentions the bot, you get an email with the message and the space it came from.

Runs
The moment it happens
Apps
Webex
AI
Not needed
Access
bot token

Send this to your assistant

Create a ClickRuntime automation: when someone mentions our Webex bot, email me at alex@mycompany.com with the message, who sent it and the space name.

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 Webex bot, such as one that answers questions in a project space, only reacts when somebody mentions it. The person who owns the bot is not watching those spaces all day, so a teammate who wrote a question and tagged the bot waits with no reply. Mentions in busy rooms scroll past quickly, and a request that needed a human is simply lost without anyone noticing.

When someone mentions the bot, Webex sends a webhook that contains the message ID. The automation then fetches the full message text by that ID, because the webhook carries only metadata, and emails it to you with the sender's name and the space it came from, so you can see the whole context at once.

It helps bot owners who need to review what people ask, and anyone who wants human backup behind an automated assistant.

What you get out of it

  • Questions that need a human get seen

    A mention in a space you are not watching lands in your inbox, so a real question gets a real answer instead of dying in a room where the bot cannot help and nobody else knows it was asked.

  • Learn what people ask the bot

    The emails show actual wording from colleagues. If the same request keeps coming up, you know which answer or feature the bot should have next, and you can prioritize improvements based on real demand.

  • Works across many spaces

    The bot can be added to dozens of rooms. One email stream replaces the chore of opening each space to look for unanswered mentions, which nobody ever does consistently once the number of rooms grows.

  • Full text, not just a notification

    Because the message is fetched by ID, the email contains what was written, not merely a note that something happened. You can decide whether to reply without opening Webex or searching for the right room.

  • Catches misuse early

    If someone pastes sensitive information or sends odd commands to the bot, you see it in your inbox and can step in, correct the permissions or remind the team what the bot is meant for.

How it works

What happens, step by step

  1. Each time someone @mentions your bot in Webex, Webex tells ClickRuntime straight away.

  2. The automation fetches the full message, who sent it and which space it came from.

  3. You get an email with the sender, the space and the message text.

Before it runs live

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

What you get

RunsThe moment it happens
Email yourself when someone mentions your Webex botjust nowSucceeded
Email · Webex mention in OpsFrom: dana@northwind.example Space: Ops @AcmeBot can you post today's on-call?

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 Webex 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.
forward_bot_mentions_to_email.pyexample
from clickruntime import on_event, credentials, http, notify

API = "https://webexapis.com/v1"

@on_event
def handle(event):
    data = (event.json or {}).get("data", {})
    if not data.get("id"):
        return {"skipped": "no message id"}
    headers = {"Authorization": f"Bearer {credentials.secret('WEBEX_BOT_TOKEN')}"}
    msg = http.get(f"{API}/messages/{data['id']}", headers=headers).json()  # webhook payload has no text
    room = http.get(f"{API}/rooms/{data['roomId']}", headers=headers).json()
    notify.email_me(f"Webex mention in {room.get('title')}",
                    f"From: {msg.get('personEmail')}\nSpace: {room.get('title')}\n\n{msg.get('text')}")
    return {"emailed": True}

FAQ

Common questions

Why does the automation fetch the message separately?
Webex webhooks for new messages include the message ID and room but not the text itself. The automation uses that ID to retrieve the content, which also respects Webex's rules about who is allowed to read messages in a space.
Does it forward messages that do not mention the bot?
Bots in group spaces only receive messages where they are mentioned, so only those are forwarded. In a direct one-to-one chat with the bot, every message is delivered, and each of them would be emailed to you.
Do I need a bot in Webex first?
Yes. You create a bot on the Webex developer site, add it to the spaces you care about, and a webhook is registered for it. The automation then receives the mentions and sends the email, using the bot's access token stored as a secret.
What permissions does it need?
bot token. 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 “Email yourself when someone mentions your Webex bot” from your assistant

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