Skip to main content

Triggers

Triggers enable agents to execute in response to external events via webhooks. When something happens in another system -- a form submission, a payment, a code push -- it can automatically invoke your agent.

Why Triggers?

Connect your agents to the outside world:

  • Form submissions -- Process new leads instantly
  • Payment events -- Handle Stripe webhooks
  • CI/CD -- Run agents on deployment events
  • Custom integrations -- Any system that can send HTTP requests

How Triggers Work

When an external system sends an HTTP request to your trigger's unique webhook URL, MeetLoyd validates the request, extracts and maps the input data, and executes the assigned agent or workflow with that data.

External System --> Trigger Webhook URL --> Validation & Mapping --> Agent Execution --> Response

Integration Event Registry

MeetLoyd maintains a registry of events from connected integrations. When you connect an integration, you gain access to its events.

IntegrationExample Events
HubSpotContact Created, Deal Stage Changed, Deal Won/Lost, Ticket Created, Form Submitted
SlackMessage Posted, Bot Mentioned, Reaction Added, Channel Created
GitHubCode Pushed, PR Opened/Merged/Closed, Issue Opened/Closed, Release Published
StripePayment Succeeded/Failed, Invoice Paid, Subscription Created/Canceled

Event Categories

Events are organized by category for easier discovery: CRM, Communication, Development, Payment, Support, Calendar, HR, and Task.

Trigger Types

TypeDescription
WebhookExternal system sends event to MeetLoyd
PollingMeetLoyd periodically checks for changes
WebSocketReal-time bidirectional connection
EmailTriggers from email events
ManualUser-initiated triggers

Trigger Status

StatusDescription
ActiveAccepting and processing requests
PausedAccepting but not processing (queued)
DisabledRejecting all requests

Best Practices

Extract Only Needed Data

Use input mapping to pull specific fields rather than passing the entire webhook payload. This avoids sensitive data exposure and keeps agent input clean.

Add Source Identification

Include static fields like source: "stripe" and environment: "production" so your agent knows where the data came from.

Monitor Execution History

Check failed executions regularly. A spike in failures often indicates a webhook format change or authentication issue.

Use Descriptive Names

"Stripe Payment Success Handler" tells you everything. "Webhook 1" tells you nothing.


Next: Learn about Workflows for orchestrating multi-step processes.