Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.astradial.com/llms.txt

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

Workflows let you automate tasks without writing code. You design a flow with a trigger and a series of actions. When the trigger fires, Astradial executes each action in order.

Examples of what workflows can do

  • When a hotel booking comes in via webhook, send a WhatsApp welcome message
  • Schedule a reminder call 1 day before check-in
  • When a call is missed, create a ticket and send a notification
  • Every morning at 7am, make an automated call to a list of guests

Create a workflow

1

Open the Workflows page

Click Workflows in the sidebar under Automate.
2

Click New Workflow

Click the New Workflow button in the top-right corner.
3

Configure the basics

FieldWhat to enter
NameA descriptive name (e.g., “Guest Check-in Automation”)
DescriptionWhat this workflow does
Trigger TypeHow the workflow starts (see below)
4

Click Create

The workflow is created and you can start adding actions.

Trigger types

TriggerHow it works
WebhookFires when an HTTP POST request is sent to the workflow’s trigger URL
EventFires when a call event happens (call started, ended, missed, etc.)
ScheduledFires once at a specific date and time
RecurringFires daily between a start and end date

Webhook trigger

When you create a webhook workflow, you get a trigger URL:
POST https://your-server/trigger/{workflow_id}
Send a POST request with JSON data to trigger the workflow. The data you send becomes available as {trigger.field_name} in your actions. Example webhook data:
{
  "name": "John Doe",
  "phone": "9944421125",
  "checkin_date": "2026-04-20",
  "checkout_date": "2026-04-25"
}

Event trigger

Choose from these events:
  • Call Started
  • Call Answered
  • Call Ended
  • Call Missed
  • Ticket Created

The flow editor

Click on a workflow to open the visual editor. The editor has:
  • Canvas — Where you place and connect nodes
  • Inspector panel — Configure the selected node (right side, resizable)
  • Toolbar — Add nodes, view runs, test, and save

Add nodes

Click Add Node in the toolbar and choose from: Actions:
Node typeWhat it does
HTTP RequestCall an external API
Send WhatsAppSend a WhatsApp message via MSG91
Place CallMake a phone call (optionally with an AI bot)
Create TicketCreate a support ticket
Send EmailSend an email
LogWrite a log message
Flow:
Node typeWhat it does
Delay/ScheduleWait for a period (30 seconds to 1 day)
ConditionBranch the flow based on a value (if/else)
Repeat DailyLoop daily between two dates

Connect nodes

Drag from a node’s output handle to another node’s input handle to create a connection. Nodes execute in the order they are connected.

Condition branching

The Condition node splits the flow into two paths:
  • True (green) — When the condition is met
  • False (red) — When the condition is not met
You can check values using operators: equals, not equals, greater than, less than, contains, exists.

Using trigger variables

In any action field, use {trigger.field_name} to reference data from the trigger. For example:
  • {trigger.name} → “John Doe”
  • {trigger.phone} → “9944421125”
  • {trigger.checkin_date} → “2026-04-20”
You can also reference output from previous steps: {step.nodeId.field}.

Timing options

Most action nodes support three timing modes:
ModeDescription
ImmediateRun right away
ScheduledRun at a specific date/time (with optional offset like “1 day before”)
RecurringRun daily between two dates at a specific time
This lets you build complex automations like “Send a WhatsApp message 3 days before check-in, then call the morning of check-in.”

Activate a workflow

Use the Active/Pause toggle in the editor toolbar. Only active workflows respond to triggers.

Test a workflow

Click the Test button to manually execute the workflow once. This helps you verify it works before activating.

View execution history

Click Runs to see past executions. Each run shows:
  • Status (completed, failed, running)
  • Timestamp
  • Error details (if any)
  • Step-by-step breakdown

Scheduled jobs

Click the Scheduled tab on the Workflows page to see all pending scheduled and recurring jobs. You can:
  • Filter by status (Queued, Pending, Executed, Cancelled, Failed)
  • Filter by date
  • Cancel pending jobs