Skip to Content

Workflows

Automate work across Luso8 with event, schedule and webhook triggers, AI agent steps, conditions and human review.

Workflows automate the work that happens between your tools and your team. A workflow starts from a trigger, such as a call ending, a deal being won, a schedule or a webhook, then runs a chain of steps: ask an AI agent, call an external service, wait, branch on a condition, notify someone or pause for a person to approve.

Build them in AI tools›Workflows.

Create a workflow

Choose New Workflow and pick how to start:

OptionWhen to use it
Describe itWrite what you want in plain language ("when a deal is won, email the customer a welcome and create an onboarding ticket") and AI builds the first version
ExamplesStart from one of the ready-made examples and adjust it
BlankBuild step by step on an empty canvas

The workflow opens in the Builder: a canvas with the trigger at the top and steps below it.

Triggers

TriggerFires when
EventSomething happens in Luso8 (see the events below)
ScheduleOn a cron schedule in your time zone, for example every weekday at 08:00
WebhookAn external system sends a POST request to the workflow's secret URL
Manual / APIYou click Run, an AI agent runs it, or it's triggered through the API

Events

EventFires when
call.endedA call finishes
payment.receivedA payment link is paid
deal.createdA deal is created
deal.stage_changedA deal moves to another stage
deal.wonA deal is closed won
deal.lostA deal is closed lost
contact.createdA contact is added
message.receivedA customer message arrives in the inbox
appointment.bookedA meeting is booked
campaign.completedA campaign finishes
connector.syncedA data connection finishes syncing

Each event comes with a sample payload in the builder so you can see which fields you can use. A campaign condition branch can also start a workflow.

Filters

Narrow an event trigger with filters on payload fields. Use dotted keys for nested fields; a list means "any of":

Only deals reaching proposal or closed won in Malawi
{
  "stage": ["proposal", "closed_won"],
  "contact.country": "MW"
}

Webhook trigger

A webhook trigger gives the workflow a secret URL. Send a JSON body to it and the body becomes the workflow's input:

curl -X POST "https://api.luso8.rexplore.ai/api/v1/ai-workflows/hooks/<workflow_id>/<secret>" \
  -H "Content-Type: application/json" \
  -d '{"email": "jane@example.com", "plan": "pro"}'

Treat the URL like a password: anyone who has it can start the workflow. Only share it with systems you trust. See Webhooks for more on sending and receiving webhooks.

Steps

StepWhat it does
AgentSends a message to one of your AI agents and uses its reply. The agent can act within its Luso8 access
SkillRuns a skill from AI tools›Skills
ConnectorRuns a sync on one of your data connections
ConditionBranches on an expression, for example a deal value or a call disposition
WaitPauses for a duration or until a time
WebhookCalls an external URL with data from the run
CodeRuns a short, sandboxed Python snippet to compute a value
TransformReshapes data for the next step
NotificationNotifies teammates in Luso8, by email or by SMS
Human reviewPauses until an assigned teammate approves or rejects
Sub-workflowRuns another workflow
EndStops the run

Use data from earlier steps

Any text field in a step can include expressions in double curly braces, such as {{ trigger.contact.email }}. These names are available:

NameContains
triggerThe event payload or webhook body that started the run
inputThe step's input: its mapped input, else the previous step's output
prevThe previous step's output
stepsOutputs of earlier steps, by each step's output key, e.g. steps.summary
varsWorkflow variables
reviewThe last human review result: approved and comment
run, workflowIDs and the workflow name

Expressions support comparisons, and/or/not, arithmetic, conditionals and safe helpers such as len, round, sorted, get, json and now. A missing field never breaks a run: it's empty, so {{ input.contact.email or "n/a" }} falls back cleanly.

A field that contains only one expression keeps its type (number, list or object). Anything mixed with text becomes a string.

Compile, activate and run

Compile

Compile checks the whole workflow before anything runs: the trigger, every step's required fields, the agents, skills and connections it references, expression syntax, loops and unreachable steps. The builder shows Compiles when it's ready, or marks the steps that need attention. After an edit it shows Changed since compile.

Test run

Run the workflow once with sample input to check each step's output before going live.

Activate

Set the workflow to Active. Only active workflows receive triggers.

Runs

The Runs tab lists every run with its trigger and status. Open a run to see each step's input, output and any error, which makes it easy to see where something went wrong. Runs waiting on a Wait or Human review step resume on their own when the time comes or the reviewer answers, and you can cancel a run at any time.

Examples

  • Call follow-up. On call.ended with a negative outcome, ask a support agent to open a ticket and notify the account owner.
  • Won deal onboarding. On deal.won, send a welcome email, book a kickoff call and notify the team.
  • Daily digest. Every weekday at 08:00, ask an agent to summarize yesterday's pipeline changes and email it to sales.
  • Form to CRM. A webhook from your website form creates the contact and adds it to a nurture campaign.
Edit on GitHub

Last updated on

On this page