
When to Use AI Triggers
AI-created triggers (also called custom MCP triggers) are the right choice when:| Scenario | Why AI trigger? |
|---|---|
| Monitor multiple services at once | Pre-built triggers only watch one app. AI triggers can poll Gmail and check Salesforce in the same trigger. |
| Apply custom filtering logic | ”Only alert me if the email sender has an open deal in HubSpot” requires logic no pre-built trigger offers. |
| Watch a service that has no pre-built trigger | Any app connected via MCP can be monitored, even if Gumloop doesn’t have a dedicated trigger node for it. |
| Detect computed conditions | ”Pipeline total dropped 20% since last check” or “Slack message with no reply after 30 minutes” need stateful comparison logic. |
| Combine data from different sources to decide when to fire | ”New Jira ticket where the reporter has open GitHub PRs” cross-references two systems. |
How It Works
When you select Create With AI from the + Task menu (or simply describe what you want in the agent chat), the agent follows a structured process:Connect required services
Discover available tools
Build the trigger code
Test in a sandbox
Capture baseline state
Creating a Trigger
There are two ways to create an AI trigger:What You Need
Before the agent can build your trigger, make sure:- The required apps are connected to the agent. Go to your agent’s Tools section and add the integrations the trigger needs. The agent will prompt you if anything is missing.
- You’ve authenticated with each service. Visit your Apps page to connect credentials.
- The agent has trigger creation enabled. This is on by default for the general personal assistant. For custom agents, ensure the Triggers toggle is enabled under Tools.
Examples
Here are real-world examples to illustrate the range of triggers you can build. Just describe any of these to your agent and it will build the trigger for you.Single-Service Triggers
Inventory threshold alert
Inventory threshold alert
Deal stage change detection
Deal stage change detection
Unanswered support messages
Unanswered support messages
Stale issue detection
Stale issue detection
Dollar amount mentions
Dollar amount mentions
Pipeline drop monitoring
Pipeline drop monitoring
Multi-Service Triggers
Email + CRM cross-reference
Email + CRM cross-reference
Cross-CRM lead dedup
Cross-CRM lead dedup
PR + ticket status mismatch
PR + ticket status mismatch
Email + deal matching
Email + deal matching
Three-way ticket enrichment
Three-way ticket enrichment
External MCP Server Triggers
AI triggers work with any MCP-compatible server, not just Gumloop’s built-in integrations. If you’ve connected an external MCP server (like Notion’s official MCP or Stripe’s MCP), you can build triggers against it.External Notion monitoring
External Notion monitoring
Stripe + Gmail cross-check
Stripe + Gmail cross-check
Poll Frequency and Scheduling
Every AI trigger runs on a polling schedule. The agent chooses a frequency based on your intent, but you can also specify it explicitly.| Frequency | Use case | Credit impact |
|---|---|---|
| Every 5 minutes (300s) | Time-sensitive monitoring (“notify me immediately”) | Highest — 288 checks/day |
| Every 15 minutes (900s) | Standard monitoring | 96 checks/day |
| Every hour (3600s) | Periodic checks | 24 checks/day |
| Every day (86400s) | Daily reports or digests | 1 check/day |
| Every week (604800s) | Weekly summaries | ~0.14 checks/day |
How Triggers Detect Changes (State Management)
AI triggers use a state checkpoint system to track what they’ve already seen, ensuring they only fire on genuinely new data.How it works
- First run (baseline): The trigger polls the API, records the current state (e.g., the latest email ID, the current pipeline total), and does not fire. This establishes the baseline.
- Subsequent runs: Each poll compares the new data against the stored state. If something new is detected, the trigger fires with only the new items.
- State updates: After each successful poll, the trigger updates its stored state so the next poll has an accurate comparison point.
State window
State is stored as a sliding window of up to 5,000 checkpoint entries. Older entries are automatically trimmed. This is designed for deduplication — storing only the minimal data needed to identify what’s new (like IDs and timestamps), not full API responses.Credit Costs (Polling Only)
AI triggers consume a small number of credits each time they poll — this is the cost of checking whether your condition is met, not the cost of the agent acting on it. Polling cost formula:| Trigger complexity | Execution time | Poll frequency | Credits/check | Credits/day |
|---|---|---|---|---|
| Simple (1 API call) | ~3s | Every 5 min | 1 | ~288 |
| Medium (2-3 API calls) | ~8s | Every 15 min | 1 | ~96 |
| Complex (multi-service) | ~15s | Every hour | 1 | ~24 |
| Heavy (many API calls) | ~60s | Every hour | 2 | ~48 |
Limits and Safety
Trigger limits
- Maximum 10 active triggers per agent per user. This includes all trigger types: AI-created, pre-built integration triggers, and scheduled tasks. If you hit the limit, deactivate or delete unused triggers first.
- Maximum trigger code size: 5,000 lines. If a trigger is this large, it probably needs to be simplified.
Circuit breaker
If a trigger fires more than 20 times within 10 minutes, it is automatically deactivated. This prevents runaway triggers from draining credits or overwhelming your agent. To re-enable: fix the underlying issue (usually a trigger that fires on every poll instead of only on new data), then re-enable from the Tasks section.Deduplication
Each trigger fire is deduplicated based on the data payload. If the exact same data would fire the trigger twice (e.g., due to a race condition), the duplicate is silently dropped.Credit limit protection
If your account runs out of credits, polling is paused automatically. The trigger resumes when credits are available again.Read-only enforcement
AI trigger code can only read data from your connected services. It cannot create, update, delete, or send anything. All actions happen through the agent’s prompt after the trigger fires.Managing AI Triggers
From the Tasks section
All active triggers (AI-created, pre-built, and scheduled) appear in the Tasks section of your agent’s configuration page. Click any trigger to see its details, or use the three-dot menu to:- Edit the trigger name, prompt, or poll frequency
- Test Now to run the trigger’s check immediately
- Deactivate the trigger (pauses polling without deleting)
- Delete the trigger entirely

