Back to Docs
Core Features12 min read

Workflows

Build powerful automated workflows using our visual builder or API. Connect multiple steps, add conditions, and handle errors gracefully.

Workflow Overview

Workflows are the core of Gravitre. A workflow consists of a trigger (what starts it), steps (actions to perform), and optional conditions (branching logic). Workflows can be as simple as a two-step sync or as complex as multi-branch decision trees.

Visual Builder

The visual workflow builder lets you drag and drop nodes to create workflows. Connect nodes with edges to define the flow. Each node can be configured with specific parameters, and you can preview the workflow before saving.

Triggers

Workflows can be triggered in multiple ways:

- Schedule: Run on a cron schedule (daily, weekly, etc.) - Webhook: Trigger via HTTP POST request - Event: React to events from connected integrations - Manual: Run on-demand from the dashboard or API

// Schedule trigger
{
  "type": "schedule",
  "cron": "0 9 * * 1-5" // Weekdays at 9 AM
}

// Webhook trigger
{
  "type": "webhook",
  "path": "/hooks/lead-created"
}

// Event trigger
{
  "type": "event",
  "connector": "salesforce",
  "event": "lead.created"
}

Steps and Actions

Each step in a workflow performs an action. Actions include querying data, transforming data, calling APIs, sending notifications, and more. Steps can access outputs from previous steps using the {{step_name.output}} syntax.

Conditions and Branching

Add conditional logic to route workflow execution based on data values. Use if/else branches, switch statements, or filter conditions to control flow.

// Conditional branching example
{
  "type": "condition",
  "expression": "{{lead.score}} > 80",
  "true_branch": "high_priority_path",
  "false_branch": "standard_path"
}

Error Handling

Configure error handling for each step: retry with backoff, skip and continue, or fail the entire workflow. You can also set up error notifications to alert your team when issues occur.

Need more help?

Can't find what you're looking for? Our team is here to help.