Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt

Use this file to discover all available pages before exploring further.

Triggers define how a workflow starts. Five types are available, and you can enable multiple triggers on the same workflow so the same process fires from different sources.
Triggers vs. notifications: Triggers start a workflow. Notifications (configured in the END block) send alerts when a workflow finishes. Both can use webhooks, but they serve opposite ends of the pipeline.

Configure a trigger

Triggers live in the START block on the left side of the canvas. Each trigger type appears as a row with a green dot when active and a chevron to open its configuration panel. The badge below the block counts active triggers (e.g., “3 events”).
START block with trigger rows

Start workflows from external events with webhooks

Any service that can send an HTTP POST (Stripe, GitHub, Jira, your own backend) can trigger a run. Open the Webhook trigger panel to see a unique URL. Copy it into your external service’s webhook configuration. Every POST to that URL starts a new run with the request payload as input. The URL follows this pattern:
https://webhook.xpander.ai?agent_id={workflow-id}&x-api-key={key}&agent_version=1
The panel also includes a Test Webhook button to fire a test request from the UI and a View Docs link for payload formatting details.

Invoke workflows programmatically with the API trigger

The API trigger provides a REST endpoint for starting runs from your own application code. The panel shows your Workflow ID (with a copy button), a Test API button that opens an in-browser tester, and a View Docs link.

The API tester

Clicking Test API opens a modal where you can construct and send requests without leaving the canvas. It provides the full endpoint URL, your API key, and a pre-generated cURL command. Three invocation modes are available:
  • Synchronous (wait for the result)
  • Asynchronous (fire and forget)
  • Stream (server-sent events)
A key/value editor at the bottom lets you build JSON payloads field by field. After sending a request, the Response History tab shows results so you can iterate without switching tools.
Workflow API tester

Let users trigger workflows through chat

The Chat trigger provides a hosted web interface at a URL like https://{name}.agents.xpander.ai. Share that URL with anyone who should be able to start the workflow. The interface supports multi-turn conversation, file attachments, and voice input.
Chat trigger vs. agent chat: Agents built in Agent Studio also have chat interfaces, but those are designed for open-ended conversation. A workflow’s chat trigger feeds messages into a structured pipeline with defined steps, branching logic, and deterministic actions. Use it when you want the structure of a workflow with the accessibility of a conversation.

Connect workflows to Slack

The Slack trigger lets a bot start your workflow from channels and direct messages. The panel shows a connection status and a Connect to Slack agent button. Once connected, messages sent to the bot (or mentions in a channel) trigger runs with the message content as input.

Run workflows on a schedule

Click + Add Schedule to configure a time-based trigger. The schedule modal has two parts. Instructions describe what the workflow should process on each run. Since there’s no incoming payload, this is where you provide context (e.g., “Pull all new support tickets from the last 24 hours”). The schedule controls when it runs. Two scheduling modes are available: Interval mode sets a repeating cadence. Specify a frequency (every 5 minutes, every 2 hours), then toggle which days of the week the schedule should run. The minimum interval is 5 minutes. Specific Time mode targets exact times of day rather than repeating intervals. A Cron preview below the controls shows the generated expression (e.g., */5 * * * *) so you can verify the schedule. Quick Presets offer common schedules, and Advanced Settings exposes additional tuning options.
Schedule trigger configuration

Choosing the right trigger

TriggerInput sourceStarts whenGood for
WebhookHTTP POST payloadExternal system sends a requestReacting to events in third-party services
APIJSON payload via RESTYour application calls the endpointProgrammatic invocation from your own code
ChatUser messageSomeone types in the chat UIHuman-initiated processes with conversational input
SlackSlack messageSomeone messages the botTeam-accessible workflows without leaving Slack
ScheduleInstructions (no payload)Cron timer firesRecurring jobs: reports, syncs, audits
All five trigger types feed into the same pipeline: same nodes, same logic, same output configuration. The only difference is how and when the run starts.

What’s next

Agent Nodes

Add AI-powered steps that reason about data, classify inputs, and summarize results.

Action Nodes

Run deterministic operations: tool calls, emails, code execution, OCR.