From the chat
You can also ask your agent to manage triggers conversationally:| What you say | What happens |
|---|---|
| ”Show me my active triggers” | Agent lists all triggers with their status |
| ”Change the email trigger to check every hour instead” | Agent updates the poll frequency |
| ”Pause the Salesforce pipeline monitor” | Agent deactivates the trigger |
| ”Delete the Slack support trigger” | Agent removes the trigger |
| ”Test the Gmail trigger now” | Agent runs the trigger’s check immediately and shows the result |
Testing a trigger
Use Test Now (from the UI or by asking the agent) to run the trigger’s check immediately without waiting for the next poll. This is useful for:- Verifying a newly created trigger works correctly
- Debugging triggers that aren’t firing as expected
- Checking what data the trigger would return right now
- Fired + data: New items were detected (shows the items)
- Empty: No new data since the last poll
- Error: Something went wrong (shows the error message)
Prompt Templates
When an AI trigger fires, the trigger data is injected into a prompt template you configure. The agent receives this prompt and acts on it.
Inserting trigger fields
The prompt editor shows all available output fields as chips below the text area. Click a chip (or type@ and select a field) to insert it into your prompt. When the trigger fires, each field chip is replaced with the actual value from the trigger data.
For example, if your trigger outputs File Name, File Url, Created Time, and File Id, your prompt might look like:
A new Google Sheet has been created in your account! Name:File NameLink:File UrlCreated:Created TimeFile ID:File IdLet me know if you’d like to do anything with this new sheet.
Raw data mode
Toggle Pass raw JSON event data instead of prompt at the bottom of the editor to send the entire trigger payload as JSON instead of using the prompt template. This is useful when you want the agent to dynamically decide what’s important rather than mapping specific fields.Supported Server Types
AI triggers work with three types of MCP servers:Built-in Integrations
External MCP Servers
mcp.notion.com, Stripe’s MCP at mcp.stripe.com). Connect via the Custom MCP option in your agent’s Tools.Gumstack Servers
AI Triggers vs. Pre-Built Triggers vs. Scheduled Tasks
| Feature | AI Triggers (Create With AI) | Pre-Built Triggers | Scheduled Tasks |
|---|---|---|---|
| Setup | Describe in natural language | Configure via UI form | Configure via UI form |
| Multi-service | Yes — combine any MCP servers | Single service only | N/A |
| Custom logic | Yes — filtering, thresholds, cross-referencing | Limited to built-in parameters | N/A (prompt-based) |
| Latency | Polling (minimum 5 min) | Real-time or polling (~60s) | Cron or one-time |
| Any MCP server | Yes | Only supported integrations | N/A |
| Credit cost | Per-poll sandbox execution | Per-trigger execution | Per-run execution |
| Best for | Complex, multi-service, conditional monitoring | Simple single-service events | Recurring or delayed tasks |
Troubleshooting
Trigger was created but never fires
Trigger was created but never fires
- The baseline captured the current state, and nothing has changed since. Try creating new data in the monitored service, then use Test Now to verify.
- The poll frequency is longer than expected (check if it was set to hourly/daily instead of every 5 minutes).
- The trigger condition is too specific and no data matches.
Trigger fires on every poll
Trigger fires on every poll
Trigger creation fails with credential errors
Trigger creation fails with credential errors
- Go to your Apps page and verify the service is connected
- Go to your agent’s Tools section and verify the integration is added
- Try disconnecting and reconnecting the credential
Trigger was auto-deactivated
Trigger was auto-deactivated
- Circuit breaker: The trigger fired more than 20 times in 10 minutes. Fix the trigger logic and re-enable.
- Credit limit exceeded: Your account ran out of credits. Add more credits and re-enable.
Trigger shows 'Error' on Test Now
Trigger shows 'Error' on Test Now
- Auth errors: Credentials expired or permissions changed. Reconnect the integration.
- API errors: The external service returned an error. Check if the service is operational.
- Code errors: The trigger logic has a bug. Ask your agent to fix it and recreate the trigger.
Can I edit the trigger code directly?
Can I edit the trigger code directly?
FAQ
Do I need to know how to code?
Do I need to know how to code?
Can I use AI triggers on custom agents (not just the general agent)?
Can I use AI triggers on custom agents (not just the general agent)?
What happens when the trigger fires?
What happens when the trigger fires?
Can one trigger watch multiple services?
Can one trigger watch multiple services?
How accurate is the change detection?
How accurate is the change detection?
Can the trigger modify data in my apps?
Can the trigger modify data in my apps?
What's the maximum number of AI triggers I can have?
What's the maximum number of AI triggers I can have?
Can my agent create AI triggers during a conversation?
Can my agent create AI triggers during a conversation?
How do I stop a trigger?
How do I stop a trigger?
