Trigger Node

A Trigger Node is the starting point for any automated workflow. Once a specific event happens, the trigger automatically run your StackAI workflow.

In this guide, we’ll cover:

  1. Managing connections: How to link your external accounts and apps.

  2. Setup & Data Configuration: A step-by-step on building and using trigger data.

1. Core Trigger Types

Triggers generally fall into two categories based on why they start.

Event-Based (Real-Time)

These triggers run the moment an action occurs in another app or within StackAI itself. Some examples:

  • Communication: A new email arrives in Gmail or Outlook.

  • Data Entry: Someone submits a form in Typeform.

  • System Events: A payment is processed in Stripe, or a ticket is created in Zendesk.

  • Workflow Chaining: You can set a trigger to fire as soon as a different StackAI workflow finishes.

Time-Based (Scheduled)

These fire based on a clock rather than an external action. They can be either:

  • One-time: Run at a specific date and time.

  • Recurring: Run every hour, daily, or weekly (e.g., generating a Monday morning report).

2. Create a connection

To use triggers from apps like Gmail or GitHub, StackAI needs permission to "see" those events.

  • Setting up a connection: The first time you use an external trigger, you'll be asked to log in to that service.

  • Permissions: This simply allows StackAI to monitor for the specific events (like new emails) that you've selected.

  • Management: You can manage or remove these permissions anytime under Organization → Connections.

See all available connection providers here.

3. Setup and Configuration

  1. Add the Node: Place a Trigger Node on your canvas and choose the specific trigger you'd like to use.

  2. Connect: Link the trigger in the corresponding nodes.

Configuring and Filtering

Some triggers, like "On Email Received" allow you to activate the trigger only if certain conditions are met. For example, if the email comes from a specific sender, has a specific label, or includes attachments.

For other triggers, you will need to select a specific table, sheet, or db from the connection.

Find these settings under "Configurations"

How to Access and Use Outputs

When a trigger occurs, it does more than just start a workflow—it captures specific details about the event and can pass them along as variables to other nodes.

  1. Locate the Variables: The list of available output fields is available in the "Outputs" section of each trigger.

  2. Use in Downstream Nodes: You can reference these variables (like the sender's name or the body of the email) in your AI prompts, logic filters, or other action nodes. This allows the workflow to "know" the context of what triggered it.

4. Testing

To test your triggers before publishing a workflow, you can click the "Run" button and see the options available.

You will be able to input test data or, for some triggers, use existing data (for example, from your inbox).

You can also click on "live listen" and wait for the trigger event to kick off your workflow. Once your project is ready, make sure to publish to "turn on" the trigger.

5. Best Practices

To keep your automations running smoothly, keep these points in mind:

  • Publishing is required:

    • Triggers are only active once the workflow is Published. They will not respond to live events while the workflow is only in "Draft" mode.

  • Connection health:

    • Verify that your connection has the necessary permissions (if applicable).

    • Confirm that webhooks are properly configured.

    • Monitor workflow execution logs for any connection or processing errors.

    • Ensure your account has webhook capabilities.

  • Use the Analytics Tab:

    • If a workflow didn't run as expected, the Analytics tab is the best place to see if the trigger fired and where the data went.

  • Test with sample data:

    • Always use the "Test Values" before relying on live form submissions.

6. Common Workflows & Supported Apps

StackAI offers native trigger nodes for direct integrations (like Gmail or Stripe) that start your workflow automatically.

If an app isn’t supported natively, you can still trigger your workflow using inbound Webhooks via the StackAI API, allowing any app that sends HTTP requests to kick off your flow.

Key Considerations:

  • Your external app must support outgoing HTTP requests.

  • You may need to manually parse or transform data when using webhooks instead of native nodes.

Category
Providers
Common Use Cases

Email & Shared Inboxes

Gmail, Outlook, Missive

Auto-reply to emails.

Extract structured information.

Create tasks or tickets from emails.

Filter and categorize messages.

Process attachments.

Chat & Collaboration

Slack, Microsoft Teams, Realtime Chat

Route conversations.

Escalate issues.

Monitor channels and send alerts.

Support & Customer Operations

Zendesk

Create and update tickets.

Route customer requests.

Collect and categorize feedback.

Follow-ups or escalations.

Forms & Hiring

Typeform, Workable

Process leads and applications.

Route job candidates.

Handle event signups.

Analyze responses.

Databases & Spreadsheets

Airtable, Google Sheets

Monitor row changes.

Process structured records.

Files & Document Management

Google Drive, SharePoint

React to file uploads.

Process documents.

Archive or sync files.

Generate reports from updated files.

Payments & Transactions

Stripe

Handle orders and subscriptions.

React to failed payments.

Update CRM on subscription changes.

Developer & System Events

GitHub, AWS SQS

Run checks on new pull requests.

Process queued events.

Integrate system-level workflows.

Internal Workflows

StackAI

Trigger workflows on workflow completion.

Chain multi-step automations.

Run on a schedule

StackAI

Weekly reports

Weekly competitor analysis / web scraping Read google spreadsheet every month to revise changes

Last updated

Was this helpful?