News

Your agents can now run without you: Triggers are live in the aixplain SDK

Date Published

Until this week, every run started with a call you made. You built the agent, deployed it, then wrote agent.run(...) each time you wanted an answer. The starting was still on you, or on  cron job you stood up outside the SDK to do it for you.

Triggers close that gap. They live in the SDK, next to the agent.

Schedules and events

Schedules cover a single run at a set time, every few hours, daily, weekly on days you choose, and monthly on dates you choose. Each trigger runs in its own timezone.

Event triggers respond to activity in a connected tool. A new email in a connected Gmail account can start the agent that triages your inbox.

A weekly report, scheduled

Somebody on every team spends Monday morning pulling the same numbers into the same deck. Set the trigger for Sunday evening.

Monday starts with a draft to correct instead of a blank page to fill.

For the builders

Triggers are created, listed, paused, and deleted from the SDK. The schedule lives in code next to the agent it belongs to, so an agent that builds other agents can schedule them as well.

Point a trigger at the report you rewrite every Monday, or the inbox you clear every morning. Then close the laptop. It runs anyway.

Comment "triggers" on this issue and we will drop 10 free credits into your workspace to trial one.

Docs, including how triggers consume credits and what to watch on a recurring schedule: https://docs.aixplain.com/assets/agents/#triggers