Skip to content

How a ticket is automated

Automating a ticket has two halves: first the automations decide what should change, then the changes and the note are written, according to the board’s mode.

If the board has rules, its New ticket rules are tried first. A rule that moves the ticket to another board or closes it, in Live, means the board’s automations do not run on it; a moved ticket is automated on the board it lands on only by that board’s moved-in automations. A priority or status a rule sets is kept, as one someone chose.

Ticket Automation works from the ticket as ConnectWise reported it when it was entered, or, for a ticket moved onto the board, as ConnectWise had it after the move: its summary, board, company, contact, priority, Type, SubType and Item, source, agreement, SLA and date entered. It reads the ticket’s description and notes once from ConnectWise. Each automation is given only what it needs (What each automation is given).

A value that is plainly a placeholder counts as unset, by every automation: one containing “change me”, “must change”, “must select”, “(inactive)” or “do not use”, one that is exactly “?”, or one starting “z” and a capital letter, such as “zOld”. A placeholder is never chosen.

The ticked automations run side by side, each judging the ticket on its own, with your global and board instructions for it. One that fails or runs out of time does not stop the others. Split Tickets is the exception: it decides first, so that when it splits, the others judge the original by the issue that stays on it.

Each automation’s decision is one of:

  • changed: it proposes a change;
  • unchanged: it looked, and nothing should change;
  • skipped: it does not apply, such as Correct Company on a ticket of an ordinary client;
  • failed: it could not decide.

Every proposed value already exists in your ConnectWise for that board: a priority from your list, a Type, SubType and Item set up for the board, an existing contact.

When nothing is proposed, nothing is written, in either mode.

In Live, in this order:

  1. any new tickets a split proposes are created, each with its description, screenshots and split note;
  2. every field change is made in one update of the ticket;
  3. any tasks are added;
  4. one internal note lists what was changed;
  5. after a split, a second note on the original lists where the work went.

In Preview: one internal note, of what would have been changed. No field, ticket or task.

Each write is made once, however often the ticket is retried after a failure.

A field someone changed first is left alone

Section titled “A field someone changed first is left alone”

Before changing a field in Live, Ticket Automation checks that it still holds the value the ticket arrived with. If a technician changed it in the seconds since, it is left as it is, and the note says the field “had been changed since the ticket arrived, so it was left as it was.” The other changes are still made.

When an alert storm or one busy sender floods a board, Ticket Automation stops spending AI and ConnectWise calls on the flood. It counts each new ticket on the board two ways:

  • By its summary, ignoring numbers, dates, times, ids, email addresses and punctuation, so “Disk C: 91% full on SRV-01 at 10:42” and “Disk C: 93% full on SRV-01 at 10:44” are alike.
  • By its sender: the contact’s email address on the ticket, or the contact when there is no address.

When 10 new tickets on one board are alike in either way within 10 minutes, the rest of them are paused:

  • Each later ticket like them is left alone: the board’s automations do not run on it and its New ticket rules do not act, in Preview and in Live. It gets one internal note, Nilear AI paused for a burst of tickets, saying that the burst arrived, since when the rest are left alone, and how many have been so far.
  • Tickets left alone do not count toward the board’s hourly limit, and use no AI.
  • The board’s other tickets are automated as usual, and so are the first nine of the burst.
  • A ticket left alone is still a ticket like any other afterwards: a client’s reply or a field change on it fires the board’s rules as usual.

A pause ends by itself 30 minutes after its last ticket. An administrator can end it sooner: the board’s row on the Boards page reads Paused for a burst, and the expanded board shows what matched, how many tickets were left alone, and Resume now. Tickets left alone are not automated afterwards; only new tickets are. A new burst pauses them again.

A failure that may pass, such as ConnectWise being briefly unavailable, is retried later, up to five attempts in all. A ticket deleted before it is processed is closed at once. If the company’s AI key fails during the run, the automations it affects are reported failed and the key is marked failing (Add your OpenAI key).

MTX’s AI column shows Automation failed for a ticket that could not be finished (Read the AI column).

Nothing is logged about the ticket’s content

Section titled “Nothing is logged about the ticket’s content”

Nilear records each ticket’s outcome for each automation, with the ticket, board and note numbers. Its logs never hold the ticket’s summary, description, notes, contact details or the AI’s answer. See Data and security.