Skip to main content

Creating alerts with AI

Instead of building the rules yourself, describe the alert in your own words and Harlyy AI sets it up. In the dashboard, open Alerts and click Describe an alert. This opens the Ask AI panel with suggestions to start from. You can also ask for an alert in any Ask AI chat.

Tell me and the Gulberg manager on WhatsApp whenever a Google review
of Gulberg mentions burnt pizza or complains about hygiene.

Harlyy AI looks up everything you mention by name (the Gulberg location, its Google listing, the manager, the hygiene review topics) and builds a normal alert, with a scope, conditions, a trigger and recipients. It then shows you:

  • a summary of what the alert does, in plain language,
  • warnings about anything it assumed or couldn't express, such as a location it couldn't find,
  • the alert itself, in the alert builder (click Show the alert).

Nothing is created until you approve it. Click Create alert to approve it, or Don't create to turn it down. Once it's created, the answer links to the new alert. The alert that's created is an ordinary, deterministic alert: the AI only writes its rules once, and every entity is then checked against those rules exactly. That means it behaves the same every time, and you can always see why it fired.

Asking for changes​

Instead of approving, type what to change, for example:

Send it by email instead of WhatsApp.
Include Foodpanda reviews too.
Don't notify more than once an hour.

Harlyy AI changes the alert and shows it to you again to approve. You can also approve it as it is and change anything later on the alert's page.

The words you used are saved on the alert and shown on its page as "Drafted from", so your team can see what it was meant to do.

Writing good descriptions​

Say three things, and the alert will need little changing:

  1. What to watch: reviews, survey submissions, social posts, competitor reviews or competitor ratings, and where, such as a location, survey, platform or listing.
  2. What counts: ratings, words or topics, staff, engagement, rating changes.
  3. Who to tell and how: people or teams by name, "me", email, push or WhatsApp, and how often at most.
Instead ofTry
"Bad reviews""Google and Foodpanda reviews of 2 stars or below"
"Tell me about hygiene""Reviews complaining about hygiene or cleanliness, by email to the operations team"
"When things go wrong at lunch""When 5 or more Dine-in submissions in an hour rate anything 2 or below"
"Viral posts""TikTok or Instagram complaints about us with more than 1,000 views"

What the AI can look up​

Harlyy AI knows every field each alert type can use, with its operators and values. It looks up by name:

  • your locations, listings, surveys and their questions, and metrics,
  • the review topics,
  • staff and teams, and who you are, so "me" means you,
  • the competitor listings and brands you follow,
  • the items on your menus.

It only uses what it finds. If you mention something that doesn't exist, it says what does.

It's told to cover how customers really write. For "burnt pizza" it adds phrasings like "burned", "charred" and burn*, and for themes like hygiene it uses the analysed complaint topics as well as typical words.

It can't look up the social accounts and keywords your business watches. When you mention one, it uses text conditions where it can and adds a warning so you can pick the right one in the builder.

Checks before you approve​

Every alert Harlyy AI shows you has already passed the same validation as any alert, including contradiction checks. If it can't fix a problem, the problem is shown as a warning.

Always read the summary and the conditions before approving, especially:

  • recipients: the AI notifies you when you don't name anyone,
  • phrases: add any wording your customers use that it missed,
  • threshold numbers: check they match the volume at your locations.

Through the API​

Alerts are created with AI through an AI conversation that asks for the object-creation capability:

// POST /v2/businesses/{business}/ai-conversations/{conversation}/ai-messages
{
"prompt": "Tell me on WhatsApp when a Google review mentions burnt pizza",
"requestedCapabilities": ["object-creation"]
}

The agent's result then carries response.approvals. Each approval holds the alert it wants to create as payload, which is the body of POST /v2/businesses/{business}/alerts, along with a summary and warnings:

{
"id": "call_abc",
"object": "alert",
"action": "create",
"title": "Burnt pizza reviews",
"summary": "Notifies you on WhatsApp about Google reviews that mention burnt pizza.",
"status": "pending",
"payload": { "name": "Burnt pizza reviews", "type": "review", "...": "..." }
}

Decide it with your next message:

{
"prompt": "Create it",
"requestedCapabilities": ["object-creation"],
"decisions": [{ "approval": "call_abc", "approved": true }]
}

Once approved, the agent creates the alert and its result lists it in response.createdObjects. A message that doesn't decide a pending approval rejects it, and the agent treats the message as the change to make.