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:
Limits per plan
Frequently asked questions
What happens if my system sends the same event twice?
webhook-id, Idempotency-Key or the id field) and discards it.
