Before you start
A trigger watches an account you’ve connected. The trigger list shows every event, including those for apps you haven’t connected yet — they’re marked Connect to use. Picking one opens the connection dialog, and you can carry on once you’ve connected. You can also connect ahead of time from Settings → Integrations, or just ask the agent — it’ll prompt you when a connection is missing. See Connecting integrations.If the connection a trigger uses is removed or its access expires, the trigger pauses until you reconnect. Then it resumes on its own. See Triggers that pause themselves.
Creating an app event trigger
1
Start a new trigger
In the sidebar, click the arrow next to New session (More create options) and choose New Trigger. Give it a Name.
2
Choose On Event
Under Trigger, choose On Event.
3
Find the event
Open the event list and type in Search triggers… — “pull request”, “new row”, or “Slack”. Use All integrations to narrow the list to one app.
4
Pick the account
If you’ve connected more than one account for that app, choose which one the trigger should watch.
5
Fill in the settings
Most events have a setting or two to narrow them down — which Slack channel, which Notion database, which spreadsheet, which Gmail search to match.
6
Choose the script
Under Action, choose Run Script, pick the script, and fill in any inputs it needs.
7
Create the trigger
Click Create Trigger. It starts watching straight away.
Available events
This list isn’t a limit. If your app isn’t here, or the event you want isn’t in the list, you can still trigger on it. Connect the service as a custom integration — any REST API works — and ask the agent to build a custom trigger that watches it. The result behaves exactly like a built-in event: it lives in your script, has its own settings and run history, and travels with the script when you share it.
We add to this regularly, so the list in the app is always the current one — check there first, and build a custom trigger for whatever isn’t in it yet.
Messages on your own accounts
The LinkedIn, WhatsApp, Telegram, and Instagram events watch your own account, linked as an integration. A script can then react to a new message, an edited message, or a reaction — and, on LinkedIn, a new connection. Message events can be limited to messages that contain certain text, and reaction events to one reaction. Linking one of these accounts costs credits each month. See Messaging accounts.LinkedIn reports a new connection late, so new connection can fire a few hours after the invitation was accepted.
How quickly a trigger fires
It depends on the app:- Instantly — apps that notify Script.it directly the moment something happens. Slack, Stripe events, GitHub pull request events and pushes, Linear, Jira, Trello, Asana, Zoom, Shopify orders, and the LinkedIn, WhatsApp, Telegram, and Instagram message events work this way.
- On a regular check — for everything else, Script.it checks the app every 1–5 minutes, depending on the event, and runs your script when it finds something new. A trigger that has been quiet for a while checks less often, up to 15 minutes apart, and speeds up again after it fires.
Messages to your agent
The channels you use to talk to your own agent run on triggers too. Connecting a channel adds its trigger for you, so you rarely add one by hand:
The same events are in the On Event list — Agent Email, Slack DM, Slack Mention, Teams DM, Teams Mention, Agent Telegram, and Agent WhatsApp — along with Telegram Bot DM for a Telegram bot of your own.
Mail to your agent’s own email address is accepted only from your own verified email address. A
+tag address, like you+support@…, belongs to an External Agent, which anyone can write to. See Reach your agent and External Agents.