Integration Trigger
Start workflows automatically when events occur in your connected applications.
Overview
The Integration Trigger connects your workflows to real-time events from your connected applications. When something happens in Slack, your CRM, your inbox, or any other integrated service, your workflow springs into action automatically.
When to Use Integration Trigger
Perfect for:
- New Slack or Microsoft Teams messages in specific channels
- Emails received in Gmail or Outlook
- Calendar events created or starting soon
- New files or folders added in Google Drive
- CRM record changes (new leads, deals, contacts)
- Project management updates (new Jira issues, Planner tasks)
Not ideal for:
- Custom API integrations (use Webhook Trigger)
- Scheduled recurring tasks (use Scheduled Trigger)
- User-submitted forms (use Form Trigger)
Configuration
Step 1: Select Integration
Choose from your workspace's connected integrations. The following integrations support event-based triggers:
- Communication: Slack, Microsoft Teams, Gmail, Outlook Email
- Productivity: Notion, Jira, Confluence, Microsoft Planner
- Storage: Google Drive
- CRM: Salesforce, HubSpot
- Calendar: Google Calendar, Outlook Calendar, Calendly
- Developer: GitHub
- Other: Stripe, Ashby, Microsoft Power BI
Step 2: Choose Event Type
Each integration offers specific trigger events:
Slack
- New message in channel
- New message in conversations (DMs and group chats)
- New message matching a search
- New reaction in channel
Microsoft Teams
- New channel message
- New chat message
- New channel mention
- New meeting transcript
Gmail
- New email
- New email matching search
- Label changed on email
Outlook Email
- New email
- New email matching search
- New email in specific folder
- New email in shared inbox
- New email in shared mailbox folder
Google Calendar / Outlook Calendar
- New event
- New event matching search
- Event start (Google Calendar only)
Google Drive
- New file
- Updated file
- New folder
Salesforce
- New lead
- New contact
- New account
- New opportunity
HubSpot
- New deal
- New form submission
- New note
- Contact added to list
Jira
- New issue
- Updated issue
GitHub
- New pull request
- Pull request merged
- New issue
- New commit
- New release
- Changes in path
Stripe
- Payment succeeded
- Payment failed
- New subscription
- Subscription canceled
- New invoice
Step 3: Configure Event Filters
Narrow down which events trigger your workflow:
For Slack:
- Specific channels or conversations
- Messages matching a search query
- Specific reaction emoji
For Email (Gmail / Outlook):
- Search criteria (sender, subject, content)
- Specific labels (Gmail) or folders (Outlook)
For Calendar:
- Specific calendar
- Events matching a search
For Drive:
- Specific parent folder
- File type filters
Step 4: Configure Trigger Parameters
Some triggers require additional parameters to function correctly. These parameters vary depending on the specific trigger you've selected.
Common parameter types:
- Channel/folder selection: Specify which channel, folder, or container to monitor
- Filter criteria: Keywords, labels, or categories to filter events
- Polling intervals: How frequently to check for new events (for polling-based triggers)
The required parameters are displayed in the trigger configuration panel after you select an event type.
Step 5: Connect Account
Some integrations require an authenticated connection to access your data. When an integration requires a connection, you'll need to:
- Click "Connect Account"
- Authorize ajan to access the integration
- Select the specific account (if multiple)
- Grant necessary permissions
Example Use Cases
Slack β Ticket Creation
Integration Trigger (New message in #support channel)
β Agent: Extract issue details from message
β Action: Create JIRA ticket
β Action: Reply in Slack thread with ticket numberCRM β Lead Processing
Integration Trigger (New lead in Salesforce)
β HTTP Request: Enrich lead data from external API
β Agent: Score lead quality
β Condition: Check score
β High: Notify sales team
β Low: Add to nurture campaign
β Action: Update lead with score and statusGmail β Document Processing
Integration Trigger (New email with attachment)
β Agent: Extract and summarize document content
β Action: Save summary to Google Drive
β Action: Create task in project management tool
β Action: Reply to email confirming receiptCalendar β Meeting Prep
Integration Trigger (Event starting in 1 hour)
β HTTP Request: Fetch meeting context from CRM
β Agent: Generate meeting brief
β Action: Send Slack message to attendees
β Action: Create Google Doc with meeting notes templateDrive β Content Approval
Integration Trigger (New file in "Pending Approval" folder)
β Agent: Review content against guidelines
β Condition: Check approval recommendation
β Approved: Move to "Published" folder
β Needs Changes: Send feedback to creator
β Notification: Alert stakeholders of decisionAccessing Integration Data
Use the trigger variable to access event data:
Example: Gmail Event Data
Subject: {{trigger.output.subject}}
From: {{trigger.output.from}}
Body: {{trigger.output.body}}
Has Attachments: {{trigger.output.has_attachments}}
Labels: {{trigger.output.labels}}Testing Integration Triggers
Test Panel
- Click on the Integration Trigger node
- Click "Test" in the toolbar
- View recent events from the integration
- Select an event to test with
- Run the workflow with that event's data
Trigger Real Events
The best way to test:
- Manually create the event in the integration
- Send a Slack message
- Send yourself an email
- Create a calendar event
- Wait for the event to trigger (usually within seconds)
- Check the Runs tab for execution
- Review the workflow results
Common Integration Patterns
Bidirectional Sync
Integration Trigger (HubSpot deal updated)
β Code: Transform data
β HTTP Request: Update external system
β Condition: Check if update successful
β Success: Update note on the deal
β Failure: Notify adminBest Practices
Use integration filters to only trigger on relevant events. Processing every Slack message is expensive and slow.
Some integrations may send duplicate events. Add logic to detect and skip duplicates using unique IDs.
Integration permissions can expire. Set up alerts for authentication failures.
Don't just use test data - trigger real events in the integration and verify your workflow handles them correctly.
If an integration event happens frequently (e.g., many Slack messages), consider adding conditions to prevent overwhelming your workflow.
Store original event data early in the workflow in case you need to reference it later.
Next Steps
- Action Node β Perform actions in integrated apps
- Condition Node β Route based on integration data
- Agent Node β Process integration data with AI
- Webhook Trigger β Trigger workflows with custom webhooks