Capabilities

Triggers

Make the agent work on its own: on a schedule, an event or new data.

A trigger makes the agent work on its own, without anyone writing to it first: a report every Monday, a reply to every new sale or the confirmation of every order that comes in. Each time it fires, the agent receives your instruction and runs it as a task, with its tools and its memory.

Trigger types

Scheduled

It fires on a schedule, in the time zone you choose:

  • Every so often: every 1, 5, 15 or 30 minutes, every hour or every 2, 3, 6, 12 or 24 hours, or a custom interval of up to 7 days.
  • Every day at a set time.
  • Specific days of the week at a set time.
  • Once a month, on the day and time you choose.

Event

Your system sends an event to the trigger's address every time something happens, for example pedido.creado. The agent receives the event's data along with your instruction. Events are authenticated with a signature or a secret: see the format in Trigger events.

New items

Qaalia checks one of your tools every so often and wakes up the agent only when items it hadn't seen appear. The first check only serves as a starting point: what already existed doesn't fire the trigger.

Create a trigger

Open Triggers

In Qaalia Chat → Triggers, choose the agent and click New trigger.

Choose when it fires

Select the type and set up its schedule, its event or the tool it should check.

Write the instruction

What the agent should do each time, as if you asked it in the chat: «Summarize yesterday's sales and send the report to the manager».

Choose its tools

The agent works with its tools: all of them, or only the ones you allow in Limit tools.

Conditions

Event and new-item triggers can have no-code conditions: the agent only wakes up if the data meets them. For example, «total is greater than 500». You can check whether a value is equal, not equal, greater, less, whether it contains some text, or whether it exists or not.

History and statuses

Each run stays in the trigger's history with its status and a link to what the agent did:

StatusWhat it means
Queued / WorkingThe agent is running the task.
CompletedThe agent finished the instruction.
FailedThe task couldn't finish. Open the run to see why.
SkippedThe data didn't meet the conditions.
LimitedThe trigger's maximum runs per day was reached.
DiscardedThe event had already been received (a retry from the sender).
CanceledThe run was canceled.
Use Test nowto watch the agent work without waiting for the schedule or the event. Tests don't count toward the trigger's daily maximum.

Limits per plan

PlanTriggers per agentMinimum interval
Starter2015 minutes
Pro1005 minutes
EnterpriseUnlimited1 minute

Frequently asked questions

What happens if my system sends the same event twice?
Qaalia recognizes it by its identifier (webhook-id, Idempotency-Key or the id field) and discards it.
Does the agent remember previous runs?
Each run is its own conversation. Use your tools to look up the state it needs.
Can I pause a trigger?
Yes: with the switch on its card. While it's turned off, it doesn't fire.